litian
2024-03-05 a81a1a31ce7ee003e0006168e4d4e57da97c2bb6
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
<view class="cart-bar__placeholder" wx:if="{{fixed}}" />
<view class="cart-bar {{fixed ? 'cart-bar--fixed' : ''}} flex flex-v-center" style="bottom: {{fixed ? 'calc(' + bottomHeight + 'rpx + env(safe-area-inset-bottom))' : ''}};">
    <t-icon
     size="40rpx"
     color="{{isAllSelected ? '#FA4126' : '#BBBBBB'}}"
     name="{{isAllSelected ? 'check-circle-filled' : 'circle'}}"
     class="cart-bar__check"
     catchtap="handleSelectAll"
    />
    <text>全选</text>
    <view class="cart-bar__total flex1">
        <view>
            <text class="cart-bar__total--bold text-padding-right">总计</text>
            <price
             price="{{totalAmount || '0'}}"
             fill="{{false}}"
             decimalSmaller
             class="cart-bar__total--bold cart-bar__total--price"
            />
            <text class="cart-bar__total--normal">(不含运费)</text>
        </view>
        <view wx:if="{{totalDiscountAmount}}">
            <text class="cart-bar__total--normal text-padding-right">已优惠</text>
            <price class="cart-bar__total--normal" price="{{totalDiscountAmount || '0'}}" fill="{{false}}" />
        </view>
    </view>
    <view catchtap="handleToSettle" class="{{!isDisabled ? '' : 'disabled-btn'}} account-btn" hover-class="{{!isDisabled ? '' : 'hover-btn'}}">
        去结算({{totalGoodsNum}})
    </view>
</view>