From 65b02c2122a0fa8414aedaf2134ea95950f8b7a6 Mon Sep 17 00:00:00 2001 From: gongfuxiang Date: Sat, 9 Nov 2024 22:37:13 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E4=B8=AD=E5=BF=83=E6=9C=AA?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E4=B9=9F=E8=AF=B7=E6=B1=82=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/user/user.vue | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/pages/user/user.vue b/pages/user/user.vue index d3f16de0..73c0279d 100644 --- a/pages/user/user.vue +++ b/pages/user/user.vue @@ -484,22 +484,10 @@ // 清除缓存 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, - nickname: this.$t('login.login.6yfr9g'), + nickname: '', // #ifdef APP || H5 nav_logout_data: null, // #endif @@ -507,9 +495,12 @@ // 调用公共方法处理 app.globalData.remove_user_cache_event(); + + // 资源设置 + this.set_resources_data(); - // 导航购物车处理 - app.globalData.set_tab_bar_badge('cart'); + // 初始数据 + this.get_data(); }, // 客服电话