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.

186 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 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">${{ TotalPrice }}&nbsp;{{ CurrencyID }}</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. // ViewDetails: {
  105. // type: Array,
  106. // },
  107. TotalPrice: {
  108. type: String,
  109. },
  110. CurrencyID: {
  111. type: String,
  112. }
  113. },
  114. };
  115. </script>
  116. <style lang="scss" scoped>
  117. .close {
  118. position: absolute;
  119. right: 25px;
  120. top: 25px;
  121. background-image: url("~/assets/svg/close.svg");
  122. background-position: center;
  123. background-repeat: no-repeat;
  124. background-size: cover;
  125. width: 14px;
  126. height: 14px;
  127. @media (min-width: 1366px) {
  128. position: relative;
  129. right: initial;
  130. top: initial;
  131. }
  132. }
  133. :deep() {
  134. .v--modal {
  135. background-color: #f8f8f8 !important;
  136. text-align: left;
  137. border-radius: 16px;
  138. box-shadow: 0 20px 60px -2px rgb(27 33 58 / 40%);
  139. padding: 20px;
  140. max-width: max-content;
  141. top: 0 !important;
  142. left: 0 !important;
  143. right: 0 !important;
  144. margin: 0 auto;
  145. height: auto !important;
  146. vertical-align: middle;
  147. }
  148. .v--modal-overlay {
  149. position: fixed;
  150. box-sizing: border-box;
  151. left: 0;
  152. top: 0;
  153. width: max-content;
  154. height: auto;
  155. background: rgba(0, 0, 0, 0.2);
  156. z-index: 999;
  157. opacity: 1;
  158. }
  159. .v--modal-top-right {
  160. display: block;
  161. position: fixed;
  162. right: 0;
  163. top: 0;
  164. }
  165. .v--modal-background-click {
  166. display: flex;
  167. justify-content: center;
  168. align-items: center;
  169. }
  170. .v--modal-box {
  171. margin-left: 60px;
  172. margin-right: 60px;
  173. @media (min-width: 768px) {
  174. margin-left: 67px;
  175. margin-right: 67px;
  176. }
  177. }
  178. }
  179. </style>