<template name="goodsOpen">
  <view wx:if="{{goodsOpen.length === 0}}" style="text-align:center;font-size:30rpx;color:#999;line-height:100rpx;">正在努力加载商品~</view>
  <navigator class="container-block" url="../details/details?kid={{item.kid}}&title={{item.item_name}}"  hover-stay-time="{{hoverStayTime}}" wx:for="{{goodsOpen}}" wx:key="*this">
    <view class="goods-img">
      <image class="" src="{{prodUrl}}web-cp-all/img_pm/img/{{item.bid_file_id}}" lazy-load="true" mode="aspectFill"></image> 
      <view class="goods-time-state">
       <text>正在热卖</text>
      </view>
    </view>
    
    <view class="goods-info goods-info-ing">
      <text class="goods-title">{{item.item_name}}</text>
      <view class="goods-info-content">
        <view class="goods-proice">
          <text>当前价：</text> <text class="goods-proice-style">{{item.price_bidder}}元</text>
        </view>
        <view class="goods-info-other">
          <text class="shop-name">店铺：{{item.name}}</text>
          <view class="attention"><text style="color:#e22">{{item.offer_count}}</text>次出价</view>
        </view>
      </view>
    </view>
  </navigator> 
</template>

<!-- 已结束 -->
<template name="goodsClose">
  <view wx:if="{{goodsClose.length === 0}}" style="text-align:center;font-size:30rpx;color:#999;line-height:100rpx;">正在努力加载商品~</view>
  <navigator class="container-block" url="../details/details?kid={{item.kid}}&title={{item.item_name}}"  hover-stay-time="{{hoverStayTime}}" wx:for="{{goodsClose}}" wx:key="*this">
    <view class="goods-img">
      <image class="" src="{{prodUrl}}web-cp-all/img_pm/img/{{item.bid_file_id}}" lazy-load="true" mode="aspectFill"></image> 
      <view class="goods-time-state" style="background:#666;">
        <text style="text-align:center">竞买已结束</text>
      </view>
    </view>    
    <view class="goods-info goods-info-ing">
      <text class="goods-title">{{item.item_name}}</text>
      <view class="goods-info-content">
        <view class="goods-proice">
          <text>成交价：</text> <text class="goods-proice-style">{{item.price_end}}元</text>
        </view>
        <view class="goods-info-other">
          <text class="shop-name">店铺名称：{{item.name}}</text>
          <view class="attention"><text style="color:#e22">{{item.offer_count}}</text>次出价</view>
        </view>
      </view>
    </view>
  </navigator> 
</template>

<!-- 未开始 -->
<template name="goodsNotOpen">
  <view wx:if="{{goodsNotOpen.length === 0}}" style="text-align:center;font-size:30rpx;color:#999;line-height:100rpx;">正在努力加载商品~</view>
  <navigator class="container-block" url="../details/details?kid={{item.kid}}&title={{item.item_name}}"  hover-stay-time="{{hoverStayTime}}" wx:for="{{goodsNotOpen}}" wx:key="*this">
    <view class="goods-img">
      <image class="" src="{{prodUrl}}web-cp-all/img_pm/img/{{item.bid_file_id}}" lazy-load="true" mode="aspectFill"></image> 
      <view class="goods-time-state" style="background:#0cd728">
        <text>即将开始</text>
      </view>
    </view>
    <view class="goods-info goods-info-ing">
      <text class="goods-title">{{item.item_name}}</text>
      <view class="goods-info-content">
        <view class="goods-proice">
          <text>起始价：</text> <text class="goods-proice-style">{{item.price_start}}元</text>
        </view>
        <view class="goods-info-other">
          <text class="shop-name">店铺：{{item.name}}</text>
          <view class="attention"><text style="color:#e22">{{item.submit_count}}</text>人报名</view>
        </view>
      </view>
    </view>
  </navigator> 
</template>
<!-- 没有数据时显示模块 -->
<template name="nullModular">
  <view class="null">
    <image src='../../images/box.png'></image>
    <text>这里空空如也</text>
  </view>
</template>