realtimeData.vue 1012 Bytes
<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>