<view class="modal-container{{show ? ' active' : ''}}" bindtap="hidePopup" />
<view class="modal-content{{show ? ' active' : ''}}">
	<!--{{couponList}}-->
	<view class="modal-header">
		<image src="/assets/imgs/7_1_0/arrow-right.png" class="modal-to-back" mode="widthFix" />
		<text class="modal-title">选择优惠券</text>
		<image
		 class="modal-close"
		 mode="widthFix"
		 src="/assets/imgs/7_1_0/close.png"
		 bindtap="hidePopup"
		/>
	</view>

	<view class="modal-info" wx:if="{{couponList.length}}">
		<block wx:for="{{couponList}}" wx:key="{{index}}" wx:for-item="item">
			<view class="coupon-list" data-id="{{item.couponSettingDTO.couponSettingId}}" data-index="{{index}}" data-type="{{item.couponSettingDTO.type}}" bindtap="selectCoupon">
				<image
				 wx:if="{{false}}"
				 class="coupon-bg"
				 src="/assets/imgs/7_1_0/coupon-bg.png"
				 mode="widthFix"
				/>
				<image class="coupon-bg" src="/assets/imgs/7_1_0/disabled-coupon.png" mode="widthFix" />
				<view class="coupon-info">
					<view class="left-price">
						<image class="left-price-coupon-bg" src="{{item.couponSettingDetailDTO.style.takeCouponBgimg}}" />
					</view>
					<view class="right-info">
						<view class="coupon-title">{{item.couponSettingDTO.title}}</view>
						<view wx:for="{{item.couponSettingDTO.notice}}" wx:key="{{index}}">
							<text class='coupon-time'>{{item.label}}</text>
							<text class='coupon-desc wpl'>{{item.value}}</text>
						</view>
					</view>

        <view class="select-radio">
           <icon size="16" type="{{item.checked ? 'success' : 'circle'}}" color="{{checkedColor}}"></icon>
        </view>


				<!--	<view class="select-radio">
						<view class="{{isSelect ? 'theme-color' : ''}} coupon-radio">
							<image
							 wx:if="{{isSelect}}"
							 class="tick-success"
							 src="/assets/imgs/7_1_0/tick-success.png"
							 mode="widthFix"
							/>
						</view>
					</view>-->

				</view>
			</view>
		</block>
	</view>

	<view wx:else class="empty-coupon">
		暂无可用优惠券
	</view>
</view>

