hot.wxml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <!--pages/hot/hot.wxml-->
  2. <import src="../../module/header.wxml"/>
  3. <template
  4. is="header"
  5. data="{{title:'好车热点',headerheight:headerheight,hasback:true}}"
  6. />
  7. <page-scroll
  8. className="content"
  9. styleSheet="height:{{contentheight}}px;"
  10. scroll-y="{{selectbar==''?'true':'false'}}"
  11. bindscrolltolower="{{hasloadall?'':'getHots'}}"
  12. >
  13. <view wx:if="{{list.length>0}}" class="hot_list">
  14. <block wx:for="{{list}}" wx:key="id">
  15. <navigator
  16. open-type="navigate"
  17. url="../hotdt/hotdt?id={{item.id}}"
  18. class="hot_car_item">
  19. <view class="hot_car_info">
  20. <view
  21. class="hot_car_title" >
  22. {{item.title}}
  23. </view>
  24. <view class="hot_car_detail">
  25. {{item.time}}
  26. <image src="../../img/eye.png" class="hot_car_img"/>
  27. {{item.views}}
  28. </view>
  29. </view>
  30. <view>
  31. <image class="hot_car_image" src="{{item.img}}"/>
  32. </view>
  33. </navigator>
  34. </block>
  35. </view>
  36. <view wx:else class="hot_empty">
  37. <view class="hot_empty_w">还没有热点哦~</view>
  38. <navigator
  39. open-type="navigate"
  40. url="../buy/buy"
  41. class="hot_empty_bt">去看看车</navigator>
  42. </view>
  43. </page-scroll>