gcz vor 3 Jahren
Ursprung
Commit
c3d2e164cd
1 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. 3 3
      pages/index/index.vue

+ 3 - 3
pages/index/index.vue

@@ -236,14 +236,14 @@
 			},
 			// 通过经纬度获取地区详细信息
 			getCityNameByLonLat({longitude,latitude} = {}){
-				alert(latitude)
-				alert(longitude)
+				// alert(latitude)
+				// alert(longitude)
 				let that = this;
 				uni.showLoading({
 				    title: '加载中',
 					mask:true
 				});
-				let str =  `output=jsonp&key=BOGBZ-2BZ33-O4L32-Y3QJR-PGN66-RFFEL&location=${latitude},${longitude}`
+				let str =  `output=jsonp&key=BOGBZ-2BZ33-O4L32-Y3QJR-PGN66-RFFEL&location=${latitude},${longitude}`;
 				this.$jsonp('https://apis.map.qq.com/ws/geocoder/v1/?'+ str, {}).then(res=>{
 				  uni.hideLoading();
 				  if(res.status == 0){