首页导航角标更新优化

master
gongfuxiang 2024-04-12 00:32:41 +08:00
parent 62fea6fade
commit f790b17021
1 changed files with 7 additions and 7 deletions

View File

@ -561,16 +561,16 @@
// 广
this.plugins_popupscreen_handle();
//
if (this.cart_total <= 0) {
app.globalData.set_tab_bar_badge(2, 0);
} else {
app.globalData.set_tab_bar_badge(2, 1, this.cart_total);
}
//
if(parseInt(data.is_result_data_cache || 0) == 1) {
this.init({is_cache: 0});
} else {
//
if (this.cart_total <= 0) {
app.globalData.set_tab_bar_badge(2, 0);
} else {
app.globalData.set_tab_bar_badge(2, 1, this.cart_total);
}
}
} else {
this.setData({