From 3a346781022bf485bede173c0dcbc35470ba272c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?zhaobing=E2=80=99?= Date: Mon, 25 Dec 2023 17:09:39 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=B7=A1=E6=A3=80=E5=BD=95=E5=85=A5?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=BD=8D=E7=BD=AE=E9=80=89=E6=8B=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- weapp/package/inspectionInput/inspectionInput.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/weapp/package/inspectionInput/inspectionInput.js b/weapp/package/inspectionInput/inspectionInput.js index 253e8a4..64bf738 100644 --- a/weapp/package/inspectionInput/inspectionInput.js +++ b/weapp/package/inspectionInput/inspectionInput.js @@ -193,12 +193,17 @@ Page({ success: (res) => { wx.request({ 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(); - // 根据自己项目需求获取res内容 + wx.chooseLocation({ + success:function(res){ + // 根据自己项目需求获取res内容 that.setData({ - address: res.data.result.address + address: res.address }) + } + }) + } }) },