ui修改
parent
48d6a39bdb
commit
57f70d1010
|
|
@ -59,7 +59,7 @@
|
||||||
v-for="(item, index) in messageList"
|
v-for="(item, index) in messageList"
|
||||||
:right-options="options"
|
:right-options="options"
|
||||||
:key="index"
|
:key="index"
|
||||||
@click="deleteItem($event, index)"
|
@click="deleteItem($event, item)"
|
||||||
>
|
>
|
||||||
<view class="message-item" @click="handleItemClick(item)">
|
<view class="message-item" @click="handleItemClick(item)">
|
||||||
<view class="item-icon-wrap">
|
<view class="item-icon-wrap">
|
||||||
|
|
@ -171,7 +171,15 @@ export default {
|
||||||
},
|
},
|
||||||
clearUnread() {
|
clearUnread() {
|
||||||
// 全部已读
|
// 全部已读
|
||||||
this.$modal.showToast('模块建设中~')
|
uni.showModal({
|
||||||
|
title: '操作提示',
|
||||||
|
content: `确认全部已读?`,
|
||||||
|
cancelText: '取消',
|
||||||
|
confirmText: '确定',
|
||||||
|
success: (res) => {
|
||||||
|
|
||||||
|
}
|
||||||
|
})
|
||||||
console.log('清除未读:当前页面全部已读')
|
console.log('清除未读:当前页面全部已读')
|
||||||
},
|
},
|
||||||
openSetting() {
|
openSetting() {
|
||||||
|
|
@ -209,8 +217,17 @@ export default {
|
||||||
this.$tab.navigateTo('/pages/news/subpages/deviceCenter/index');
|
this.$tab.navigateTo('/pages/news/subpages/deviceCenter/index');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
deleteItem(event, index) {
|
deleteItem(event, item) {
|
||||||
this.$modal.showToast('敬请期待~,删除当前消息')
|
// 删除当条消息
|
||||||
|
uni.showModal({
|
||||||
|
title: '操作提示',
|
||||||
|
content: `确认删除${item.title}?`,
|
||||||
|
cancelText: '取消',
|
||||||
|
confirmText: '确定',
|
||||||
|
success: (res) => {
|
||||||
|
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
// 打开窗口
|
// 打开窗口
|
||||||
showDrawer(e) {
|
showDrawer(e) {
|
||||||
|
|
|
||||||
|
|
@ -195,6 +195,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
|
// 系统通知按照最新时间升序排序
|
||||||
this.noticeList = this.contentList.filter(item =>
|
this.noticeList = this.contentList.filter(item =>
|
||||||
item.isRead===0);
|
item.isRead===0);
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue