brandlist.wxml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <!--筛选品牌模块-->
  2. <scroll-view
  3. class="brandw_c"
  4. style="{{selectbar=='brand'?'left:0rpx;':''}}"
  5. scroll-into-view ="{{scrolltoinit}}"
  6. bindscroll="brandScroll"
  7. scroll-y=true
  8. >
  9. <view
  10. style="height:{{headerheight}}rpx;"
  11. ></view>
  12. <view
  13. class="brandw_title"
  14. style="height:{{headerheight}}rpx;"
  15. >
  16. <view
  17. style="background-image: url(../../img/back.png); "
  18. class="brandw_back"
  19. bindtap="filterBack"></view>
  20. <view class="brandw_title_w">品牌</view>
  21. </view>
  22. <view class="brandw_list">
  23. <view class="brandw_t_line">热门品牌</view>
  24. <view class="brandw_hotlist">
  25. <block wx:for="{{brandrecommend}}" wx:key="brand_id">
  26. <view
  27. class="brandw_hotlist_item"
  28. bindtap="getBrandDetail"
  29. data-id="{{item.brand_id}}"
  30. data-img="{{item.brand_img}}"
  31. data-name="{{item.brand_name}}"
  32. >
  33. <view class="brandw_hotitem_img" style="background-image:url({{item.brand_img}})"></view>
  34. <view class="brandw_hotitem_name">{{item.brand_name}}</view>
  35. </view>
  36. </block>
  37. </view>
  38. <view class="brandw_t_line">不限品牌</view>
  39. <block wx:for="{{wheres.brandlist}}" wx:key="initial">
  40. <view class="brandw_binitial" id="{{item.initial}}">
  41. {{item.initial}}
  42. </view>
  43. <block wx:for="{{item.list}}" wx:for-item="branditem" wx:key="brand_id">
  44. <view
  45. class="brandw_bitem"
  46. bindtap="getBrandDetail"
  47. data-id="{{branditem.brand_id}}"
  48. data-img="{{branditem.img}}"
  49. data-name="{{branditem.brand_name}}"
  50. >
  51. <view
  52. class="brandw_bimg"
  53. style="background-image:url({{branditem.img}})"
  54. />
  55. <view class="brandw_bname">{{branditem.brand_name}}</view>
  56. </view>
  57. </block>
  58. </block>
  59. <scroll-view
  60. class="brand_serieslist"
  61. scroll-y=true
  62. style="height: {{windowh-headerheight}}rpx; {{serieslist?'right:0rpx;':''}}"
  63. >
  64. <view class="series_lelong">
  65. <view
  66. class="series_lelong_bimg"
  67. style="background-image:url({{serieslist.belong.img}})"
  68. />
  69. <!-- serieslist.belong.img -->
  70. <view class="series_lelong_name">{{serieslist.belong.name}}</view>
  71. </view>
  72. <view class="car_series_t">选择车系</view>
  73. <block
  74. wx:for="{{serieslist.list}}"
  75. wx:key="car_series_id"
  76. >
  77. <view
  78. class="brand_series_i"
  79. bindtap="selectSeries"
  80. data-series = "{{item}}"
  81. >
  82. <view
  83. class="brand_series_bimg"
  84. style="background-image:url({{serieslist.belong.img}})"
  85. />
  86. <view class="brand_series_name">{{item.car_series_name}}</view>
  87. </view>
  88. </block>
  89. </scroll-view>
  90. <view
  91. class="brand_initail_c"
  92. style="display: {{selectbar=='brand'?'block':'none'}}"
  93. >
  94. <!-- {{scrollinit==item.initial?'brand_initail_active':''}} -->
  95. <image
  96. class="brand_selectbg"
  97. style="top:{{scrollinit*initialheight}}px "
  98. src="../../img/selectbrand.png"/>
  99. <view
  100. class="brand_initail_i"
  101. wx:for="{{wheres.brandlist}}"
  102. wx:key="initial"
  103. style="height:{{initialheight}}px;"
  104. bindtap="scrollInit"
  105. data-init = "{{item.initial}}"
  106. >
  107. {{item.initial}}
  108. </view>
  109. </view>
  110. </view>
  111. </scroll-view>