[update] 修改首页公告提醒是截止时间之前的才弹框
This commit is contained in:
+3
-3
@@ -478,19 +478,19 @@ Page({
|
||||
}
|
||||
})
|
||||
|
||||
// 2023-07变更:调接口看有没有超出消息提醒截止时间未读的,如果有则弹框提示
|
||||
// 2023-07变更:调接口看有没有没到消息提醒截止时间未读的,如果有则弹框提示
|
||||
UserApi.messageOverTimeUnreadList().then(res => {
|
||||
if (res.success) {
|
||||
if (res.result && res.result.length > 0) {
|
||||
const messageArr = res.result.map(item => item.msgContent)
|
||||
const anntIds = res.result.map(item => item.anntId).join(',')
|
||||
wx.showModal({
|
||||
title: '超时未读提醒',
|
||||
title: '未读提醒',
|
||||
content: messageArr.join('\n'),
|
||||
showCancel: false,
|
||||
confirmText: '知道了',
|
||||
success: () => {
|
||||
// 点击知道了把这些超时未读消息变成已读
|
||||
// 点击知道了把这些未读消息变成已读
|
||||
UserApi.messageOverTimeToRead({anntIds: anntIds}).then(res => {
|
||||
if (res.success) {
|
||||
this.messageDetail({currentTarget: {dataset: {message: {readFlag: 0, anntId: ''}}}})
|
||||
|
||||
Reference in New Issue
Block a user