<template>
	<view class="couponsChecks">
		<scroll-view class="checksScroll" scroll-y="true">
			<view class="checksScroll_Box">
				<view style="width: 100%;height: 20rpx;">
					
				</view>
				<view class="card" v-for="(item,index) in couponsData" :key="item.id">
					<view class="boxs" v-if="item.status===1&& item.couponName==='拉新折扣券'">
						<view class="boxs-left">
							<text class="boxs-left-top" v-if="item.couponName==='拉新折扣券'">拉</text>
							<text class="boxs-left-tops" v-if="item.couponName==='拉新折扣券'">拉新折扣券</text>
						</view>
						<view class="boxs-right">
							<view class="boxs-right-top">
								{{item.couponName}}
							</view>
							<view class="boxs-right-tops">
								{{item.endTime}}
							</view>
							<view class="line">

							</view>
							<view class="boxs-right-bottom">
								<!-- 每次上线使用20分钟 -->{{item.rule}}
							</view>
						</view>
						<view class="boxs-Btn" @click="xiche(index)">
							使用
						</view>
					</view>
				</view>
			</view>
		</scroll-view>
	</view>
</template>

<script setup>
	import {
		defineProps
	} from 'vue'
	const props = defineProps(['couponsData'])
	
	const xiche= ()=>{
		
	}
</script>

<style lang="scss">
	.couponsChecks {
		width: 100%;
		height: 100%;
		position: fixed;
		background-color: rgba(0, 0, 0, 0.5);
		z-index: 999999;
		display: flex;
		align-items: center;
		justify-content: center;

		.checksScroll {
			width: 100%;
			height: 60%;
			position: relative;
			background-color: white;
			border-radius: 20rpx;

			.checksScroll_Box {
				width: 100%;
				height: 100%;
				.card {
					width: 694rpx;
					margin-left: 50%;
					transform: translateX(-50%);	
				
					.boxs {
						width: 694rpx;
						height: 208rpx;
						margin-top: 20rpx;
						border-radius: 20rpx 20rpx 20rpx 20rpx;
						display: flex;
						justify-content: space-between;
						align-items: center;
						position: relative;
				
						.boxs-left {
							width: 234rpx;
							height: 208rpx;
							background-image: url("https://www.jiubaotongxue.love/image/demo43.png");
							background-size: 100% 100%;
				
							.boxs-left-top {
								display: block;
								width: 100%;
								height: 66rpx;
								line-height: 66rpx;
								text-align: center;
								margin-top: 46rpx;
								font-size: 48rpx;
								color: white;
							}
				
							.boxs-left-tops {
								display: block;
								width: 100%;
								height: 40rpx;
								line-height: 40rpx;
								text-align: center;
								font-size: 28rpx;
								color: white;
								margin-top: 12rpx;
							}
						}
				
						.boxs-right {
							width: 460rpx;
							height: 208rpx;
							background-image: url("https://www.jiubaotongxue.love/image/demo44.png");
							background-size: 100% 100%;
							box-sizing: border-box;
							padding-left: 28rpx;
				
							.boxs-right-top {
								width: 100%;
								height: 42rpx;
								font-weight: 500;
								font-size: 30rpx;
								color: #242526;
								line-height: 42rpx;
								margin-top: 34rpx;
								font-weight: 700;
							}
				
							.boxs-right-tops {
								width: 100%;
								height: 34rpx;
								font-weight: 400;
								font-size: 24rpx;
								color: rgba(36, 37, 38, 0.5);
								line-height: 34rpx;
								font-style: normal;
								margin-top: 14rpx;
							}
				
							.line {
								width: 100%;
								height: 2rpx;
								border-top: 1rpx solid #E6E6E6;
								margin-top: 16rpx;
							}
				
							.boxs-right-bottom {
								width: 100%;
								height: 34rpx;
								font-weight: 400;
								font-size: 24rpx;
								color: rgba(36, 37, 38, 0.5);
								line-height: 34rpx;
								margin-top: 16rpx;
							}
				
						}
				
						.boxs-Btn {
							position: absolute;
							right: 28rpx;
							top: 28rpx;
							width: 88rpx;
							height: 48rpx;
							text-align: center;
							line-height: 48rpx;
							font-size: 22rpx;
							color: white;
							background: linear-gradient(135deg, #FEB44C 0%, #FF8833 100%);
							border-radius: 25rpx 25rpx 25rpx 25rpx;
						}
				
						.boxs-Btns {
							position: absolute;
							right: 24rpx;
							top: 24rpx;
							width: 88rpx;
							height: 88rpx;
							border-radius: 50%;
							background-size: 100% 100%;
						}
				
						.boxsBtnsActive {
							background-image: url("https://www.jiubaotongxue.love/image/demo45.png");
						}
				
						.boxsBtnsActives {
							background-image: url("https://www.jiubaotongxue.love/image/demo46.png");
						}
					}
				}
			}
		}
	}
</style>