feasure-livedata
lld 2026-03-27 20:16:27 +08:00
parent 48d6a39bdb
commit 57f70d1010
2 changed files with 22 additions and 4 deletions

View File

@ -59,7 +59,7 @@
v-for="(item, index) in messageList"
:right-options="options"
:key="index"
@click="deleteItem($event, index)"
@click="deleteItem($event, item)"
>
<view class="message-item" @click="handleItemClick(item)">
<view class="item-icon-wrap">
@ -171,7 +171,15 @@ export default {
},
clearUnread() {
//
this.$modal.showToast('模块建设中~')
uni.showModal({
title: '操作提示',
content: `确认全部已读?`,
cancelText: '取消',
confirmText: '确定',
success: (res) => {
}
})
console.log('清除未读:当前页面全部已读')
},
openSetting() {
@ -209,8 +217,17 @@ export default {
this.$tab.navigateTo('/pages/news/subpages/deviceCenter/index');
}
},
deleteItem(event, index) {
this.$modal.showToast('敬请期待~,删除当前消息')
deleteItem(event, item) {
//
uni.showModal({
title: '操作提示',
content: `确认删除${item.title}`,
cancelText: '取消',
confirmText: '确定',
success: (res) => {
}
})
},
//
showDrawer(e) {

View File

@ -195,6 +195,7 @@ export default {
}
},
onShow() {
//
this.noticeList = this.contentList.filter(item =>
item.isRead===0);
},