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.

53 lines
1.5 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
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. <span class="tw-text-neutrals-400 tw-font-medium tw-ml-[4px]">{{
  8. $t("(Tax included)")
  9. }}</span>
  10. </div>
  11. <div class="content tw-body-4 tw-text-black tw-font-bold">
  12. ${{ subTotal.toLocaleString() }} {{ orderStatus.currency }}
  13. </div>
  14. </div>
  15. <div
  16. 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">
  17. <div class="label tw-body-2 tw-text-black tw-font-bold">
  18. {{ $t("Total Amount") }}
  19. </div>
  20. <div class="content tw-body-2 tw-text-primary-1 tw-font-bold">
  21. ${{ total.toLocaleString() }} {{ orderStatus.currency }}
  22. </div>
  23. </div>
  24. </div>
  25. </div>
  26. </template>
  27. <script>
  28. export default {
  29. name: "TotalPrice",
  30. props: {
  31. subTotal: {
  32. type: Number,
  33. },
  34. total: {
  35. type: Number,
  36. },
  37. orderStatus: {
  38. type: Object
  39. }
  40. },
  41. data() {
  42. return {};
  43. },
  44. computed: {
  45. // total() {
  46. // return parseFloat(this.total).toLocaleString();
  47. // },
  48. },
  49. };
  50. </script>
  51. <style lang="scss" scoped>
  52. </style>