From 4ceb13d66161298d633114af61f7cb01e960591e Mon Sep 17 00:00:00 2001 From: aixianling Date: Mon, 5 Sep 2022 15:06:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=88=E4=BA=88=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/AppMyGrid/AppMyGrid.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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() } }