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

<import src="../../module/header.wxml"/>
<template 
  is="header"
  data="{{title:'好车热点',headerheight:headerheight,hasback:true}}"
/>
<page-scroll
  className="conent"
  styleSheet="height:{{windowh-70}}rpx;"
  scroll-y="{{selectbar==''?'true':'false'}}"
  bind:scrolltolower="{{hasloadall?'':'getHots'}}"
  upper-threshold="0"
>

  <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" 
            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 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 url="../buy/buy" class="hot_empty_bt">去看看车</navigator>
  </view> 
  
</page-scroll>