<template>
	<view>
		<u-navbar :placeholder="true" bgColor="#fff" :autoBack="true" :border="true" title="选择优惠券"></u-navbar>
		<view class="coupon-title">可用代金券：1</view>
		<view class="coupon-list">
			<view class="flex coupon-list-item">
				<view class="flex coupon-list-item-info">
					<image src="../../static/logo.png" mode=""></image>
					<view class="flex content">
						<view class="txt">xx盲票代金券</view>
						<view class="txt">使用期限：2022.03.02-2022.04.01</view>
						<view class="txt">适用范围：指定盲票</view>
					</view>
					<view class="money">
						<view class=""><text>￥</text>10,00</view>
					</view>
				</view>
				<view class="checked">
					<u-checkbox-group>
						<u-checkbox :value="checked" :checked="checked" shape="circle" activeColor="#E96737"
							@change="changeChecked"></u-checkbox>
					</u-checkbox-group>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				checked: false
			};
		},
		methods:{
			changeChecked(e){
				console.log(e);
			}
		}
	}
</script>

<style lang="scss" scoped>
	.coupon {
		&-title {
			position: fixed;
			width: 100%;
			padding: 24rpx 32rpx;
			background-color: #FFFFFF;
		}

		&-list {
			margin-top: 100rpx;
			padding: 0 20rpx;

			&-item {
				justify-content: space-between;
				padding: 40rpx;
				background-color: #FFFFFF;
				
				&-info{
					flex: 1;
					
					image{
						width: 84rpx;
						height: 132rpx;
					}
					
					.content{
						height: 132rpx;
						flex-direction: column;
						align-items: flex-start;
						justify-content: space-between;
					}
				}
			}
		}
	}
</style>
