brandlist.wxml 4.3 KB

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