This commit is contained in:
cansnow
2026-02-09 07:29:02 +08:00
parent 2860c46ec1
commit 6720c15e30
19 changed files with 996 additions and 207 deletions
+9 -7
View File
@@ -128,14 +128,14 @@
uni.request({
url:url,
success(res){
//console.log(res.data);
console.log(res.data);
const result = res.data.result;
_this.address = result.formatted_address;
console.log( {
lng: result.location.lon,
lat: result.location.lat,
address: result.formatted_address
});
// console.log( {
// lng: result.location.lon,
// lat: result.location.lat,
// address: result.formatted_address
// });
//return 1;
// 通过事件通道返回数据给父页面
const eventChannel = _this.getOpenerEventChannel();
@@ -143,7 +143,9 @@
eventChannel.emit('onConfirm', {
lng: result.location.lon,
lat: result.location.lat,
address: result.formatted_address
name: result.addressComponent.town,
address: result.formatted_address,
addressComponent:result.addressComponent
});
uni.navigateBack();
},