index.wxml 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. <!--index.wxml-->
  2. <import src="../../module/header.wxml"/>
  3. <import src="../../module/footer.wxml"/>
  4. <import src="banner.wxml"/>
  5. <import src="goodcar.wxml"/>
  6. <import src="cardetail.wxml"/>
  7. <import src="../../module/caritem/caritem.wxml"/>
  8. <import src="../../module/search/search.wxml"/>
  9. <!-- <scroll-view
  10. class="conent"
  11. style="height:{{windowh}}rpx;"
  12. scroll-y="{{scrollsource.startdot&&scrollsource.distance>0?false:true}}"
  13. bindscroll=""
  14. > -->
  15. <template
  16. is="header"
  17. data="{{title:'第一好车',headerheight:headerheight}}"
  18. />
  19. <template
  20. is="search"
  21. data="{{keylist:[],topsearchheight:topsearchheight,searchshow:searchshow,searchfocus:searchfocus,windowh:windowh,brandrecommend:brandrecommend,headerheight:headerheight}}"
  22. />
  23. <!-- <include src="../../module/search/search.wxml"/> -->
  24. <page-scroll
  25. styleSheet="height:{{windowh-headerheight-topsearchheight}}rpx;"
  26. scroll-y="true"
  27. >
  28. <view class="content">
  29. <template is="banner" data="{{banner:banner}}"/>
  30. <view class="nav_list">
  31. <view class="nav_item">
  32. <navigator
  33. open-type="reLaunch"
  34. class="nav_item_link"
  35. url="../buy/buy">
  36. <view class="nav_item_img">
  37. <image src="../../img/home_buy.png"/>
  38. </view>
  39. <view class="nav_item_t">我要买车</view>
  40. </navigator>
  41. </view>
  42. <view class="nav_item">
  43. <navigator
  44. open-type="reLaunch"
  45. class="nav_item_link"
  46. url="../sell/sell">
  47. <view class="nav_item_img">
  48. <image src="../../img/home_sell.png"/>
  49. </view>
  50. <view class="nav_item_t">我要卖车</view>
  51. </navigator>
  52. </view>
  53. <view class="nav_item">
  54. <navigator
  55. open-type="navigate"
  56. class="nav_item_link"
  57. url="../evaluate/evaluate">
  58. <view class="nav_item_img">
  59. <image src="../../img/home_assess.png"/>
  60. </view>
  61. <view class="nav_item_t">我要估价</view>
  62. </navigator>
  63. </view>
  64. <view class="nav_item">
  65. <navigator
  66. open-type="navigate"
  67. class="nav_item_link"
  68. url="../loans/loans">
  69. <view class="nav_item_img">
  70. <image src="../../img/home_loan.png"/>
  71. </view>
  72. <view class="nav_item_t">我要贷款</view>
  73. </navigator>
  74. </view>
  75. </view>
  76. <template is="goodcar" data="{{goodcars:goodcars}}"/>
  77. <view class='brand'>
  78. <block wx:for="{{brandrecommend}}" wx:key="id">
  79. <view class="brand_item_b">
  80. <view class="brand_item">
  81. <navigator
  82. open-type="reLaunch"
  83. class="brand_item_link"
  84. url="../buy/buy?brand={{item.brand_id}}">
  85. <view class="brand_item_img" style="background-image:url({{item.brand_img}})"></view>
  86. <view class="brand_item_name">{{item.brand_name}}</view>
  87. </navigator>
  88. </view>
  89. </view>
  90. </block>
  91. </view>
  92. <navigator
  93. open-type="reLaunch"
  94. url="../buy/buy"
  95. class="brand_more">查看更多好车</navigator>
  96. <view class="recommend">
  97. <view class="recommend_t">
  98. <image class="recommend_img" src="../../img/recommend.png"/>
  99. <image class="recommend_w" src="../../img/recommend_w.png"/>
  100. <!-- <view class="recommend_w">RECOMMENDATIONS</view> -->
  101. </view>
  102. <view class="recommend_sw">
  103. <swiper
  104. class='recommend_list'
  105. autoplay='true'
  106. interval='3000'
  107. duration='300'
  108. bindchange='switchReTab'
  109. circular='true'
  110. >
  111. <block wx:for="{{recommended}}" wx:key="id">
  112. <swiper-item>
  113. <!-- <template is="caritem" data="{{car:item}}"/> -->
  114. <template is="cardetail" data="{{car:item}}"/>
  115. </swiper-item>
  116. </block>
  117. </swiper>
  118. <view class="recommended_tab">
  119. <block wx:for="{{recommended}}" wx:key="id">
  120. <view wx:if="{{item.selected}}" class='recommended_tab-item recommend_selected'></view>
  121. <view wx:else class="recommended_tab-item"></view>
  122. </block>
  123. </view>
  124. </view>
  125. </view>
  126. <view class="recommend">
  127. <view class="recommend_t">
  128. <image class="like_img" src="../../img/like.png"/>
  129. <image class="like_w" src="../../img/like_w.png"/>
  130. <!-- <view class="recommend_w">GUESS YOU LIKE</view> -->
  131. </view>
  132. </view>
  133. <view class="like_cart_c">
  134. <block wx:for="{{like}}" wx:key="id">
  135. <template is="caritem" data="{{car:item}}"/>
  136. </block>
  137. </view>
  138. <navigator
  139. open-type="reLaunch"
  140. url="../buy/buy"
  141. class="show_more">加载更多 <image src="../../img/right.png"/></navigator>
  142. <image class="bottom_banner" src="../../img/banner.png"></image>
  143. </view>
  144. <view
  145. class="page_footer_place"
  146. style="height:{{footerheight}}rpx;"
  147. ></view>
  148. </page-scroll>
  149. <template
  150. is="footer"
  151. data="{{local:0,footerheight:footerheight}}"
  152. />