<!-- pages/specialDiscount/specialDiscount.wxml -->
<view class="discount-list">
  <image src="../../images/icon/activity-bg.png" class="list-bg" />
  <view class="{{['item' , item.mobilePic ? '' : 'no-bg']}}" wx:for="{{discountList}}" wx:key="discountId" bindtap="toDiscountDetail" data-discountid="{{item.discountId}}">
    <image src="{{item.mobilePic}}" class="bg" />
    <view class="text-box">
      <view class="info">{{item.discountName}}</view>
      <view class="shop">
        {{item.shopName}}专场
        <image src="../../images/icon/activity-arr.png" class="arr" />
      </view>
      <view class="time">
        <view class="time-icon"></view>
        仅剩
        <view class="much-time" wx:if="{{endTimeList[index].day}}">
          <view class="day">{{endTimeList[index].day}}</view>
          天
        </view>
        <!-- 大于24小时展示 -->
        <view class="number-box" wx:if="{{endTimeList[index].day==0}}">
          <view class="number">{{endTimeList[index].hour}}</view>
          <view class="colon">:</view>
          <view class="number">{{endTimeList[index].min}}</view>
          <view class="colon">:</view>
          <view class="number">{{endTimeList[index].second}}</view>
        </view>
        <!-- 小于24小时展示 -->
      </view>
    </view>
  </view>
</view>