|
@ -195,10 +195,15 @@ Page({ |
|
|
url: `https://apis.map.qq.com/ws/geocoder/v1/?location=${res.latitude},${res.longitude}&key=${getApp().globalData.key}`, |
|
|
url: `https://apis.map.qq.com/ws/geocoder/v1/?location=${res.latitude},${res.longitude}&key=${getApp().globalData.key}`, |
|
|
success: function (res) { |
|
|
success: function (res) { |
|
|
wx.hideLoading(); |
|
|
wx.hideLoading(); |
|
|
// 根据自己项目需求获取res内容
|
|
|
wx.chooseLocation({ |
|
|
|
|
|
success:function(res){ |
|
|
|
|
|
// 根据自己项目需求获取res内容
|
|
|
that.setData({ |
|
|
that.setData({ |
|
|
address: res.data.result.address |
|
|
address: res.address |
|
|
}) |
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|