1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <view class="container">
- <view class="brand-info">
- <view class="name">
- <image class="img" src="{{bannerInfo.imgUrl}}" mode="widthFix"></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="/pages/goods/goods?id={{iitem.id}}">
- <image class="img" src="{{iitem.picUrl}}" background-size="cover"></image>
- <!-- <text class="name">{{iitem.name}}</text> -->
- <view style="display: flex;margin-top: 10rpx;height: 71rpx;">
- <!-- <image wx:if="{{iitem.activited}}"
- src="https://7a68-zhaijieshi-3guecm78383ca692-1307626841.tcb.qcloud.la/activity/618.png"
- style="width: 39px;height:16px;margin-right: 2px;" /> -->
- <text class="name">{{iitem.name}}</text>
- </view>
- <view class="price">
- <!-- <view class="retailPrice">¥{{iitem.retailPrice}}</view>
- <view class="memberPrice">¥{{iitem.memberPrice}}</view>
- <view class="member-price-tag">会员价</view> -->
- <view wx:if="{{iitem.activited}}" class="retailPrice">
- <text class="price-unit">¥</text>{{iitem.activityPrice}}</view>
- <view wx:else="" class="retailPrice"><text class="price-unit">¥</text>{{iitem.retailPrice}}</view>
- <view wx:if="{{iitem.activited||iitem.counterPrice!=iitem.retailPrice}}" class="counterPrice">原价¥{{iitem.counterPrice}}</view>
- </view>
- <!-- <view class="price"><text>¥{{iitem.retailPrice}}</text>
- <text class="counterPrice sub-color">¥{{iitem.counterPrice}}</text>
- </view> -->
- </navigator>
- </block>
- </view>
- </view>
- </view>
|