From bdbd91859a5b4eecb6449702c8a7cc60ced4ea82 Mon Sep 17 00:00:00 2001 From: aixianling Date: Tue, 6 Sep 2022 17:49:46 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BD=91=E6=A0=BC=E5=91=98=E7=AD=BE=E5=88=B0?= =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/AppMyGrid/AppMyGrid.vue | 2 +- src/apps/AppMyGrid/signResult.vue | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/apps/AppMyGrid/AppMyGrid.vue b/src/apps/AppMyGrid/AppMyGrid.vue index b93f41b9..30fc64c3 100644 --- a/src/apps/AppMyGrid/AppMyGrid.vue +++ b/src/apps/AppMyGrid/AppMyGrid.vue @@ -71,7 +71,7 @@ export default { .then(({data: {result: {address}}}) => this.$http.post("/app/appwxsigninfo/sign", {lat, lng, address})) .then(res => { if (res?.code == 0) { - this.linkTo("./signResult") + this.linkTo("./signResult?id=" + res?.data.id) } }) } else this.$u.toast("无法获取到定位!") diff --git a/src/apps/AppMyGrid/signResult.vue b/src/apps/AppMyGrid/signResult.vue index 4376843c..c044f15f 100644 --- a/src/apps/AppMyGrid/signResult.vue +++ b/src/apps/AppMyGrid/signResult.vue @@ -20,7 +20,14 @@ export default { }, methods: { getResult() { - + const {id} = this.$route.query + id && this.$http.post("/app/appwxsigninfo/queryDetailById", null, { + params: {id} + }).then(res => { + if (res?.data) { + this.result = res.data + } + }) } }, created() {