|
|
@@ -54,10 +54,11 @@ Component({
|
|
|
if (!getApp().globalData.socketEstablish) getApp().initSocket();
|
|
|
if (!getApp().globalData.socketCallback) getApp().globalData.socketCallback = this.unReadMessageCount.bind(this);
|
|
|
this.setUnReadMessageCount(getApp().globalData.fcount);
|
|
|
+ getApp().globalData.Language.getLanguagePackage(this, obj.text);
|
|
|
},
|
|
|
/* 设置未读数量 */
|
|
|
setUnReadMessageCount(fcount) {
|
|
|
- let i = this.data.tabbarList.findIndex(v => v.text == '信息');
|
|
|
+ let i = this.data.tabbarList.findIndex(v => v.name == 'message');
|
|
|
this.setData({
|
|
|
[`tabbarList[${i}].fcount`]: fcount
|
|
|
})
|