历史记录暂时提交
parent
b177b3d800
commit
f901881a21
|
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue