网格动态
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user