This commit is contained in:
liuye
2024-10-12 12:00:44 +08:00
parent 224615e6c1
commit b04a3f42a3

View File

@@ -69,7 +69,7 @@ export default {
this.getLocation()
},
methods: {
...mapActions(['injectJWeixin']),
...mapActions(['injectJWeixin', 'agentSign']),
submit() {
if (this.flag) return
@@ -106,7 +106,7 @@ export default {
alert(res2)
this.forms.lng = res2.longitude
this.forms.lat = res2.latitude
this.$http.post('/api/appdvcpconfig/apiForward', `https://apis.map.qq.com/ws/geocoder/v1/?location=${res2.latitude},${res2.longitude}&key=3RZBZ-LZUCF-CT6J5-NWKZH-FCWOQ-UUFKY&get_poi=1`).then(res => {
this.$http.post('/api/appdvcpconfig/apiForward', `https://apis.map.qq.com/ws/geocoder/v1/?location=${this.forms.lat},${this.forms.lng}&key=3RZBZ-LZUCF-CT6J5-NWKZH-FCWOQ-UUFKY&get_poi=1`).then(res => {
if (res.code == 0) {
alert(res)
this.forms.address = res.data.result.address