brandlist.wxml 4.1 KB

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