历史记录暂时提交

feasure-livedata
lld 2026-03-26 01:01:46 +08:00
parent b177b3d800
commit f901881a21
1 changed files with 25 additions and 7 deletions

View File

@ -65,7 +65,13 @@
<view class="item-title">{{ item.title }}</view> <view class="item-title">{{ item.title }}</view>
<view class="item-desc">{{ item.desc }}</view> <view class="item-desc">{{ item.desc }}</view>
</view> </view>
<view class="item-time">{{ item.time }}</view> <!-- 右侧时间+角标列 -->
<view class="item-right">
<view class="item-time">{{ item.time }}</view>
<view v-if="item.numBadge" class="num-badge">
<uni-badge :text="item.numBadge" type="error" size="mini" />
</view>
</view>
</view> </view>
</view> </view>
@ -86,15 +92,17 @@ export default {
data() { data() {
return { return {
title: '消息中心', title: '消息中心',
isShowNumBadge: true,
messageList: [ messageList: [
{ {
// video111 / camera_ // video111 / camera_
imgUrl: 'https://img.xiaoces.com/photos/news/camera_.png', // imgUrl: 'https://img.xiaoces.com/photos/news/camera_.png', //
title: '视频中心', title: '视频中心',
desc: '[画面变化] DS-2DE4423DW-D/GLT/XM(FW1167...', desc: '[画面变化] DS-2DE4423DW-D/GLT/XM(FW116231321313123123123132312dgvbdfg7...',
time: '11:51', time: '11:51',
badge: true, badge: true,
width: '100rpx' numBadge: '1', //
width: '60rpx'
}, },
{ {
// device imei1 device_status3 // device imei1 device_status3
@ -104,7 +112,8 @@ export default {
desc: '[设备在线] 十方', desc: '[设备在线] 十方',
time: '26/03/21', time: '26/03/21',
badge: true, badge: true,
width: '100rpx' numBadge: '2',
width: '60rpx'
}, },
{ {
// notice_1 notice_2 notice_ // notice_1 notice_2 notice_
@ -114,6 +123,7 @@ export default {
desc: '没有新的消息', desc: '没有新的消息',
time: '', time: '',
badge: false, badge: false,
numBadge: null, //
width: '40rpx' width: '40rpx'
}, },
{ {
@ -324,9 +334,17 @@ export default {
line-height: 1.4; line-height: 1.4;
} }
} }
.item-time {
font-size: 26rpx; // +
color: #999; .item-right {
display: flex;
flex-direction: column;
align-items: flex-end;
.item-time {
font-size: 26rpx;
color: #999;
margin-bottom: 15rpx;
}
} }
} }
} }