buy-bar.wxml 1.3 KB

1234567891011121314151617181920212223242526272829
  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 wx:for="{{jumpArray}}" wx:key="index" class="icon-warp operate-wrap" bindtap="toNav" data-ele="foot_navigation" data-index="{{index}}" data-url="{{item.url}}">
  7. <view>
  8. <text wx:if="{{shopCartNum > 0 && item.showCartNum}}" class="tag-cart-num">
  9. {{shopCartNum > 99 ? '99+' : shopCartNum}}
  10. </text>
  11. <t-icon prefix="{{item.prefix}}" name="{{ item.selected ? item.selectedIconName : item.iconName}}" size="46rpx" t-class="{{item.fav ? ' red': '' }}" />
  12. <view class="operate-text">{{item.title}}</view>
  13. </view>
  14. </view>
  15. </view>
  16. <block wx:if="{{buttonType === 1}}">
  17. <view class="flex buy-buttons">
  18. <view class="bar-separately {{soldout || !isStock ? 'bar-addCart-disabled' : ''}}" bindtap="toAddCart">
  19. {{addingCart ? "正在加入购物车" : "加入购物车"}}
  20. </view>
  21. <view class="bar-buy {{noDraw ? 'bar-buyNow-disabled' : ''}}" bindtap="toJum3D">
  22. 在线展示
  23. </view>
  24. </view>
  25. </block>
  26. <block wx:if="{{isSlotButton}}">
  27. <slot name="buyButton" />
  28. </block>
  29. </view>