buy.wxml 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <!--pages/buy/buy.wxml-->
  2. <import src="../../module/header.wxml"/>
  3. <import src="../../module/footer.wxml"/>
  4. <import src="../../module/caritem/caritem.wxml"/>
  5. <import src="../../module/search/search.wxml"/>
  6. <template
  7. is="header"
  8. data="{{title:'我要买车',headerheight:headerheight}}"
  9. />
  10. <template
  11. is="search"
  12. data="{{topsearchheight:topsearchheight,searchshow:searchshow,searchfocus:searchfocus,windowh:windowh,brandrecommend:brandrecommend,keys:searchdata.keys,keylist:keylist,headerheight:headerheight}}"
  13. />
  14. <view
  15. class="filter_space"
  16. ></view>
  17. <!--筛选模块-->
  18. <view
  19. class="filter_c"
  20. style="position: fixed; top:{{headerheight+topsearchheight-1}}rpx;"
  21. >
  22. <view class="filter_nav">
  23. <block wx:for="{{filters}}" wx:key="name">
  24. <view
  25. class="filter_nav_item {{selectbar==item.name?'filter_nav_item_active':''}}"
  26. bindtap="showFilter"
  27. data-name="{{item.name}}"
  28. >
  29. <view class="filter_nav_name">
  30. {{item.title}}
  31. </view>
  32. <image src="../../img/sortby.png" class="filter_nav_switch"/>
  33. <view class="filters_nav_line"></view>
  34. </view>
  35. </block>
  36. </view>
  37. <!--筛选排序模块-->
  38. <include src="./sort.wxml"/>
  39. <!--筛选价格模块-->
  40. <include src="./pricespace.wxml"/>
  41. </view>
  42. <page-scroll
  43. className="content"
  44. bgcolor="#F9F9F9"
  45. styleSheet="height:{{windowh-headerheight-topsearchheight-88}}rpx;"
  46. scroll-y="{{selectbar==''?'true':'false'}}"
  47. bind:topheight="lockFilter"
  48. bind:scrolltolower="{{hasloadall?'':'loadListMore'}}"
  49. >
  50. <view wx:if="{{!list}}"></view>
  51. <view wx:if="{{list.length>0}}" class="cart_list">
  52. <block wx:for="{{list}}" wx:key="id">
  53. <template is="caritem" data="{{car:item}}"/>
  54. </block>
  55. </view>
  56. <view wx:else class="you_may_like">
  57. <view class="nocar_w">没有相关结果,可以试试其他条件</view>
  58. <view
  59. bindtap="checkAll"
  60. class="nocar_back">查看所有好车</view>
  61. <view class="recommend">
  62. <view class="recommend_t">
  63. <image class="recommend_img" src="../../img/youmaylike.png"/>
  64. </view>
  65. </view>
  66. <view class="like_cart_c">
  67. <block wx:for="{{like}}" wx:key="id">
  68. <template is="caritem" data="{{car:item}}"/>
  69. </block>
  70. </view>
  71. </view>
  72. <view
  73. class="page_footer_place"
  74. style="height:{{footerheight}}rpx;"
  75. ></view>
  76. </page-scroll>
  77. <template
  78. is="footer"
  79. data="{{local:1,footerheight:footerheight}}"
  80. />
  81. <!--筛选品牌模块-->
  82. <brandlist
  83. brandrecommend = "{{brandrecommend}}"
  84. show="{{selectbar=='brand'?true:false}}"
  85. bind:close="closeBrandList"
  86. bind:select="selectSeries"
  87. />
  88. <!-- <include src="./brandlist.wxml"/> -->
  89. <!-- 更多筛选条件 -->
  90. <include src="./more.wxml"/>