<view class="coupon_page">
	<view class="coupon_box" style="{{'background:'+(params.bgcolor?params.bgcolor:'')+';'}}">
		<view class="coupon_bg_box">
			<view class="coupon_bg {{(item.api_availability == 2 || item.api_availability == 3)?'last':''}}" wx:key="index" wx:for-index="index"
			 wx:for-item="item" wx:for="{{coupon_list}}" catchtap="selectedcoupon" data-item="{{item}}" data-index="{{index}}"
			 style="{{'background-color:'+(params.couponcolor?params.couponcolor:'')}}">
				<view class="ul coupon_info">
					<view class="li">
						<view class="span" wx:if="{{item.coupon_method===1}}">{{language['money']}}</view>
						<view class="font" wx:if="{{item.coupon_method===1}}">{{item.deduct}}</view>
						<view class="font" wx:if="{{item.coupon_method===2}}">{{item.discount}}</view><view class="span" wx:if="{{item.coupon_method===2}}">折</view>
						<view class="span receive" style="{{'color:'+(params.couponcolor?params.couponcolor:'')+';'}}"  wx:if="{{item.api_availability === 3}}">已抢光</view>
						<view class="span receive" style="{{'color:'+(params.couponcolor?params.couponcolor:'')+';'}}"  wx:if="{{item.api_availability === 2}}">已领取</view>
						<view  style="{{'color:'+(params.couponcolor?params.couponcolor:'')+';'}}" class="receive span" wx:if="{{item.api_availability !== 2 && item.api_availability !== 3}}">立即领取</view>
					</view>
					<view class="li">{{item.name}}</view>
				</view>
				<view style="{{'background-color:'+(params.bgcolor?params.bgcolor:'')}}"  class="spare_left"></view>
				<view style="{{'background-color:'+(params.bgcolor?params.bgcolor:'')}}" class="spare_right"></view>
			</view>
		</view>
	</view>
</view>
