wangguoyu 2 tháng trước cách đây
mục cha
commit
0d68298679

+ 5 - 0
components/customMap/customMap.vue

@@ -227,7 +227,11 @@
 	function getCityName(latitude, longitude) {
 	function getCityName(latitude, longitude) {
 		const Key = `KBYBZ-FS3KZ-U2FXR-7VPDX-L7J46-23F55`
 		const Key = `KBYBZ-FS3KZ-U2FXR-7VPDX-L7J46-23F55`
 		const url = `https://apis.map.qq.com/ws/geocoder/v1/?location=${latitude},${longitude}&key=${Key}`;
 		const url = `https://apis.map.qq.com/ws/geocoder/v1/?location=${latitude},${longitude}&key=${Key}`;
+		// #ifdef H5
+		alert(1231)
+		// #endif
 
 
+		// #ifdef APP
 		uni.request({
 		uni.request({
 			url: url,
 			url: url,
 			success: (res) => {
 			success: (res) => {
@@ -252,6 +256,7 @@
 				});
 				});
 			}
 			}
 		});
 		});
+		// #endif
 	}
 	}
 	// 初始化
 	// 初始化
 	function initLocation() {
 	function initLocation() {

+ 1 - 0
package.json

@@ -7,6 +7,7 @@
 		"aliplayer": "^1.0.3",
 		"aliplayer": "^1.0.3",
 		"axios": "^1.7.2",
 		"axios": "^1.7.2",
 		"jsencrypt": "^3.3.2",
 		"jsencrypt": "^3.3.2",
+		"jsonp": "^0.2.1",
 		"pinia": "^2.1.7",
 		"pinia": "^2.1.7",
 		"ts-md5": "^1.3.1",
 		"ts-md5": "^1.3.1",
 		"vue": "^3.5.13"
 		"vue": "^3.5.13"