<template>
	<view class="">
		<navigator :url="`/pages/acitvityAudit/detail?id=${item.id}&current=${current}`" v-for="(item,index) in list"
			:key="index" class="card" hover-class="none">
			<image class="bg" mode="aspectFill" :src="item.poster"></image>
			<view class="content">
				<text class="text-cut-1 title">{{item.title}}</text>
				<view class="cu-tag btn-bg-color round sm tag" v-for="(item1,index1) in item.labelKey.split(',')" :key="index1">
					{{item1}}
				</view>
				<view class="bottom">
					<view class="">
						<text class="time">报名截至时间：{{item.endTime}}</text>
					</view>
					<view v-if="item.auditStatus.includes('WAITING')" class="center" style="color: #EF9944;">
						<text >待审核</text>
						<text class="cuIcon-right"></text>
					</view>
					<view v-if="item.auditStatus=='PASS'" class="center" style="color: #19be6b;">
						<text >已审核</text>
						<text class="cuIcon-right"></text>
					</view>
				</view>
			</view>
			
		</navigator>
	</view>
</template>

<script>
	export default {
		props: {
			list: Array,
		},
		data() {
			return {}
		},
		methods: {

		}

	}
</script>

<style lang="scss" scoped>
	.bottom-bar {
		position: fixed;
		bottom: 0;
		z-index: 99;
		width: 100%;
		background-color: #FFFFFF;
		height: 100rpx;
		display: flex;

		.left {
			width: 70%;
			display: flex;
			flex-direction: column;
			justify-content: center;
			padding-left: 30rpx;
		}

		.right {
			width: 30%;
		}
	}

	.card {
		overflow: hidden;
		position: relative;
		background-color: #FFFFFF;
		margin: 20rpx;
		border-radius: 20rpx;

		.bg {
			border-radius: 20rpx 20rpx 0 0;
			width: 100vw;
			height: 360rpx;
		}

		.status {
			position: absolute;
			right: 0;
			bottom: -10rpx;
			width: 100rpx;
		}

		.content {
			padding: 10rpx 20rpx;

			.title {
				font-weight: 800;
				font-size: 30rpx;
			}

			.tag {
				text-align: center;
				padding: 18rpx 28rpx;
				margin: 20rpx 20rpx 20rpx 0;
			}
			
			.bottom{
				display: flex;
				justify-content: space-between;
				font-size: 26rpx;
				
				.time {
					color: #999999;
				}
			}
		}
		
	}
</style>
