From a5d5de15d59cc90b858e5fa074754bedb1ca33f3 Mon Sep 17 00:00:00 2001 From: liuye Date: Tue, 13 Sep 2022 18:20:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=85=A7=E6=B2=BB=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/project/huizhili/AppHome/components/AppMyGrid.vue | 1 + src/project/huizhili/AppHome/signResult.vue | 10 +++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/project/huizhili/AppHome/components/AppMyGrid.vue b/src/project/huizhili/AppHome/components/AppMyGrid.vue index fb9153b8..081a2ec5 100644 --- a/src/project/huizhili/AppHome/components/AppMyGrid.vue +++ b/src/project/huizhili/AppHome/components/AppMyGrid.vue @@ -62,6 +62,7 @@ export default { } }, handleSignClick() { + // uni.navigateTo({url: './signResult'}) if(!this.isGridMember) { this.$u.toast('您不是网格员,无法使用网格员相关功能哦~') }else { diff --git a/src/project/huizhili/AppHome/signResult.vue b/src/project/huizhili/AppHome/signResult.vue index 94522b73..fc987f95 100644 --- a/src/project/huizhili/AppHome/signResult.vue +++ b/src/project/huizhili/AppHome/signResult.vue @@ -18,10 +18,14 @@ export default { result: {} } }, + onLoad(option) { + this.getResult(option.id) + }, methods: { - getResult() { - const {id} = this.$route.query - id && this.$http.post("/app/appwxsigninfo/queryDetailById", null, { + getResult(id) { + // const {id} = this.$route.query + // id && + this.$http.post("/app/appwxsigninfo/queryDetailById", null, { params: {id} }).then(res => { if (res?.data) {