<!-- 我的优惠券 -->
<view class="container">
  <view class="h-tabs">
    <view class="h-tab {{type==0?'on':''}}" data-type="0" bindtap='changeTab'>未使用({{unUseCount}})</view>
    <view class="h-tab {{type==1?'on':''}}" data-type="1" bindtap='changeTab'>使用记录({{useCount}})</view>
    <view class="h-tab {{type==2?'on':''}}" data-type="2" bindtap='changeTab'>已过期({{expiredCount}})</view>
  </view>
  <view class="coupons">
    <block wx:for="{{couponList}}" wx:key="id">
      <coupon bindlongtap="delCouponHandle" data-couponuserid="{{item.couponUserId}}" canUse="{{type == 0}}" item="{{item}}" type="{{type}}"></coupon>
    </block>
  </view>

  <!-- <view class="empty" wx:if="{{!couponList.length}}">这里还没有任何东西~</view> -->
  <!-- 空 -->
  <view class="empty" wx:if="{{!couponList.length}}">
    <view class="empty-icon">
      <image src="../../images/icon/empty.png"></image>
    </view>
    <view class="empty-text">这里还没有相关优惠券~</view>
  </view>

</view>