brandlist.wxml 4.5 KB

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