|
@@ -11,41 +11,42 @@
|
|
|
is="search"
|
|
|
data="{{topsearchheight:topsearchheight,searchshow:searchshow,searchfocus:searchfocus,windowh:windowh,brandrecommend:brandrecommend,keys:searchdata.keys,keylist:keylist,headerheight:headerheight}}"
|
|
|
/>
|
|
|
+
|
|
|
+<view
|
|
|
+ class="filter_space"
|
|
|
+ ></view>
|
|
|
+<!--筛选模块-->
|
|
|
+<view
|
|
|
+ class="filter_c"
|
|
|
+ style="position: fixed; top:{{headerheight+topsearchheight-1}}rpx;"
|
|
|
+ >
|
|
|
+ <view class="filter_nav">
|
|
|
+ <block wx:for="{{filters}}" wx:key="name">
|
|
|
+ <view
|
|
|
+ class="filter_nav_item {{selectbar==item.name?'filter_nav_item_active':''}}"
|
|
|
+ bindtap="showFilter"
|
|
|
+ data-name="{{item.name}}"
|
|
|
+ >
|
|
|
+ <view class="filter_nav_name">
|
|
|
+ {{item.title}}
|
|
|
+ </view>
|
|
|
+ <image src="../../img/sortby.png" class="filter_nav_switch"/>
|
|
|
+ </view>
|
|
|
+ </block>
|
|
|
+ </view>
|
|
|
+ <!--筛选排序模块-->
|
|
|
+ <include src="./sort.wxml"/>
|
|
|
+
|
|
|
+ <!--筛选价格模块-->
|
|
|
+ <include src="./pricespace.wxml"/>
|
|
|
+</view>
|
|
|
<page-scroll
|
|
|
className="content"
|
|
|
- styleSheet="height:{{windowh-headerheight-topsearchheight}}rpx;"
|
|
|
+ styleSheet="height:{{windowh-headerheight-topsearchheight-88}}rpx;"
|
|
|
scroll-y="{{selectbar==''?'true':'false'}}"
|
|
|
bind:topheight="lockFilter"
|
|
|
bind:scrolltolower="{{hasloadall?'':'loadListMore'}}"
|
|
|
>
|
|
|
- <view
|
|
|
- class="filter_space"
|
|
|
- ></view>
|
|
|
- <!--筛选模块-->
|
|
|
- <view
|
|
|
- class="filter_c"
|
|
|
- style="{{filterlock?'position: absolute; top:0rpx':'position: fixed; top:'+(headerheight+topsearchheight-1)+'rpx;'}}"
|
|
|
- >
|
|
|
- <view class="filter_nav">
|
|
|
- <block wx:for="{{filters}}" wx:key="name">
|
|
|
- <view
|
|
|
- class="filter_nav_item {{selectbar==item.name?'filter_nav_item_active':''}}"
|
|
|
- bindtap="showFilter"
|
|
|
- data-name="{{item.name}}"
|
|
|
- >
|
|
|
- <view class="filter_nav_name">
|
|
|
- {{item.title}}
|
|
|
- </view>
|
|
|
- <image src="../../img/sortby.png" class="filter_nav_switch"/>
|
|
|
- </view>
|
|
|
- </block>
|
|
|
- </view>
|
|
|
- <!--筛选排序模块-->
|
|
|
- <include src="./sort.wxml"/>
|
|
|
-
|
|
|
- <!--筛选价格模块-->
|
|
|
- <include src="./pricespace.wxml"/>
|
|
|
- </view>
|
|
|
<view wx:if="{{!list}}"></view>
|
|
|
<view wx:if="{{list.length>0}}" class="cart_list">
|
|
|
<block wx:for="{{list}}" wx:key="id">
|