You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.3 KiB

2 years ago
  1. <template>
  2. <div class="done-total-price tw-grid tw-grid-col-1 tw-gap-y-[30px] xl:tw-mt-[60px]">
  3. <div class="tw-p-5 tw-bg-neutrals-0 tw-rounded-xl xl:tw-p-[30px]">
  4. <div class="element tw-flex tw-justify-between tw-items-center tw-flex-nowrap tw-mb-[12px]">
  5. <div class="label tw-body-4 tw-text-black tw-font-bold">
  6. {{ $t("Subtotal") }}
  7. </div>
  8. <div class="content tw-body-4 tw-text-black tw-font-bold">
  9. ${{ subTotal.toLocaleString() }} {{ orderStatus.currency }}
  10. </div>
  11. </div>
  12. <div
  13. class="element total tw-flex tw-justify-between tw-items-center tw-flex-nowrap tw-pt-[12px] tw-border-0 tw-border-t tw-border-solid tw-border-neutrals-200">
  14. <div class="label tw-body-2 tw-text-black tw-font-bold">
  15. {{ $t("Total Amount") }}
  16. </div>
  17. <div class="content tw-body-2 tw-text-primary-1 tw-font-bold">
  18. ${{ total }} {{ orderStatus.currency }}
  19. </div>
  20. </div>
  21. </div>
  22. </div>
  23. </template>
  24. <script>
  25. export default {
  26. name: "TotalPrice",
  27. props: {
  28. subTotal: {
  29. type: Number,
  30. },
  31. orderStatus: {
  32. type: Object
  33. }
  34. },
  35. data() {
  36. return {};
  37. },
  38. computed: {
  39. total() {
  40. return (parseFloat(this.subTotal * 110 / 100)).toLocaleString();
  41. },
  42. },
  43. };
  44. </script>
  45. <style lang="scss" scoped>
  46. </style>