1234567891011121314151617181920212223242526272829303132 |
- <view class="container">
- <view class="brand-info">
- <view class="name">
- <image class="img" src="{{bannerInfo.imgUrl}}" background-size="cover"></image>
- <view class="info-box">
- <view class="info">
- <text class="txt">{{bannerInfo.name}}</text>
- <text class="line"></text>
- </view>
- </view>
- </view>
- </view>
- <view class="sort">
- <view class="sort-box">
- <view class="item {{currentSortType == 'default' ? 'active' : ''}}" bindtap="openSortFilter" id="defaultSort">
- <text class="txt">综合</text>
- </view>
- <view class="item by-price {{currentSortType == 'price' ? 'active' : ''}} {{currentSortOrder == 'asc' ? 'asc' : 'desc'}}" bindtap="openSortFilter" id="priceSort">
- <text class="txt">价格</text>
- </view>
- <view class="item {{currentSortType == 'category' ? 'active' : ''}}" bindtap="openSortFilter" id="categoryFilter">
- <text class="txt">分类</text>
- </view>
- </view>
- <view class="sort-box-category" wx-if="{{categoryFilter}}">
- <view class="item {{item.checked ? 'active' : ''}}" wx:for="{{filterCategory}}" wx:key="id" data-category-index="{{index}}" bindtap="selectCategory">{{item.name}}</view>
- </view>
- </view>
- <view class="cate-item" hidden='{{categoryFilter}}'>
- <goodList calss="goodList" goods="{{goodsList}}"></goodList>
- </view>
- </view>
|