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.

180 lines
6.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. <modal v-if="BookingOrder.Currency" name="ViewDetails" :clickToClose="false">
  3. <div class="tw-text-base-primary">
  4. <div class="modal-header tw-flex tw-w-full tw-justify-between tw-mb-[15px]">
  5. <div class="t18 tw-mr-[120px]">{{ $t('View Details') }}</div>
  6. <button class="close tw-transition tw-btn-md" @click="$modal.hide('ViewDetails')"></button>
  7. </div>
  8. <div
  9. class="modal-content tw-bg-[#FFFFFF] tw-flex tw-flex-col tw-body-4 tw-p-[15px] tw-rounded-[10px] md:tw-items-center md:tw-flex-row md:tw-justify-between">
  10. <div class="tw-mb-[10px] tw-font-bold md:tw-mb-[0px] md:tw-mr-[105px] tw-justify-items-start">
  11. {{ $t('Total Amount')}}
  12. </div>
  13. <div class="tw-font-bold">${{ BookingOrder.TotalPrice }}&nbsp;{{ BookingOrder.Currency.CurrencyName }}</div>
  14. </div>
  15. <!--div class="modal-content tw-body-4 tw-text-[#7c7c7c] tw-bg-[#FFFFFF] tw-p-[15px] tw-rounded-[10px] md:tw-body-3">
  16. <div class="tw-flex md:tw-mb-[12px]">
  17. <img src="~/assets/svg/u_check-circle.svg" class="tw-h-[20px] tw-w-[20px] tw-mr-[10px]" />
  18. <div class="tw-flex tw-flex-col tw-text-[#7c7c7c] tw-w-full md:tw-flex-row md:tw-justify-between">
  19. <div class="tw-mb-[6px] tw-font-bold">Deposit (15%)</div>
  20. <div class="tw-body-5 md:tw-body-3">
  21. ${{ ViewDetails.Deposit }}{{ Currency }}
  22. </div>
  23. </div>
  24. </div>
  25. <div class="tw-border-solid tw-border-neutrals-200 tw-border-[1px] tw-mt-[14px] tw-mb-[10px] md:tw-hidden">
  26. </div>
  27. <div class="tw-flex md:tw-mb-[12px]">
  28. <img src="~/assets/svg/u_check-circle.svg" class="tw-h-[20px] tw-w-[20px] tw-mr-[10px]" />
  29. <div class="tw-flex tw-flex-col tw-text-[#7c7c7c] tw-w-full md:tw-flex-row md:tw-justify-between">
  30. <div class="tw-mb-[6px] tw-font-bold">First Payment (10%)</div>
  31. <div class="tw-body-5 md:tw-body-3">
  32. ${{ ViewDetails.FirstPayment }}NTD
  33. </div>
  34. </div>
  35. </div>
  36. <div class="tw-border-solid tw-border-neutrals-200 tw-border-[1px] tw-mt-[14px] tw-mb-[10px] md:tw-hidden">
  37. </div>
  38. <div class="tw-flex md:tw-justify-items-center md:tw-mb-[12px]">
  39. <img src="~/assets/svg/u_check-circle.svg" class="tw-h-[20px] tw-w-[20px] tw-mr-[10px]" />
  40. <div class="tw-flex tw-flex-col tw-text-[#7c7c7c] md:tw-flex-row md:tw-justify-between">
  41. <div class="tw-mb-[12px] tw-font-bold">Second Payment (25%)</div>
  42. <div class="tw-grid tw-grid-cols-[20px_auto] tw-gap-[4px] tw-items-center tw-mb-[12px] md:tw-mx-[30px]">
  43. <img src="~/assets/svg/Alert.svg" />
  44. <div class="tw-body-5 tw-text-worning md:tw-body-4">
  45. Remittance only
  46. </div>
  47. </div>
  48. <div class="tw-body-5 md:tw-body-3">
  49. ${{ ViewDetails.SecondPayment }}NTD
  50. </div>
  51. </div>
  52. </div>
  53. <div class="tw-border-solid tw-border-neutrals-200 tw-border-[1px] tw-mt-[14px] tw-mb-[10px] md:tw-hidden">
  54. </div>
  55. <div class="tw-flex md:tw-mb-[12px]">
  56. <img src="~/assets/svg/u_check-circle_disable.svg" class="tw-h-[20px] tw-w-[20px] tw-mr-[10px]" />
  57. <div class="tw-flex tw-flex-col te-text-[#7c7c7c] tw-w-full md:tw-flex-row md:tw-justify-between">
  58. <div class="tw-mb-[12px] tw-font-bold tw-text-neutrals-800">
  59. Third Payment (30%)
  60. </div>
  61. <div class="tw-grid tw-grid-cols-[20px_auto] tw-gap-[4px] tw-items-center tw-mb-[12px] md:tw-ml-[17px]">
  62. <img src="~/assets/svg/Alert.svg" />
  63. <div class="tw-body-5 tw-text-worning md:tw-body-4">
  64. Remittance only
  65. </div>
  66. </div>
  67. <div class="tw-body-5 tw-text-primary-1 tw-font-bold md:tw-body-3">
  68. ${{ ViewDetails.ThirdPayment }}NTD
  69. </div>
  70. </div>
  71. </div>
  72. <div class="tw-border-solid tw-border-neutrals-200 tw-border-[1px] tw-mt-[14px] tw-mb-[10px] md:tw-hidden">
  73. </div>
  74. <div class="tw-flex md:tw-mb-[12px]">
  75. <img src="~/assets/svg/u_check-circle_disable.svg" class="tw-h-[20px] tw-w-[20px] tw-mr-[10px]" />
  76. <div class="tw-flex tw-flex-col tw-text-[#7c7c7c] tw-w-full md:tw-flex-row md:tw-justify-between">
  77. <div class="tw-mb-[6px] tw-font-bold">Final Payment (20%)</div>
  78. <div class="tw-body-5 md:tw-body-3">
  79. ${{ ViewDetails.FinalPayment }}NTD
  80. </div>
  81. </div>
  82. </div>
  83. <div class="tw-border-solid tw-border-neutrals-200 tw-border-[1px] tw-mt-[14px] tw-mb-[10px] md:tw-my-[12px]" >
  84. </div>
  85. <div class="tw-flex tw-ml-[30px]">
  86. <div class="tw-flex tw-flex-col tw-text-neutrals-600 tw-w-full md:tw-flex-row md:tw-justify-between">
  87. <div class="tw-mb-[6px] tw-font-bold">{{ $t('Total Amount')}}</div>
  88. <div class="tw-body-5 md:tw-body-3">
  89. ${{ TotalAmount }}NTD
  90. </div>
  91. </div>
  92. </div>
  93. </div-->
  94. </div>
  95. </modal>
  96. </template>
  97. <script>
  98. export default {
  99. name: "ViewDetails",
  100. data() {
  101. return {};
  102. },
  103. props: {
  104. BookingOrder:{
  105. type: Object,
  106. }
  107. },
  108. };
  109. </script>
  110. <style lang="scss" scoped>
  111. .close {
  112. position: absolute;
  113. right: 25px;
  114. top: 25px;
  115. background-image: url("~/assets/svg/close.svg");
  116. background-position: center;
  117. background-repeat: no-repeat;
  118. background-size: cover;
  119. width: 14px;
  120. height: 14px;
  121. @media (min-width: 1366px) {
  122. position: relative;
  123. right: initial;
  124. top: initial;
  125. }
  126. }
  127. :deep() {
  128. .v--modal {
  129. background-color: #f8f8f8 !important;
  130. text-align: left;
  131. border-radius: 16px;
  132. box-shadow: 0 20px 60px -2px rgb(27 33 58 / 40%);
  133. padding: 20px;
  134. max-width: max-content;
  135. top: 0 !important;
  136. left: 0 !important;
  137. right: 0 !important;
  138. margin: 0 auto;
  139. height: auto !important;
  140. vertical-align: middle;
  141. }
  142. .v--modal-overlay {
  143. position: fixed;
  144. box-sizing: border-box;
  145. left: 0;
  146. top: 0;
  147. width: max-content;
  148. height: auto;
  149. background: rgba(0, 0, 0, 0.2);
  150. z-index: 999;
  151. opacity: 1;
  152. }
  153. .v--modal-top-right {
  154. display: block;
  155. position: fixed;
  156. right: 0;
  157. top: 0;
  158. }
  159. .v--modal-background-click {
  160. display: flex;
  161. justify-content: center;
  162. align-items: center;
  163. }
  164. .v--modal-box {
  165. margin-left: 60px;
  166. margin-right: 60px;
  167. @media (min-width: 768px) {
  168. margin-left: 67px;
  169. margin-right: 67px;
  170. }
  171. }
  172. }
  173. </style>