|
@ -12,6 +12,7 @@ Page({ |
|
|
newsList: [], // 新闻列表
|
|
|
newsList: [], // 新闻列表
|
|
|
projectList: [], // 项目列表
|
|
|
projectList: [], // 项目列表
|
|
|
infoList: [], // 消息列表
|
|
|
infoList: [], // 消息列表
|
|
|
|
|
|
noticeList: [], // 通知公告列表
|
|
|
unReadNum: 0, // 未读数量
|
|
|
unReadNum: 0, // 未读数量
|
|
|
loadMoreType: 'none', |
|
|
loadMoreType: 'none', |
|
|
loadMoreVisible: false, |
|
|
loadMoreVisible: false, |
|
@ -47,6 +48,7 @@ Page({ |
|
|
this.getUserState() |
|
|
this.getUserState() |
|
|
}, |
|
|
}, |
|
|
onShow () { |
|
|
onShow () { |
|
|
|
|
|
this.getUnreadNum() // 实时获取有无未读消息
|
|
|
// 检查版本更新
|
|
|
// 检查版本更新
|
|
|
checkoutVersion() |
|
|
checkoutVersion() |
|
|
}, |
|
|
}, |
|
@ -187,6 +189,21 @@ Page({ |
|
|
}).catch((err) => { |
|
|
}).catch((err) => { |
|
|
console.log('获取消息列表失败') |
|
|
console.log('获取消息列表失败') |
|
|
}) |
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
// 获取通知公告列表
|
|
|
|
|
|
getNoticeList () { |
|
|
|
|
|
let para = { |
|
|
|
|
|
pageIndex: 1, |
|
|
|
|
|
pageSize: 10, |
|
|
|
|
|
timestamp: this.data.timestamp |
|
|
|
|
|
} |
|
|
|
|
|
homeApi.getNoticeList(para).then(res => { |
|
|
|
|
|
this.setData({ |
|
|
|
|
|
noticeList: res.data |
|
|
|
|
|
}) |
|
|
|
|
|
}).catch(err => { |
|
|
|
|
|
console.log(err) |
|
|
|
|
|
}) |
|
|
}, |
|
|
}, |
|
|
// 九宫格检查状态
|
|
|
// 九宫格检查状态
|
|
|
getIndexSudokuState () { |
|
|
getIndexSudokuState () { |
|
@ -280,6 +297,7 @@ Page({ |
|
|
this.getIndexSudokuState() |
|
|
this.getIndexSudokuState() |
|
|
this.getProjectList() |
|
|
this.getProjectList() |
|
|
this.getInfoList() |
|
|
this.getInfoList() |
|
|
|
|
|
this.getNoticeList() |
|
|
this.getUnreadNum() |
|
|
this.getUnreadNum() |
|
|
this.getNewsList() |
|
|
this.getNewsList() |
|
|
}, |
|
|
}, |
|
|