<!--pages/hot/hot.wxml-->

<import src="../../module/header.wxml"/>
<scroll-view 
  class="conent"
  style="height:{{windowh}}rpx;"
  scroll-y="{{selectbar==''?'true':'false'}}"
  bindscrolltolower="{{hasloadall?'':'getHots'}}"
>
  <template 
    is="header"
    data="{{title:'好车热点',headerheight:headerheight,hasback:true}}"
  />

  <view wx:if="{{list.length>0}}" class="hot_list">
    <block wx:for="{{list}}" wx:key="id">
      <view class="hot_car_item">
      	<view class="hot_car_info">
      		<navigator 
            class="hot_car_title" 
            open-type="navigate"
            url="../hotdt/hotdt?id={{item.id}}">
      			{{item.title}}
      		</navigator>
      		<view class="hot_car_detail">      			
      			{{item.time}} 
      			<image src="../../img/eye.png" class="hot_car_img"/>
      			{{item.views}}
      		</view>
      	</view>
      	<navigator 
          open-type="navigate"
          url="../hotdt/hotdt?id={{item.id}}">
      		<image class="hot_car_image" src="{{item.img}}"/>
      	</navigator>
      </view>
    </block>
  </view>
  <view wx:else class="hot_empty"> 
    <view class="hot_empty_w">还没有热点哦~</view>
    <navigator 
      open-type="navigate"
      url="../buy/buy" 
      class="hot_empty_bt">去看看车</navigator>
  </view> 
  
</scroll-view>