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.

69 lines
2.0 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
  1. <template>
  2. <div class="total-info tw-p-5 tw-mb-[20px] tw-bg-white tw-rounded-xl">
  3. <div class="element tw-flex tw-justify-between tw-items-center tw-flex-nowrap tw-mb-[12px]">
  4. <!-- <div class="label tw-body-4 tw-text-black tw-font-bold">
  5. {{ $t("Subtotal") }}
  6. </div> -->
  7. <!-- <div class="content tw-body-4 tw-text-black tw-font-bold">
  8. ${{ subTotal.toLocaleString() + currency }}
  9. </div> -->
  10. <div class="label tw-body-4 tw-text-black tw-font-bold">
  11. {{ $t("Total")}}
  12. <span class="tw-text-neutrals-400 tw-font-medium tw-ml-[4px]">{{
  13. $t("(Tax included)")
  14. }}</span>
  15. </div>
  16. <div class="content tw-body-4 tw-font-bold">
  17. ${{ total.toLocaleString() + currency}}
  18. </div>
  19. </div>
  20. <div
  21. 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">
  22. <div class="label tw-body-2 tw-text-black tw-font-bold">
  23. {{ $t("Total Amount") }}
  24. </div>
  25. <div class="content tw-body-2 tw-text-primary-1 tw-font-bold">
  26. ${{ total.toLocaleString() + currency }}
  27. </div>
  28. </div>
  29. <div class="element tw-flex tw-justify-center tw-items-center tw-mt-[30px] xl:tw-hidden xl:tw-mt-0">
  30. <button
  31. class="btnPay tw-transition tw-btn-md tw-bg-primary-1 tw-px-[30px] tw-py-[9.5px] tw-rounded-2xl hover:tw-bg-primary-2"
  32. @click="payNow">
  33. {{ $t("Pay now") }}
  34. </button>
  35. </div>
  36. </div>
  37. </template>
  38. <script>
  39. export default {
  40. name: "TotalPrice",
  41. props: {
  42. subTotal: {
  43. type: Number,
  44. },
  45. total:{
  46. type: Number,
  47. },
  48. currency: {
  49. type: String,
  50. }
  51. },
  52. data() {
  53. return {};
  54. },
  55. computed: {
  56. // total() {
  57. // return (parseInt(this.subTotal)).toLocaleString();
  58. // },
  59. },
  60. methods: {
  61. payNow() {
  62. this.$emit('payNowClick');
  63. },
  64. },
  65. };
  66. </script>
  67. <style lang="scss" scoped>
  68. </style>