From 3b135594ecb471be57cbc319083bdd495f72d06d Mon Sep 17 00:00:00 2001 From: zhangkai <847704969@qq.com> Date: Thu, 3 Apr 2025 10:41:38 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=88=91=E7=9A=84?= =?UTF-8?q?=E5=9B=BE=E6=A0=87=E5=B1=95=E7=A4=BAbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/my/index.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pages/my/index.vue b/pages/my/index.vue index 6ef5bd1..0d619c9 100644 --- a/pages/my/index.vue +++ b/pages/my/index.vue @@ -377,12 +377,15 @@ have_shop = true; } - if(have_auth && res.data.auth_status==1){ + if(have_auth){ for (let i = 1; i < this.list2.length; i++) { this.list2[i].auth_status = 1; } - this.list2[this.list2.length - 1].auth_status = 0; - this.list2[this.list2.length - 2].auth_status = 0; + if(res.data.auth_status == -1){ + this.list2[0].auth_status = 0; + } + this.list2[this.list2.length - 1].auth_status = 0; + this.list2[this.list2.length - 2].auth_status = 0; } if(have_shop){ this.list2[0].auth_status = 0; From c75009da11ad39796e81a5ecde2adecefa44ef9d Mon Sep 17 00:00:00 2001 From: zhangkai <847704969@qq.com> Date: Thu, 3 Apr 2025 11:07:30 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=88=91=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/my/index.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/pages/my/index.vue b/pages/my/index.vue index 0d619c9..3dd5a56 100644 --- a/pages/my/index.vue +++ b/pages/my/index.vue @@ -522,6 +522,7 @@ _this.getOpenidByCode(res.code) _this.code = res.code uni.setStorageSync('code', res.code) + _this.getStatus() }, fail: function(error) { console.log('authError', error);