newGoods.wxml 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. <view class="container">
  2. <view class="brand-info">
  3. <view class="name">
  4. <image class="img" src="{{bannerInfo.imgUrl}}" background-size="cover"></image>
  5. <view class="info-box">
  6. <view class="info">
  7. <text class="txt">{{bannerInfo.name}}</text>
  8. <text class="line"></text>
  9. </view>
  10. </view>
  11. </view>
  12. </view>
  13. <view class="sort">
  14. <view class="sort-box">
  15. <view class="item {{currentSortType == 'default' ? 'active' : ''}}" bindtap="openSortFilter" id="defaultSort">
  16. <text class="txt">综合</text>
  17. </view>
  18. <view class="item by-price {{currentSortType == 'price' ? 'active' : ''}} {{currentSortOrder == 'asc' ? 'asc' : 'desc'}}" bindtap="openSortFilter" id="priceSort">
  19. <text class="txt">价格</text>
  20. </view>
  21. <view class="item {{currentSortType == 'category' ? 'active' : ''}}" bindtap="openSortFilter" id="categoryFilter">
  22. <text class="txt">分类</text>
  23. </view>
  24. </view>
  25. <view class="sort-box-category" wx-if="{{categoryFilter}}">
  26. <view class="item {{item.checked ? 'active' : ''}}" wx:for="{{filterCategory}}" wx:key="id" data-category-index="{{index}}" bindtap="selectCategory">{{item.name}}</view>
  27. </view>
  28. </view>
  29. <view class="cate-item" hidden='{{categoryFilter}}'>
  30. <goodList calss="goodList" goods="{{goodsList}}"></goodList>
  31. </view>
  32. </view>