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.

50 lines
1.4 KiB

2 years ago
2 years ago
2 years ago
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-white 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. total: {
  32. type: Number,
  33. },
  34. orderStatus: {
  35. type: Object
  36. }
  37. },
  38. data() {
  39. return {};
  40. },
  41. computed: {
  42. // total() {
  43. // return parseFloat(this.total).toLocaleString();
  44. // },
  45. },
  46. };
  47. </script>
  48. <style lang="scss" scoped>
  49. </style>