|
|
@@ -11,7 +11,7 @@ Component({
|
|
|
attached() {},
|
|
|
ready: function () {
|
|
|
// 在组件实例进入页面节点树时执行
|
|
|
- if (this.data.active == 3) this.unReadMessageCount();
|
|
|
+ this.unReadMessageCount();
|
|
|
},
|
|
|
},
|
|
|
/**
|
|
|
@@ -98,7 +98,6 @@ Component({
|
|
|
"method": "unReadMessageCount",
|
|
|
"content": {}
|
|
|
}).then(res => {
|
|
|
- console.log("更新", res)
|
|
|
if (res.msg != '成功') console.log('未读消息数量查询失败')
|
|
|
this.setData({
|
|
|
"tabbarList[3].fcount": res.data[0].fcount
|