diff --git a/pages/index/index.vue b/pages/index/index.vue index 1730b62c1725f667d1cb59f06c4c4c842fb61b00..cf6883f8414dde1036acfd8ef8351c3b3e029aff 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -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({