zhaoxiaohai 3 년 전
부모
커밋
44503d55a2
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      custom-tab-bar/index.js

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

@@ -99,6 +99,9 @@ Component({
                 "content": {}
             }).then(res => {
                 if (res.msg != '成功') console.log('未读消息数量查询失败')
+                if (res.data[0].fcount == 0) return this.setData({
+                    "tabbarList[3].fcount": ""
+                })
                 this.setData({
                     "tabbarList[3].fcount": res.data[0].fcount
                 })