cart-bar.wxml 1.2 KB

12345678910111213141516171819
  1. <view class="cart-bar__placeholder" wx:if="{{fixed}}" />
  2. <view class="cart-bar {{fixed ? 'cart-bar--fixed' : ''}} flex flex-v-center" style="bottom: {{fixed ? 'calc(' + bottomHeight + 'rpx + env(safe-area-inset-bottom))' : ''}};">
  3. <t-icon size="40rpx" color="{{isAllSelected ? 'rgba(0, 0, 0, 0.8)' : '#BBBBBB'}}" name="{{isAllSelected ? 'check-circle-filled' : 'circle'}}" class="cart-bar__check" catchtap="handleSelectAll" />
  4. <text>全选</text>
  5. <view class="cart-bar__total flex1">
  6. <view>
  7. <text class="cart-bar__total--bold text-padding-right">总计</text>
  8. <n-price price="{{totalAmount || '0'}}" fill="{{false}}" decimalSmaller class="cart-bar__total--bold cart-bar__total--price" />
  9. <text class="cart-bar__total--normal">(不含运费)</text>
  10. </view>
  11. <view wx:if="{{totalDiscountAmount}}">
  12. <text class="cart-bar__total--normal text-padding-right">已优惠</text>
  13. <n-price class="cart-bar__total--normal" price="{{totalDiscountAmount || '0'}}" fill="{{false}}" />
  14. </view>
  15. </view>
  16. <view catchtap="handleToSettle" class="{{!isDisabled ? '' : 'disabled-btn'}} account-btn" hover-class="{{!isDisabled ? '' : 'hover-btn'}}">
  17. 去结算({{totalGoodsNum}})
  18. </view>
  19. </view>