test.wxml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <!--pages/hot/hot.wxml-->
  2. <import src="../../module/header.wxml"/>
  3. <page-scroll
  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
  18. class="hot_car_title"
  19. url="../hotdt/hotdt?id={{item.id}}">
  20. {{item.title}}
  21. </navigator>
  22. <view class="hot_car_detail">
  23. {{item.time}}
  24. <image src="../../img/eye.png" class="hot_car_img"/>
  25. {{item.views}}
  26. </view>
  27. </view>
  28. <navigator url="../hotdt/hotdt?id={{item.id}}">
  29. <image class="hot_car_image" src="{{item.img}}"/>
  30. </navigator>
  31. </view>
  32. </block>
  33. </view>
  34. <view wx:else class="hot_empty">
  35. <view class="hot_empty_w">还没有热点哦~</view>
  36. <navigator url="../buy/buy" class="hot_empty_bt">去看看车</navigator>
  37. </view>
  38. </page-scroll>