From 1a90abc72be1204c17f8d36ac754f3d5796120af Mon Sep 17 00:00:00 2001 From: liujiangyong Date: Fri, 30 Jun 2023 16:01:22 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E8=8E=B7=E5=8F=96=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE=E5=AD=97=E6=AE=B5=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- weapp/src/packages/patrol/index.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/weapp/src/packages/patrol/index.jsx b/weapp/src/packages/patrol/index.jsx index 3fd0ba20..e0dbab9e 100644 --- a/weapp/src/packages/patrol/index.jsx +++ b/weapp/src/packages/patrol/index.jsx @@ -124,8 +124,9 @@ const Index = () => { url: `https://apis.map.qq.com/ws/geocoder/v1/?location=${res.latitude},${res.longitude}&key=${key}`, success: function (res) { // 根据自己项目需求获取res内容 - let addresscity = res.data.result.address_component.province + res.data.result.address_component.city + res.data.result.address_component.district - setAddress(addresscity + res.data.result.address_component.street_number) + // let addresscity = res.data.result.address_component.province + res.data.result.address_component.city + res.data.result.address_component.district + // console.log(res, 'res') + setAddress(res.data.result.formatted_addresses.standard_address) } }) }