网格动态

This commit is contained in:
liuye
2024-10-11 11:09:46 +08:00
parent aa87c92e25
commit c18c183153
3 changed files with 231 additions and 262 deletions

View File

@@ -41,6 +41,7 @@ export default {
files: [],
lat: '',
lng: '',
address: '',
girdCode: '',
girdName: '',
girdId: '',
@@ -102,6 +103,11 @@ export default {
success: res => {
this.forms.lng = res.longitude
this.forms.lat = res.latitude
this.$http.post('/api/appdvcpconfig/apiForward', `https://apis.map.qq.com/ws/geocoder/v1/?location=${res.latitude},${res.longitude}&key=3RZBZ-LZUCF-CT6J5-NWKZH-FCWOQ-UUFKY&get_poi=1`).then(res => {
if (res.code === 0) {
this.forms.address = res.data.result.address
}
})
},
error: err => {
console.log(err)