授予权限

This commit is contained in:
aixianling
2022-09-05 15:06:14 +08:00
parent b96bff879b
commit 4ceb13d661

View File

@@ -48,7 +48,7 @@ export default {
}
},
methods: {
...mapActions(['getGridInfo']),
...mapActions(['getGridInfo', 'injectJWeixin']),
linkTo(url) {
uni.navigateTo({url})
},
@@ -63,6 +63,8 @@ export default {
location: [lat, lng].toString(),
key: "3RZBZ-LZUCF-CT6J5-NWKZH-FCWOQ-UUFKY",
}
}, {
headers: {"Content-Type": "application/json"}
}))
.then(({data: {result: {address}}}) => this.$http.post("/app/appwxsigninfo/sign", {lat, lng, address}))
.then(res => {
@@ -77,6 +79,7 @@ export default {
}
},
created() {
this.injectJWeixin('getLocation')
this.getGridInfo()
}
}