buy.wxml 2.6 KB

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