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) } }) }