test.wxml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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="conent"
  9. styleSheet="height:{{windowh-70}}rpx;"
  10. scroll-y="{{selectbar==''?'true':'false'}}"
  11. bind:scrolltolower="{{hasloadall?'':'getHots'}}"
  12. upper-threshold="0"
  13. >
  14. <view wx:if="{{list.length>0}}" class="hot_list">
  15. <block wx:for="{{list}}" wx:key="id">
  16. <view class="hot_car_item">
  17. <view class="hot_car_info">
  18. <navigator
  19. class="hot_car_title"
  20. url="../hotdt/hotdt?id={{item.id}}">
  21. {{item.title}}
  22. </navigator>
  23. <view class="hot_car_detail">
  24. {{item.time}}
  25. <image src="../../img/eye.png" class="hot_car_img"/>
  26. {{item.views}}
  27. </view>
  28. </view>
  29. <navigator url="../hotdt/hotdt?id={{item.id}}">
  30. <image class="hot_car_image" src="{{item.img}}"/>
  31. </navigator>
  32. </view>
  33. </block>
  34. </view>
  35. <view wx:else class="hot_empty">
  36. <view class="hot_empty_w">还没有热点哦~</view>
  37. <navigator url="../buy/buy" class="hot_empty_bt">去看看车</navigator>
  38. </view>
  39. </page-scroll>