退出清除用户中心副导航总数和购物车总数

master
gongfuxiang 2024-03-18 18:55:06 +08:00
parent cb543ff9e2
commit c01e35acd1
1 changed files with 11 additions and 0 deletions

View File

@ -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);
},
//