<template>
	<view class="content">
		<view class="e-card-list" v-for="item in 3">
			<view class="e-events-info">
				<view class="e-picture">
					<image class="pic" src="https://img95.699pic.com/photo/60010/7623.jpg_wh860.jpg" mode=""></image>
					<view class="e-badge">
						<image src="/src/static/events-icon1.png" mode="widthFix"></image>
						<view class="text">橄榄球</view>
					</view>
				</view>
				<view class="e-info">
					<view class="e-title">第一届“全龄运动杯”腰棋橄榄球交流赛</view>
					<view class="e-address">
						观山湖区万达广场 <text>|</text> 2.2km
					</view>
					<view class="e-time">
						<zzx-icon name="clock" size="12"></zzx-icon>
						<text>05.10</text>
					</view>
				</view>
			</view>
			<view class="e-price">
				<view class="price"><text>￥</text>25.9</view>
				<view class="entry" @click="RouterUtils.to_page('/pages/index/eventsDetail/index')">
					<image src="/src/static/events-icon2.png" mode="widthFix"></image>
				</view>
			</view>
		</view>
	</view>
</template>

<script lang="ts" setup>
	import { ref } from 'vue'
	import { RouterUtils } from '@/utils/util';
</script>

<style lang="less" scoped>
	.e-card-list {
		margin-top: 20rpx;
		padding: 20rpx;
		background: linear-gradient(179deg, #F2FFBE 0%, #FFFFFF 60%);
		border-radius: 32rpx;

		.e-events-info {
			display: flex;
			align-items: center;
			gap: 20rpx;

			.e-picture {
				position: relative;

				.pic {
					width: 200rpx;
					height: 200rpx;
					border-radius: 32rpx;
				}

				.e-badge {
					position: absolute;
					top: -4rpx;
					left: -20rpx;

					&>image {
						width: 114rpx;
					}

					.text {
						position: absolute;
						top: 14rpx;
						left: 30rpx;
						font-size: 20rpx;
						color: #222222;
					}
				}
			}

			.e-info {
				.e-title {
					font-weight: 800;
					font-size: 32rpx;
					color: #222222;
				}

				.e-address {
					margin-top: 12rpx;
					font-size: 24rpx;
					color: #222222;
				}

				.e-time {
					margin-top: 16rpx;
					width: 132rpx;
					height: 42rpx;
					border-radius: 28rpx;
					background: linear-gradient(90deg, #C8FF0C 0%, #F2FFC7 79%, rgba(255, 255, 255, 0) 100%);
					display: flex;
					align-items: center;
					justify-content: center;
					gap: 10rpx;
					font-weight: bold;
					font-size: 24rpx;
					color: #222222;
				}
			}
		}

		.e-price {
			height: 110rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;
			border-top: 1rpx solid #F0F0F0;
			margin-top: 24rpx;

			.price {
				font-weight: 800;
				font-size: 48rpx;
				color: #FB5B5B;

				&>text {
					font-size: 24rpx;
				}
			}

			.entry {
				&>image {
					width: 156rpx;
				}
			}
		}
	}
</style>