消息日志ui

feasure-livedata
lld 2026-04-03 19:31:18 +08:00
parent a464432585
commit 5dc1b6aa77
1 changed files with 5 additions and 4 deletions

View File

@ -82,7 +82,7 @@
<view v-if="item.content">{{ item.content }}</view> <view v-if="item.content">{{ item.content }}</view>
<view v-else>{{item.title.substring(0,2)}} ... </view> <view v-else>{{item.title.substring(0,2)}} ... </view>
<view v-if="item.numBadge>0 && !item.badge"> <view v-if="item.numBadge>0 && !item.badge">
<uni-badge :text="item.numBadge" type="error" size="mini" /> <uni-badge :text="item.numBadge" type="error" size="mini" />
</view> </view>
</view> </view>
</view> </view>
@ -138,7 +138,7 @@ export default {
msgType: 'notice', msgType: 'notice',
title: '系统通知', title: '系统通知',
badge: false, badge: false,
numBadge: 5, // numBadge: null, //
width: '40rpx' width: '40rpx'
}, },
{ {
@ -148,7 +148,7 @@ export default {
title: '活动中心', title: '活动中心',
msgType: 'event', msgType: 'event',
badge: false, badge: false,
numBadge: 25, // numBadge: null, //
width: '100rpx' width: '100rpx'
} }
], ],
@ -252,7 +252,7 @@ export default {
cancelText: '取消', cancelText: '取消',
confirmText: '确定', confirmText: '确定',
success: (res) => { success: (res) => {
removeBatch({msgType:"status"}).then(response => { removeBatch({msgType:item.msgType}).then(response => {
if (response.code === 200) { if (response.code === 200) {
this.getMsgOverview() this.getMsgOverview()
} }
@ -451,6 +451,7 @@ export default {
font-size: 26rpx; font-size: 26rpx;
color: #999; color: #999;
line-height: 1.4; line-height: 1.4;
max-height: 18.19px;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;