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(); }, // 客服电话