From 1dcfb6154fdf2215bda9157ed8a1d2a2e6b156f1 Mon Sep 17 00:00:00 2001 From: liuye Date: Tue, 13 Sep 2022 15:38:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=85=A7=E6=B2=BB=E7=90=86=20=E9=A6=96?= =?UTF-8?q?=E9=A1=B5=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../huizhili/AppHome/components/AppMyGrid.vue | 17 +++++++++++++---- .../huizhili/AppHome/components/Home.vue | 6 +++--- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/src/project/huizhili/AppHome/components/AppMyGrid.vue b/src/project/huizhili/AppHome/components/AppMyGrid.vue index d0974cf6..87c350bb 100644 --- a/src/project/huizhili/AppHome/components/AppMyGrid.vue +++ b/src/project/huizhili/AppHome/components/AppMyGrid.vue @@ -1,6 +1,6 @@ @@ -51,10 +51,19 @@ export default { methods: { ...mapActions(['getGridInfo']), linkTo(url) { - uni.navigateTo({url}) + if(!this.isGridMember) { + this.$u.toast('您不是网格员无法使用网格员相关功能哦~') + }else { + uni.navigateTo({url}) + } + }, handleSignClick() { - this.$u.debounce(this.handleSignIn, 500) + if(!this.isGridMember) { + this.$u.toast('您不是网格员无法使用网格员相关功能哦~') + }else { + this.$u.debounce(this.handleSignIn, 500) + } }, handleSignIn() { !this.signIn ? uni.getLocation({ diff --git a/src/project/huizhili/AppHome/components/Home.vue b/src/project/huizhili/AppHome/components/Home.vue index ca236d50..c5403a92 100644 --- a/src/project/huizhili/AppHome/components/Home.vue +++ b/src/project/huizhili/AppHome/components/Home.vue @@ -1,8 +1,8 @@