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