zhaoxiaohai 2 年之前
父節點
當前提交
bf7c81afa7
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      custom-tab-bar/index.js

+ 1 - 0
custom-tab-bar/index.js

@@ -91,6 +91,7 @@ Component({
                 }
             }, false).then(res => {
                 if (res.msg != '成功') return;
+                if (res.data.fcount == 0) return;
                 if (res.data.fcount > 99) res.data.fcount = '99+';
                 this.setData({
                     'tabbarList[1].fcount': res.data.fcount