<!--pages/list/list.wxml-->
<view class='container'>
  <view class='nothing' wx:if="{{array.length<=0}}">
    该分类暂无宝贝
  </view>
  <block wx:for="{{array}}" wx:key="index">
    <navigator class='public' url='../details/details?kid={{item.kid}}&title={{item.item_name}}'>
      <view class='top'>
        <view class='img'>
          <image src='{{prodUrl}}web-cp-all/img_pm/img/{{item.bid_file_id}}'></image>
        </view>
        <view class='count'>
          <view class='title'>
            {{item.item_name}}
          </view>
          <view class='price'>
            <text class='bf'>￥{{item.price_bidder}}</text>
            <text class='offer'>
              <text>{{item.offer_count}}</text>
              <text>次出价</text>
            </text>
          </view>
           <view class='prices'>           
            <text wx:if="{{item.bid_opening === '已开拍'}}" class='fontred'>{{item.bid_opening}}</text>
            <text wx:elif="{{item.bid_opening === '未开拍'}}" class='fontgreen'>{{item.bid_opening}}</text>
            <text wx:else="{{item.bid_opening === '已结束'}}" class='fontgray'>{{item.bid_opening}}</text>
          </view>
        </view>
      </view>
    </navigator>
  </block>
</view>