From c01e35acd17020677e8612b8fef1525e15ecdf95 Mon Sep 17 00:00:00 2001 From: gongfuxiang Date: Mon, 18 Mar 2024 18:55:06 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=80=E5=87=BA=E6=B8=85=E9=99=A4=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E4=B8=AD=E5=BF=83=E5=89=AF=E5=AF=BC=E8=88=AA=E6=80=BB?= =?UTF-8?q?=E6=95=B0=E5=92=8C=E8=B4=AD=E7=89=A9=E8=BD=A6=E6=80=BB=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/user/user.vue | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pages/user/user.vue b/pages/user/user.vue index 06413feb..247e80c6 100644 --- a/pages/user/user.vue +++ b/pages/user/user.vue @@ -483,10 +483,18 @@ // 清除缓存 remove_user_cache_event(e) { + // 副导航去除总数 + var temp_head_nav = this.head_nav_list; + if(temp_head_nav.length > 0) { + for(var i in temp_head_nav) { + temp_head_nav[i]['count'] = 0; + } + } // 当前页面处理 this.setData({ message_total: 0, navigation: [], + head_nav_list: temp_head_nav, main_navigation_data: [], user: null, avatar: app.globalData.data.default_user_head_src, @@ -495,6 +503,9 @@ // 调用公共方法处理 app.globalData.remove_user_cache_event(); + + // 导航购物车处理 + app.globalData.set_tab_bar_badge(2, 0); }, // 客服电话