[update] 变更:首页消息有超时未读的弹框提醒

This commit is contained in:
lideqin
2023-07-13 18:36:34 +08:00
parent 60b25afc20
commit 3fa9c4186b
2 changed files with 0 additions and 28 deletions
-24
View File
@@ -380,30 +380,6 @@ Page({
}
})
// 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: '超时未读提醒',
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: ''}}}})
this.loadData()
}
})
}
})
}
}
})
},
/**
* 页面上拉触底事件的处理函数