瀏覽代碼

定位出错问题

zhupeng 3 年之前
父節點
當前提交
017a480de2
共有 1 個文件被更改,包括 8 次插入6 次删除
  1. 8 6
      pages/searchPile/stationAndPile/stationDetails.vue

+ 8 - 6
pages/searchPile/stationAndPile/stationDetails.vue

@@ -298,8 +298,10 @@
 					var endLngLat = [_self.stationDetail.station.longitude,_self.stationDetail.station.latitude];
 					_self.calculateDistance(startLngLat,endLngLat);
 					
-					
-					console.log('当前位置' +JSON.stringify(data))
+					/*uni.showToast({
+						title:'getPoint'+JSON.stringify(res)
+					})*/
+					//console.log('当前位置' +JSON.stringify(data))
 					
 					//this.latitude2 = latitude;
 					//this.longitude2 = longitude;
@@ -308,9 +310,9 @@
 					})*/
 					//this.message=JSON.stringify(res)
 				}).catch(error => {
-					uni.showToast({
-						title:JSON.stringify(error)
-					})					
+					/*uni.showToast({
+						title:'getPoint'+JSON.stringify(error)
+					})*/					
 				})
 			},
 			calculateDistance(startLngLat,endLngLat){
@@ -371,7 +373,7 @@
 						
 							}).catch(error => {
 								uni.showToast({
-									title: error,
+									title: 'scanQRCode'+error,
 									icon: "none"
 								})
 							})