Browse Source

地址取值

dev
巴林闲侠 2 years ago
parent
commit
b7302feb86
  1. 5
      weapp/src/packages/patrol/index.jsx

5
weapp/src/packages/patrol/index.jsx

@ -152,11 +152,12 @@ const Index = () => {
res.data.result.address_component.province
+ res.data.result.address_component.city
+ res.data.result.address_component.district
+ res.data.result.address_component.street_number
// + res.data.result.address_component.street_number
+ res.data.result.address_component.street
// addresscity = res.data.result.formatted_addresses.standard_address
let street = res.data.result.address_component.street
setRoad(street)
setAddress(res.data.result.formatted_addresses.standard_address)
setAddress(addresscity)
}
})
}

Loading…
Cancel
Save