<view class="market">
  <view style='padding-top:30rpx;'>
    <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 wx:if="{{list.length!=0}}">
      <view class="res">温馨提示:请离场前使用优惠券</view>
      <view class='section'  wx:for='{{list}}' wx:key='{{index}}' bindtap="choicecoupon" data-title="{{item.title}}" data-id="{{item.id}}">
        <view class='mms'>
          <image class='gou' wx:if="{{item.id==quanid}}" mode='widthFix' src='../../../assets/img/gou.png'></image>
          <view class='detail_msg'>
            <view class='info'>
              <view class='title'>
                <text>{{item.title}}</text>
              </view>
              <view class='subtitle'>
                <text>{{item.subTitle}}</text>
              </view>
              <view class="btns">{{item.salePrice/100}}
                <text class='yuan'>元</text>
              </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>
    <view class="loading" wx:if="{{loading}}">
      <image src="./../../../assets/img/loading.gif" mode="widthFix"></image>{{content}}
    </view>
  </view>
</view>