<!-- 限时抢购 查看更多对应的页面 -->
<view class='flashSale'>
  <view wx:for="{{list}}" wx:if="{{item.targetA!='end'}}" class='flashSaleItemWrap' wx:key="index">
    <view class='flashSaleItem'>
      <view class='flashSaleItemTop'>
        <view class='flashSaleItemTopL'>
          <image mode='aspectFill' src='{{item.coverImg}}' class='food'></image>
        </view>
        <view class='flashSaleItemTopR'>
          <view class='flashSaleItemTopRTop'>
            <text class='foodname'>{{item.title}}</text>
            <text class='small'>{{item.subTitle}}</text>
          </view>
          <view class='flashSaleItemTopRBottom'>
            <text class='presentPrice'><text class='sale'>售价:</text>{{item.salePriceStr}}<text class='yuan'>元</text></text><text class='originalPrice'>{{item.priceStr}}元</text>
          </view>
        </view>
      </view>
      <image class='lines' src='./../../assets/img/lines.png' mode='widthFix'></image>
      <view class='flashSaleItemBottom'>
        <view class='flashSaleItemBottomTop'>
          <text class='remainingTime'>距结束：</text>
          <text wx:if="{{item.flags=='end'}}" class='realRemainingTime'>活动已结束</text>
          <text wx:if="{{item.flags!='end'}}" class='realRemainingTime'>{{item.endtime}}</text>
        </view>
        <view class='flashSaleItemBottomBottm'>
          <view class="view1">
            <text class="remainingNumber">已售{{item.alsells}}%</text>
            <progress percent="{{(item.inventory-item.remainInventory)/item.inventory*100}}" stroke-width="6" activeColor="#ff4949" />
          </view>
          <view class='buy' data-couponId="{{item.couponId}}" data-couponChannelId="{{item.id}}" data-targetAd="{{item.targetAd}}" bindtap="gotodetail" hover-class='active' wx:if="{{item.salePriceStr!=0}}">马上购</view>
          <view class='buy' data-couponId="{{item.couponId}}" data-couponChannelId="{{item.id}}" data-targetAd="{{item.targetAd}}" bindtap="gotodetail" hover-class='active' wx:if="{{item.salePriceStr==0&&item.remainInventory!=0}}">立即领</view>
           <view class='buy' data-couponId="{{item.couponId}}" data-couponChannelId="{{item.id}}" data-targetAd="{{item.targetAd}}" bindtap="gotodetail" hover-class='active' style='background:#999;color:#fff;border:1px solid #999;' wx:if="{{item.salePriceStr==0&&item.remainInventory==0}}">已售罄</view>
          <view class='buy' wx:if="{{item.flags=='end'}}" style='background:#999;color:#fff;border:1px solid #999;'>已结束</view>
        </view>
      </view>
    </view>
  </view>
  <view class="loading" wx:if="{{loading}}">
    <image src="./../../assets/img/loading.gif" mode="widthFix"></image>{{content}}
  </view>
</view>