|
|
<view class="product-list-filter">
|
|
|
<ul class="filter-items" bindtap="sortChange">
|
|
|
<li class="item {{curSortType == 'def' ? 'active' : ''}}" data-sort="def">默认</li>
|
|
|
<li class="item {{curSortType == 'def' ? 'active' : ''}} default" data-sort="def">
|
|
|
默认
|
|
|
<image class="item-icon" wx:if="{{curSortType == 'def'}}"
|
|
|
src="../../static/icons/triangle_active@2x.png"></image>
|
|
|
<image class="item-icon" wx:if="{{curSortType != 'def'}}"
|
|
|
src="../../static/icons/triangle_normal@2x.png"></image>
|
|
|
</li>
|
|
|
<li class="item {{curSortType == 'time' ? 'active' : ''}}" data-sort="time">新品</li>
|
|
|
<li class="item {{curSortType == 'popular' ? 'active' : ''}}" data-sort="popular">人气</li>
|
|
|
<li class="item {{curSortType == 'price' ? 'active' : ''}}" data-sort="price">价格</li>
|
|
|
<li class="item {{curGender ? 'active' : ''}}" catchtap="subFilterGenderTap">{{subFilterText}}</li>
|
|
|
<li class="item {{curSortType == 'price' ? 'active' : ''}}" data-sort="price">
|
|
|
价格
|
|
|
<image class="item-icon" wx:if="{{curSortField != 's_p_asc' && curSortField != 's_p_desc'}}"
|
|
|
src="../../static/icons/db_arrow_normal@2x.png"></image>
|
|
|
<image class="item-icon" wx:if="{{curSortField == 's_p_desc'}}"
|
|
|
src="../../static/icons/db_down_active@2x.png"></image>
|
|
|
<image class="item-icon" wx:if="{{curSortField == 's_p_asc'}}"
|
|
|
src="../../static/icons/db_up_active@2x.png"></image>
|
|
|
</li>
|
|
|
<li class="item {{curGender ? 'active' : ''}}" catchtap="subFilterGenderTap">
|
|
|
{{subFilterText}}
|
|
|
<image class="item-icon" wx:if="{{curGender == ''}}"
|
|
|
src="../../static/icons/sg_down_normal@2x.png"></image>
|
|
|
<image class="item-icon" wx:if="{{curGender != ''}}"
|
|
|
src="../../static/icons/sg_down_active@2x.png"></image>
|
|
|
</li>
|
|
|
</ul>
|
|
|
<view wx:if="{{showSubGender}}" class="sub-gender" bindtap="selectGenderTap">
|
|
|
<view class="gender-item {{curGender == '1,3' ? 'active' : ''}}" data-gender="1,3">男生/BOYS</view>
|
...
|
...
|
|