<template>
	<view class="container">
		<view class="padding-wrap">
			<view class="message-box" @click="goDetail">
				<view class="message-image">
					<image class="image" src="@/static/msg-icon.png" mode="widthFix"></image>
				</view>
				<view class="message-info">
					<view class="message-title">
						<view class="title">报警消息</view>
						<view class="time">2023/07/01</view>
					</view>
					<view class="message-des">
						此处是报警信息详情此处是报警信息详情此处是报警信息详情此处是报警信息详情此处是报警信息详情
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {}
		},
		onLoad() {
			// #ifdef APP-PLUS
			// #endif
		},
		methods: {
			goDetail() {
				uni.navigateTo({
					url: '/pages/message/detail'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	page,
	.container {
		min-height: 100vh;
		background-color: #FFFFFF;
	}

	.padding-wrap {
		padding: 30upx;
	}

	.message-box {
		display: flex;
		flex-direction: row;
		align-items: center;
		margin-bottom: 44upx;

		.message-image {
			display: block;
			margin-right: 20upx;

			.image {
				width: 88upx;
				height: 88upx;
			}
		}

		.message-info {
			flex: 1;
			color: #031945;
			font-size: 28upx;
			line-height: 40upx;
			font-family: PingFang SC-Bold, PingFang SC;
			font-weight: bold;

			.message-title {
				display: flex;
				justify-content: space-between;

				.title {
					max-width: 80%;
					white-space: nowrap;
					text-overflow: ellipsis;
				}

				.time {
					color: #90959D;
					font-size: 24upx;
					font-family: PingFang SC-Regular, PingFang SC;
					font-weight: 400;
				}
			}

			.message-des {
				color: #90959D;
				white-space: nowrap;
				text-overflow: ellipsis;
			}
		}
	}
</style>