<!-- 折扣卡list页面 -->
<view class='content'>
  <view class="market clearfix">
    <i-tabs current="{{current_scroll}}" scroll bindchange="handleChangeScroll">
      <i-tab wx:for="{{tabs}}" wx:key="unique" key="{{item.id}}" title="{{item.title}}"></i-tab>
    </i-tabs>
    <view class='cards'>
      <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-couponId='{{item.couponId}}'  data-quancode="{{item.id}}">
        <view class='mms'>
          <view class='detail_msg'>
              <image mode="aspectFill" src='{{item.coverImg}}' mode='widthFix'></image>
              <text>{{item.title}}</text>
          </view>
            <view class='buycardbtn'>
              <button>{{item.salePriceStr}}元 <text>购买</text></button>
          </view>
        </view>
      </view>
    </view>
  </view>
  <view class="loading" wx:if="{{loading}}">
    <image src="./../../assets/img/loading.gif" mode="widthFix"></image>{{content}}
  </view>
</view>