<!--components/platCoupon/platCoupon.wxml-->
<view class="coupon-item {{canUse?'':'gray'}}">
  <view class='left'>
    <view class="num" wx:if="{{item.couponType == 1 || item.couponType == 3}}">
      <!-- ￥
      <text class="coupon-price">{{item.reduceAmount}}</text> -->
      <view class="cou-amount">{{item.reduceAmount}}</view>
      <view class="cou-text">元</view>
    </view>
    <view class="num" wx:if="{{item.couponType == 2}}">
      <text class="coupon-price">{{item.couponDiscount}}</text>折
    </view>
    <view class='condition'>
      满{{item.cashCondition}}元可用
    </view>
  </view>
  <view class='right'>
    <view class="c-des">
      <!-- <text class="c-type">{{item.suitableProdType==0?'通用':'商品'}}</text> {{item.suitableProdType==0?'全场通用':'指定商品可用'}} -->
      <view class="cou-name">{{item.couponName}}</view>
    </view>
    <view class="c-date">
      <!-- <text wx:if="{{showTimeType==1 && item.couponType==2}}" class="c-data-info">领券{{item.validDays}}天后失效</text> -->
      <!-- <text wx:else class="c-data-info">{{item.startTime}}~{{item.endTime}}</text> -->
      <text class="c-data-info">{{item.startTime}}~{{item.endTime}}</text>
      <!-- <view class="cou-term"> {{item.validTimeType == 1?coupon.endTime+'前':'领取后' +coupon.afterReceiveDays}}结束</view> -->
      <!-- <text class="c-btn" wx:if="{{item.canReceive && !order}}" bindtap='receiveCoupon'>立即领取</text> -->
      <text class="c-btn get-btn" wx:if="{{!item.canReceive && !order}}" bindtap='useCoupon'>立即使用</text>
    </view>
    <view wx:if="{{order && canUse}}" class="sel-btn">
      <checkbox color="#eb2444" data-couponid="{{item.couponId}}" checked="{{item.choose}}" bindtap="checkCoupon"></checkbox>
    </view>
  </view>
  <image class="tag-img" src="../../images/icon/coupon-used.png" wx:if="{{type==1}}"></image>
  <image class="tag-img" src="../../images/icon/coupon-ot.png" wx:if="{{type==2}}"></image>
</view>


  <!-- 券面 -->
  <!-- <view class="coupon-surface">
    <view class="coupon-content">
      <view class="coupon-left">
        <view class="cou-money-amount">
          <view class="cou-amount">{{coupon.reduceAmount}}</view>
          <view class="cou-text">元</view>
        </view>
        <view class="use-condition">满{{coupon.cashCondition}}元使用</view>
      </view>
      <view class="coupon-right">
        <view class="cou-name">{{coupon.couponName}}</view>
        <view class="cou-term"> {{coupon.validTimeType == 1?coupon.endTime+'前':'领取后' +coupon.afterReceiveDays}}结束</view>
      </view>
    </view>
  </view> -->
  <!-- 券面 -->
