brandlist.wxml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. <!--筛选品牌模块-->
  2. <!-- style="{{selectbar=='brand'?'left:0rpx;':''}}" -->
  3. <view
  4. class="brandw_c"
  5. style="{{show?'left:0rpx;':''}}"
  6. >
  7. <view
  8. style="height:{{headerheight}}rpx;"
  9. ></view>
  10. <view
  11. class="brandw_title"
  12. style="height:{{headerheight}}rpx;"
  13. >
  14. <!-- <image
  15. class="brandw_back"
  16. src="../../img/back.png"
  17. bindtap="filterBack"
  18. /> -->
  19. <view
  20. class="brandw_back"
  21. bindtap="filterBack">
  22. <image
  23. src="../../img/back.png"/>
  24. </view>
  25. <view class="brandw_title_w">品牌</view>
  26. </view>
  27. <scroll-view
  28. bindscroll="brandScroll"
  29. scroll-y=true
  30. style="height: {{contentheight}}px"
  31. scroll-into-view ="{{scrolltoinit}}"
  32. >
  33. <view class="brandw_list">
  34. <view wx:if="{{brandrecommend.length}}" class="brandw_t_line">热门品牌</view>
  35. <view class="brandw_hotlist">
  36. <block wx:for="{{brandrecommend}}" wx:key="brand_id">
  37. <view
  38. class="brandw_hotlist_item"
  39. bindtap="getBrandDetail"
  40. data-id="{{item.brand_id}}"
  41. data-img="{{item.brand_img}}"
  42. data-name="{{item.brand_name}}"
  43. >
  44. <view class="brandw_hotitem_img" style="background-image:url({{item.brand_img}})"></view>
  45. <view class="brandw_hotitem_name">{{item.brand_name}}</view>
  46. </view>
  47. </block>
  48. </view>
  49. <view class="brandw_a_line">不限品牌</view>
  50. <block wx:for="{{brandlist}}" wx:key="initial">
  51. <view class="brandw_binitial" id="{{item.initial}}">
  52. {{item.initial}}
  53. </view>
  54. <block wx:for="{{item.list}}" wx:for-item="branditem" wx:key="brand_id">
  55. <view
  56. class="brandw_bitem"
  57. bindtap="getBrandDetail"
  58. data-id="{{branditem.brand_id}}"
  59. data-img="{{branditem.img}}"
  60. data-name="{{branditem.brand_name}}"
  61. >
  62. <view
  63. class="brandw_bimg"
  64. style="background-image:url({{branditem.img}})"
  65. />
  66. <view class="brandw_bname">{{branditem.brand_name}}</view>
  67. </view>
  68. </block>
  69. </block>
  70. </view>
  71. </scroll-view>
  72. </view>
  73. <scroll-view
  74. class="brand_serieslist"
  75. scroll-y=true
  76. style="height: {{contentheight}}px; {{show&&serieslist?'left:0rpx;':''}}"
  77. >
  78. <view class="series_lelong">
  79. <view
  80. class="series_lelong_bimg"
  81. style="background-image:url({{serieslist.belong.img}})"
  82. />
  83. <!-- serieslist.belong.img -->
  84. <view class="series_lelong_name">{{serieslist.belong.name}}</view>
  85. </view>
  86. <view class="car_series_t">选择车系</view>
  87. <block
  88. wx:for="{{serieslist.list}}"
  89. wx:key="car_series_id"
  90. >
  91. <view
  92. class="brand_series_i"
  93. bindtap="selectSeries"
  94. data-series = "{{item}}"
  95. >
  96. <view
  97. class="brand_series_bimg"
  98. style="background-image:url({{serieslist.belong.img}})"
  99. />
  100. <view class="brand_series_name">{{item.car_series_name}}</view>
  101. </view>
  102. </block>
  103. </scroll-view>
  104. <view
  105. class="brand_initail_c"
  106. style="display: {{show?'block':'none'}}"
  107. >
  108. <!-- {{scrollinit==item.initial?'brand_initail_active':''}} -->
  109. <image
  110. class="brand_selectbg"
  111. style="top:{{scrollinit*initialheight}}px "
  112. src="../../img/selectbrand.png"/>
  113. <view
  114. class="brand_initail_i"
  115. wx:for="{{brandlist}}"
  116. wx:key="initial"
  117. style="height:{{initialheight}}px;"
  118. bindtap="scrollInit"
  119. data-init = "{{item.initial}}"
  120. >
  121. {{item.initial}}
  122. </view>
  123. </view>
  124. <view
  125. class="models_c"
  126. style="{{showmodel?'left:0rpx;':''}}"
  127. scroll-y=true
  128. >
  129. <view
  130. style="height:{{headerheight}}rpx;"
  131. ></view>
  132. <view
  133. class="brandw_title"
  134. style="height:{{headerheight}}rpx;"
  135. >
  136. <!-- <image
  137. class="brandw_back"
  138. src="../../img/back.png"
  139. bindtap="modelBack"
  140. /> -->
  141. <view
  142. class="brandw_back"
  143. bindtap="modelBack">
  144. <image
  145. src="../../img/back.png"/>
  146. </view>
  147. <view class="brandw_title_w">车型</view>
  148. </view>
  149. <page-scroll
  150. styleSheet="height:{{contentheight}}px;"
  151. scroll-y=true
  152. style="height: {{contentheight}}px;"
  153. >
  154. <view wx:if="{{modellist.length>0}}" class="brandw_list">
  155. <block wx:for="{{modellist}}" wx:key="car_model_id">
  156. <view
  157. class="brandw_bitem"
  158. bindtap="selectModel"
  159. data-model="{{item}}"
  160. >
  161. <view
  162. class="brandw_bimg"
  163. style="background-image:url({{serieslist.belong.img}})"
  164. />
  165. <view class="brandw_bname">{{item.car_model_name}}</view>
  166. </view>
  167. </block>
  168. </view>
  169. <view wx:else class="no_model">
  170. 暂无车型信息
  171. </view>
  172. </page-scroll>
  173. </view>