|
@@ -231,15 +231,15 @@
|
|
//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}`;
|
|
//const url = `https://apis.map.qq.com/ws/geocoder/v1/`;
|
|
//const url = `https://apis.map.qq.com/ws/geocoder/v1/`;
|
|
// #ifdef H5
|
|
// #ifdef H5
|
|
- alert(1231)
|
|
|
|
- // #endif
|
|
|
|
jsonp(url, {}).then(res => {
|
|
jsonp(url, {}).then(res => {
|
|
- console.log('res',res);
|
|
|
|
|
|
+ console.log('res', res);
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
- console.log('err',err);
|
|
|
|
|
|
+ console.log('err', err);
|
|
}).finally(() => {
|
|
}).finally(() => {
|
|
|
|
|
|
})
|
|
})
|
|
|
|
+ // #endif
|
|
|
|
+
|
|
// #ifdef APP
|
|
// #ifdef APP
|
|
uni.request({
|
|
uni.request({
|
|
url: url,
|
|
url: url,
|