diff --git a/src/apps/AppMyGrid/AppMyGrid.vue b/src/apps/AppMyGrid/AppMyGrid.vue index a7b0718c..aae2b971 100644 --- a/src/apps/AppMyGrid/AppMyGrid.vue +++ b/src/apps/AppMyGrid/AppMyGrid.vue @@ -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() } }