index.wxml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <view class="flex soldout flex-center wr-sold-out" wx:if="{{soldout || !isStock}}">
  2. {{soldout ? '商品已下架' : '商品已售馨'}}
  3. </view>
  4. <view class="footer-cont flex flex-between wr-class">
  5. <view class="flex flex-between bottom-operate-left" wx:if="{{jumpArray.length > 0}}">
  6. <view
  7. wx:for="{{jumpArray}}"
  8. wx:key="index"
  9. class="icon-warp operate-wrap"
  10. bindtap="toNav"
  11. data-ele="foot_navigation"
  12. data-index="{{index}}"
  13. data-url="{{item.url}}"
  14. >
  15. <view>
  16. <text wx:if="{{shopCartNum > 0 && item.showCartNum}}" class="tag-cart-num">
  17. {{shopCartNum > 99 ? '99+' : shopCartNum}}
  18. </text>
  19. <t-icon prefix="wr" name="{{item.iconName}}" size="40rpx" />
  20. <view class="operate-text">{{item.title}}</view>
  21. </view>
  22. </view>
  23. </view>
  24. <block wx:if="{{buttonType === 1}}">
  25. <view class="flex buy-buttons">
  26. <view class="bar-separately {{soldout || !isStock ? 'bar-addCart-disabled' : ''}}" bindtap="toAddCart">
  27. 加入购物车
  28. </view>
  29. <view class="bar-buy {{soldout || !isStock ? 'bar-buyNow-disabled' : ''}}" bindtap="toBuyNow">
  30. 立即购买
  31. </view>
  32. </view>
  33. </block>
  34. <block wx:if="{{isSlotButton}}">
  35. <slot name="buyButton" />
  36. </block>
  37. </view>