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