brandlist.wxml 3.3 KB

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