
Some checks are pending
Actions / Litemall-all (11) (push) Waiting to run
Actions / Litemall-all (11.0.3) (push) Waiting to run
Actions / Litemall-all (8) (push) Waiting to run
Actions / Litemall-all (8.0.192) (push) Waiting to run
Actions / Litemall-admin (10.x) (push) Waiting to run
Actions / Litemall-admin (12.x) (push) Waiting to run
Actions / Litemall-admin (14.x) (push) Waiting to run
Actions / Litemall-vue (10.x) (push) Waiting to run
Actions / Litemall-vue (12.x) (push) Waiting to run
Actions / Litemall-vue (14.x) (push) Waiting to run
42 lines
1.9 KiB
Plaintext
42 lines
1.9 KiB
Plaintext
<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 {{currentSortType == 'price' ? 'active' : ''}}" bindtap="openSortFilter" id="priceSort">
|
|
<text class="txt">价格</text>
|
|
<van-icon name="arrow-up" wx:if="{{ currentSortType == 'price' && currentSortOrder == 'asc' }}" />
|
|
<van-icon name="arrow-down" wx:elif="{{ currentSortType == 'price' && currentSortOrder == 'desc'}}" />
|
|
</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">
|
|
<view class="b">
|
|
<block wx:for="{{goodsList}}" wx:for-index="iindex" wx:for-item="iitem" wx:key="id">
|
|
<navigator class="item {{iindex % 2 == 0 ? 'item-b' : '' }}" url="../goods/goods?id={{iitem.id}}">
|
|
<image class="img" src="{{iitem.picUrl}}" background-size="cover"></image>
|
|
<text class="name">{{iitem.name}}</text>
|
|
<text class="price">¥{{iitem.retailPrice}}</text>
|
|
</navigator>
|
|
</block>
|
|
</view>
|
|
</view>
|
|
</view> |