category.wxml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <view class="container">
  2. <view class="cate-nav">
  3. <scroll-view scroll-x="true" class="cate-nav-body" style="width: 750rpx;" scroll-left="{{scrollLeft}}">
  4. <view wx:for="{{navList}}" class="item {{ id == item.id ? 'active' : ''}}" wx:key="id" data-id="{{item.id}}" data-index="{{index}}" bindtap="switchCate">
  5. <view class="name">{{item.name}}</view>
  6. </view>
  7. </scroll-view>
  8. </view>
  9. <scroll-view scroll-y="true" scroll-top="{{scrollTop}}" style="height:{{scrollHeight}};">
  10. <view class="cate-item">
  11. <!-- <view class="h">
  12. <text class="name">{{currentCategory.name}}</text>
  13. <text class="desc">{{currentCategory.desc}}</text>
  14. </view> -->
  15. <view class="h">
  16. <text class="name">{{navList[navIndex].name}}</text>
  17. <text class="desc">{{navList[navIndex].desc}}</text>
  18. </view>
  19. <view class="b">
  20. <navigator class="item {{(iindex + 1) % 2 == 0 ? 'item-b' : ''}}" url="/pages/goods/goods?id={{iitem.id}}" wx:for="{{goodsList}}" wx:key="id" wx:for-item="iitem" wx:for-index="iindex">
  21. <image class="img" src="{{iitem.picUrl}}" background-size="cover"></image>
  22. <!-- <text wx:if="{{iitem.type=='2'}}">起</text> -->
  23. <view class="price">
  24. <view class="retailPrice">¥{{iitem.retailPrice}}</view>
  25. <view class="memberPrice">¥{{iitem.memberPrice}}</view>
  26. <view class="member-price-tag">会员价</view>
  27. </view>
  28. <text class="name">{{iitem.name}}</text>
  29. <text class="brand">{{iitem.brand.name}}</text>
  30. </navigator>
  31. </view>
  32. </view>
  33. </scroll-view>
  34. </view>