**使用高德地图uni.chooseLocation选择地点后,如果不调用applets/reverse_geocoding请求,是不卡的,但是如果调用applets/reverse_geocoding请求,iOS端就会卡死。
!
uni.chooseLocation({
success: res => {
that.loc = res;
that.address = res.address;
that.lng = res.longitude;
that.lat = res.latitude;
// console.log('位置信息', res);
api.get({
url: 'applets/reverse_geocoding',
data: {
lat: res.latitude,
lng: res.longitude
},
success: sres => {
// console.log('通过经纬获取id', sres);
let resData = sres.data;
this.addressInf = resData;
},
fail: err => {
console.log(err);
}
});
},
fail: err => {
console.log(err);
}
});
猎宠网 (作者)
还是会卡死
2023-03-08 16:35
DCloud_UNI_GSQ
回复 猎宠网: 加大
2023-03-09 11:16