category.wxml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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}}"
  5. data-index="{{index}}" bindtap="switchCate">
  6. <view class="name">{{item.name}}</view>
  7. </view>
  8. </scroll-view>
  9. </view>
  10. <scroll-view scroll-y="true" scroll-top="{{scrollTop}}" style="height:{{scrollHeight}};">
  11. <view class="cate-item">
  12. <!-- <view class="h">
  13. <text class="name">{{currentCategory.name}}</text>
  14. <text class="desc">{{currentCategory.desc}}</text>
  15. </view> -->
  16. <!-- <view class="h">
  17. <text class="name">{{navList[navIndex].name}}</text>
  18. <text class="desc">{{navList[navIndex].desc}}</text>
  19. </view> -->
  20. <view class="b">
  21. <navigator class="item {{(iindex + 1) % 2 == 0 ? 'item-b' : ''}}" url="/pages/goods/goods?id={{iitem.id}}"
  22. wx:for="{{goodsList}}" wx:key="id" wx:for-item="iitem" wx:for-index="iindex">
  23. <image class="img" src="{{iitem.picUrl}}" background-size="cover"></image>
  24. <!-- <text wx:if="{{iitem.type=='2'}}">起</text> -->
  25. <view style="display: flex;margin-top: 10rpx;height: 71rpx;">
  26. <!-- <image wx:if="{{iitem.activited}}"
  27. src="https://7a68-zhaijieshi-3guecm78383ca692-1307626841.tcb.qcloud.la/activity/618.png"
  28. style="width: 39px;height:16px;margin-right: 2px;" /> -->
  29. <text class="name">{{iitem.name}}</text>
  30. </view>
  31. <view class="price">
  32. <view wx:if="{{iitem.activited}}" class="retailPrice">
  33. <text class="price-unit">¥</text>{{iitem.activityPrice}}</view>
  34. <view wx:else="" class="retailPrice"><text class="price-unit">¥</text>{{iitem.retailPrice}}</view>
  35. <view wx:if="{{iitem.activited||iitem.counterPrice!=iitem.retailPrice}}" class="counterPrice">原价¥{{iitem.counterPrice}}</view>
  36. <!-- <view class="member-price-tag">会员价</view> -->
  37. </view>
  38. <!-- <text class="brand">{{iitem.brand.name}}</text> -->
  39. </navigator>
  40. </view>
  41. </view>
  42. </scroll-view>
  43. </view>