<template>
	<view class="content">
		<view class="m-message-card" v-for="item in 3" @click="to_detail">
			<view class="m-message">
				<view class="message textHidden">爱护公共场所，请勿吸烟乱扔垃圾爱护公共场所，请勿吸爱护公共场所，请勿吸</view>
				<view class="date">全龄运动平台 03-14 10：23</view>
			</view>
			<view class="message-img">
				<image src="https://img.keaitupian.cn/newupload/08/1629449018344288.jpg" mode=""></image>
			</view>
		</view>
	</view>
</template>

<script lang="ts" setup>
	const to_detail = () => {
		uni.navigateTo({
			url: '/pages/index/messageDetail/index'
		})
	}
</script>

<style lang="less" scoped>
	.m-message-card{
		margin-top: 20rpx;
		padding: 20rpx;
		background: #FFFFFF;
		border-radius: 32rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;
		.m-message{
			.message{
				width:480rpx;
				font-weight: 800;
				font-size: 32rpx;
				color: #222222;
			}
			.date{
				margin-top: 24rpx;
				font-size: 24rpx;
				color: #AAAAAA;
			}
		}
		.message-img{
			&>image{
				width: 160rpx;
				height: 160rpx;
				border-radius: 32rpx;
			}
		}
	}
</style>