<view class="market">
  <!-- 券包 我的优惠券 -->
  <i-tabs class='tabs' current="{{ current_scroll }}" scroll bindchange="handleChangeScroll">
    <i-tab class='i-tab' wx:for="{{tabs}}" wx:key="unique" key="{{item.key}}" title="{{item.name}}"></i-tab>
  </i-tabs>
  <view style='padding-top:120rpx;'>
    <view class="nocoupon" wx:if="{{list.length==0}}">
      <image src="./../../../assets/img/coupon.png" mode="widthFix" />
      <text class="txt001">请您敬请期待</text>
      <text class='txt002'>我们正在筹备一大波优惠活动</text>
      <navigator class='nav' url="/pages/index/index" open-type="switchTab" hover-class="other-navigator-hover">
        <button hover-class='active'>前往首页看看</button>
      </navigator>
    </view>

    <view class='section' wx:for='{{list}}' wx:key='{{index}}' bindtap="gotouse" data-quancode="{{item.id}}" data-couponorderstatus="{{item.couponOrderStatus}}">
      <view class='mms'>
        <view class='detail_msg'>
          <view class='logo'>
            <image mode="aspectFill" src='{{item.coverImg}}'></image>
          </view>
          <view class='info'>
            <view class='title'>
              <text>{{item.title}}</text>
            </view>
            <view class='subtitle'>
              <text>{{item.subTitle}}</text>
            </view>
            <view hover-class='active' wx:if="{{item.couponOrderStatus==0}}" class="btns">去使用</view>
            <view hover-class='active' wx:elif="{{item.couponOrderStatus==1||item.couponOrderStatus==2||item.couponOrderStatus==3}}" class="btns">查看</view>
          </view>
        </view>
        <image class="liness" src='./../../../assets/img/liness.png' mode="widthFix"></image>        
        <view class='expiretime'>
          <text class="txt1">有效期至：</text>
          <text class="txt2">{{item.expiredTime}}</text>
        </view>
      </view>
    </view>
    <view class="loading" wx:if="{{loading}}">
      <image src="./../../../assets/img/loading.gif" mode="widthFix"></image>{{content}}
    </view>
  </view>
</view>