hot.wxml 1.2 KB

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