realtimeData.vue
1012 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<template>
<view class="realtime-page">
<view class="item" v-for="(item, index) in recordList" :key="index">
<view class="item-top">
<view>{{ item.key }}</view>
<view class="item-value">{{ item.value }}</view>
</view>
<view class="item-time">{{ item.time }}</view>
</view>
<mescroll-empty v-if="!recordList.length" />
</view>
</template>
<script>
export default {
props: {
recordList: {
type: Array,
default: () => []
}
}
};
</script>
<style lang="scss" scoped>
.realtime-page {
.item {
margin: 30rpx;
padding: 30rpx;
border-radius: 20rpx;
background-color: #fff;
height: 160rpx;
width: 690rpx;
.item-top {
display: flex;
justify-content: space-between;
color: #333;
font-size: 32rpx;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: bold;
.item-value {
font-weight: bold;
}
}
.item-time {
margin-top: 4rpx;
font-size: 26rpx;
color: #999;
}
}
}
</style>