index.wxml 1.2 KB

12345678910111213141516171819202122232425262728293031
  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
  4. size="40rpx"
  5. color="{{isAllSelected ? '#FA4126' : '#BBBBBB'}}"
  6. name="{{isAllSelected ? 'check-circle-filled' : 'circle'}}"
  7. class="cart-bar__check"
  8. catchtap="handleSelectAll"
  9. />
  10. <text>全选</text>
  11. <view class="cart-bar__total flex1">
  12. <view>
  13. <text class="cart-bar__total--bold text-padding-right">总计</text>
  14. <price
  15. price="{{totalAmount || '0'}}"
  16. fill="{{false}}"
  17. decimalSmaller
  18. class="cart-bar__total--bold cart-bar__total--price"
  19. />
  20. <text class="cart-bar__total--normal">(不含运费)</text>
  21. </view>
  22. <view wx:if="{{totalDiscountAmount}}">
  23. <text class="cart-bar__total--normal text-padding-right">已优惠</text>
  24. <price class="cart-bar__total--normal" price="{{totalDiscountAmount || '0'}}" fill="{{false}}" />
  25. </view>
  26. </view>
  27. <view catchtap="handleToSettle" class="{{!isDisabled ? '' : 'disabled-btn'}} account-btn" hover-class="{{!isDisabled ? '' : 'hover-btn'}}">
  28. 去结算({{totalGoodsNum}})
  29. </view>
  30. </view>