<template>
	<view class="coupon_layout">
		<view class="coupon_list">
			<view class="coupon_item">
				<view class="coupon_header">
					<text class="coupon_title">商家满减优惠券</text>
					<text class="coupon_price">¥10</text>
				</view>
			    <view class="coupon_body">
					<text class="coupon_valid_date">有效期至2024.10.25 23:56</text>
					<text class="coupon_remaining">满59可用</text>
			    </view>
				<view class="coupon_footer">
					<text class="coupon_rule">使用规则：必须在本商城使用</text>
					<view class="coupon_use" @click="useCoupon()">
						去使用
					</view>
				</view>
			</view>
		</view>
	</view>
	<view class="to_bottom" v-if="isLast"> -----到底啦-----</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			useCoupon(){
				uni.navigateTo({
					url:"/pagesA/coupon/couponproductlist"
				})
			}
		}
	}
</script>

<style lang="less">
.coupon_layout{
	width: 690rpx;
	margin: 30rpx auto;
	.coupon_list {
	  width: 690rpx;
	  display: flex;
	  flex-direction: column;
	  margin: 30rpx auto;
	   gap: 20rpx;
	  .coupon_item {
	    display: flex;
	    flex-direction: column;
		background: linear-gradient(to right,#ec3c35, #e8610e,#a51cd7);
	    color: white;
	    padding: 20rpx;
	    border-radius: 10rpx;
		
		.coupon_header {
		  display: flex;
		  justify-content: space-between;
		  .coupon_title {
		    font-size: 32rpx;
		  }
		  .coupon_price {
		    font-size: 40rpx;
		  }
		
		}
		.coupon_body {
		  display: flex;
		  justify-content: space-between;
		  margin-top: 10rpx;
		  .coupon_valid_date {
		    font-size: 24rpx;
		  }
		  .coupon_remaining {
		    font-size: 32rpx;
		  }
		  
		}
		.coupon_footer {
		  display: flex;
		  justify-content: space-between;
		  margin-top: 10rpx;
		  .coupon_rule {
			font-size: 24rpx;
		  }
		  .coupon_use{
			  width: 120rpx;
			  color: #000000;
			  text-align: center;
			  font-size: 24rpx;
			  background-color: #FFFFFF;
			  border-radius: 20rpx;
			  padding: 6rpx;
		  }
		  
		}
		
	  }
	}
}

</style>
