|
@@ -9,6 +9,7 @@ Page({
|
|
|
annunciateList: [], //通告列表
|
|
|
gridList: [],
|
|
|
showAnnunciate: false, //显示最新通告
|
|
|
+ unreadNum: 0, //通告未读
|
|
|
},
|
|
|
|
|
|
/**
|
|
@@ -87,7 +88,8 @@ Page({
|
|
|
console.log("通告列表", res)
|
|
|
if (res.msg != '成功') return this.queryNoticeList(i + 1);
|
|
|
this.setData({
|
|
|
- annunciateList: res.data
|
|
|
+ annunciateList: res.data,
|
|
|
+ unreadNum: res.total - res.tips.readNum
|
|
|
})
|
|
|
})
|
|
|
},
|
|
@@ -109,8 +111,12 @@ Page({
|
|
|
},
|
|
|
/* 去通告 */
|
|
|
toAnnunciate() {
|
|
|
- wx.navigateTo({
|
|
|
- url: '/pages/annunciate/index'
|
|
|
+ this.applications({
|
|
|
+ currentTarget: {
|
|
|
+ dataset: {
|
|
|
+ item: this.data.gridList.find(v => v.name == '通告')
|
|
|
+ }
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
/**
|