个人消息
This commit is contained in:
@@ -3,9 +3,31 @@ Page({
|
||||
messageList : [
|
||||
{"taskId":"2022","isRead":true,"title":"今天是任务的需要的","content":"任务【测试...】已延期","date":"2022-12-14"},
|
||||
{"taskId":"2022","isRead":false,"title":"任务延期","content":"点哦电脑玩i回家欧帝啊我你的破请问你的我i拿到钱哦i我你懂屁请问你oi","date":"2022-12-14"},
|
||||
{"taskId":"2022","isRead":true,"title":"任务【测试3213...】已延期","content":"点哦电脑玩i回家欧帝啊我你的破请问你的我i拿到钱哦i我你懂屁请问你oi","date":"2022-12-14"},
|
||||
{"taskId":"2022","isRead":true,"title":"任务【测试3213...】已延期","content":"","date":"2022-12-14"},
|
||||
{"taskId":"2022","isRead":false,"title":"任务【测试412312...】已延期","content":"任务【测试...】已延期","date":"2022-12-14"}
|
||||
],
|
||||
dialogKey: '',
|
||||
clearConfirm : false,
|
||||
checkConfirm : false
|
||||
},
|
||||
showDialog(e) {
|
||||
const { key } = e.currentTarget.dataset;
|
||||
this.setData({ [key]: true, dialogKey: key });
|
||||
},
|
||||
|
||||
closeDialog() {
|
||||
const { dialogKey } = this.data;
|
||||
this.setData({ [dialogKey]: false });
|
||||
},
|
||||
|
||||
clearMessage() {
|
||||
console.log("清除消息成功!")
|
||||
this.closeDialog();
|
||||
},
|
||||
|
||||
allRead() {
|
||||
console.log("全部已读成功!")
|
||||
this.closeDialog();
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user