mirror of
https://gitee.com/zongzhige/shopxo-uniapp.git
synced 2026-07-09 06:50:39 +08:00
首页导航角标更新优化
This commit is contained in:
@ -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({
|
||||
|
||||
Reference in New Issue
Block a user