zhaoxiaohai hace 3 años
padre
commit
44503d55a2
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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
                 })