<template>
	<view class="container">
		<!-- 每一个消息区域 -->
		<view class="box" v-for="item in imgList" :key="item.id">
			<view class="box_time">{{ item.time }}</view>
			<view class="box_info">
				<view class="info_circle" :class="{ while: item.type === false }"></view>
				<view class="info_icon">
					<img src="../../static/images/repairsImg/msg.png" />
				</view>
				<view class="info_msg">
					<view class="msg_title">{{ item.title }}</view>
					<view class="msg_order">订单号：{{ item.order }}</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			imgList: [
				{
					id: 1,
					type: false,
					title: '订单已完成请尽快确认！',
					order: '06521649496',
					time: '2023-07-07  12:25:25'
				},
				{
					id: 2,
					type: true,
					title: '请尽快确认！',
					order: '06521649496',
					time: '2023-08-07  12:25:25'
				},
				{
					id: 3,
					type: false,
					title: '已完成请尽快确认！',
					order: '06521649496',
					time: '2023-06-07  12:25:25'
				},
				{
					id: 4,
					type: false,
					title: '订单已完成请尽快确认！',
					order: '06521649496',
					time: '2023-07-07  12:25:25'
				},
				{
					id: 5,
					type: true,
					title: '请尽快确认！',
					order: '06521649496',
					time: '2023-08-07  12:25:25'
				},
				{
					id: 6,
					type: false,
					title: '已完成请尽快确认！',
					order: '06521649496',
					time: '2023-06-07  12:25:25'
				},
				{
					id: 7,
					type: false,
					title: '已完成请尽快确认！',
					order: '06521649496',
					time: '2023-06-07  12:25:25'
				}
			]
		}
	}
}
</script>

<style lang="scss" scoped>
.container {
	width: 100vw;
	height: 100vh;
	background-color: #f2f2f2;
	overflow-y: auto;

	.box {
		margin-top: 10rpx;
		height: 194rpx;
		background-color: #fff;

		.box_time {
			height: 76rpx;
			line-height: 76rpx;
			text-align: center;
			color: #999999;
			font-size: 24rpx;
		}

		.box_info {
			display: flex;
			align-items: center;
			margin-left: 30rpx;

			.info_circle {
				width: 16rpx;
				height: 16rpx;
				border-radius: 50%;
				background-color: #d43030;
			}

			.while {
				background-color: #fff;
			}
			.info_icon {
				margin: 0 8rpx;
				width: 90rpx;
				height: 90rpx;

				img {
					width: 100%;
					height: 100%;
				}
			}

			.info_msg {
				.msg_title {
					font-size: 32rpx;
					font-weight: bold;
				}

				.msg_order {
					margin-top: 10rpx;
					color: #808080;
					font-size: 24rpx;
				}
			}
		}
	}
}
</style>
