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() {