授予权限
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user