授予权限
This commit is contained in:
@@ -48,7 +48,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapActions(['getGridInfo']),
|
...mapActions(['getGridInfo', 'injectJWeixin']),
|
||||||
linkTo(url) {
|
linkTo(url) {
|
||||||
uni.navigateTo({url})
|
uni.navigateTo({url})
|
||||||
},
|
},
|
||||||
@@ -63,6 +63,8 @@ export default {
|
|||||||
location: [lat, lng].toString(),
|
location: [lat, lng].toString(),
|
||||||
key: "3RZBZ-LZUCF-CT6J5-NWKZH-FCWOQ-UUFKY",
|
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(({data: {result: {address}}}) => this.$http.post("/app/appwxsigninfo/sign", {lat, lng, address}))
|
||||||
.then(res => {
|
.then(res => {
|
||||||
@@ -77,6 +79,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
this.injectJWeixin('getLocation')
|
||||||
this.getGridInfo()
|
this.getGridInfo()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user