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.

143 lines
3.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="OtherDetails" :clickToClose="false">
  3. <div class="tw-text-base-primary xl:tw-p-[5px]">
  4. <div class="modal-header tw-flex tw-w-full tw-justify-center tw-mb-[32px] md:tw-mb-[21px] xl:tw-justify-between">
  5. <div class="t18 xl:tw-text-[20px]">{{ $t('Other Details') }}</div>
  6. <button class="close tw-transition tw-btn-md" @click="$modal.hide('OtherDetails')"></button>
  7. </div>
  8. <div class="modal-content tw-head-body tw-grid tw-gap-[10px] tw-grid-cols-1 md:tw-text-[12px]">
  9. <div v-for="(item,key) in BookingOrder.OtherDetail" :key="key">
  10. {{ item }}
  11. </div>
  12. <!-- <div v-for="(item,key) in BookingOrder.OtherDetail" :key="key">
  13. <div class="tw-text-neutrals-600 tw-mb-[20px]">
  14. {{item.question}}<span class="tw-text-[#EF5A5A]">*</span>
  15. </div>
  16. <div class="tw-text-neutrals-800 tw-mb-[37px]">
  17. {{ item.answer }}
  18. </div>
  19. <div v-if=" key < BookingOrder.OtherDetail.length - 1 " class="tw-border-solid tw-border-neutrals-200"></div>
  20. </div> -->
  21. <div class="tw-flex tw-justify-end tw-hidden xl:tw-flex">
  22. <button
  23. class="tw-body-2 tw-text-neutrals-0 tw-bg-base-secondary tw-rounded-[16px] tw-px-[24px] tw-py-[12px] tw-mb-[10px]"
  24. @click="$modal.hide('OtherDetails')">
  25. OK
  26. </button>
  27. </div>
  28. </div>
  29. </div>
  30. </modal>
  31. </template>
  32. <script>
  33. export default {
  34. name: "OtherDetails",
  35. data() {
  36. return {};
  37. },
  38. props: {
  39. BookingOrder: {
  40. type: Object,
  41. }
  42. },
  43. };
  44. </script>
  45. <style lang="scss" scoped>
  46. .close {
  47. position: absolute;
  48. right: 25px;
  49. top: 25px;
  50. background-image: url("~/assets/svg/close.svg");
  51. background-position: center;
  52. background-repeat: no-repeat;
  53. background-size: cover;
  54. width: 14px;
  55. height: 14px;
  56. @media screen and (min-width: 1366px) {
  57. position: relative;
  58. right: initial;
  59. top: initial;
  60. }
  61. }
  62. :deep() {
  63. .v--modal {
  64. background-color: #f8f8f8 !important;
  65. text-align: left;
  66. border-top-left-radius: 16px;
  67. border-top-right-radius: 16px;
  68. box-shadow: 0 20px 60px -2px rgb(27 33 58 / 40%);
  69. padding: 20px;
  70. min-width: 100% !important;
  71. top: 0 !important;
  72. left: 0 !important;
  73. right: 0 !important;
  74. margin: 0;
  75. height: auto !important;
  76. vertical-align: bottom;
  77. @media screen and (min-width: 1366px) {
  78. border-radius: 16px;
  79. width: max-content;
  80. vertical-align: middle;
  81. }
  82. }
  83. .v--modal-overlay {
  84. position: fixed;
  85. box-sizing: border-box;
  86. left: 0;
  87. top: 0;
  88. align-items: flex-end;
  89. width: 100%;
  90. height: auto;
  91. background: rgba(0, 0, 0, 0.2);
  92. z-index: 999;
  93. opacity: 1;
  94. @media screen and (min-width: 1366px) {
  95. width: max-content !important;
  96. display: flex;
  97. justify-content: center;
  98. }
  99. }
  100. .v--modal-overlay {
  101. width: max-content !important;
  102. display: flex;
  103. justify-content: center;
  104. }
  105. .v--modal-box {
  106. top: 0;
  107. left: 0;
  108. width: 100%;
  109. height: 0;
  110. @media screen and (min-width: 1366px) {
  111. width: max-content;
  112. }
  113. }
  114. .v--modal-top-right {
  115. display: block;
  116. position: fixed;
  117. right: 0;
  118. top: 0;
  119. }
  120. .v--modal-background-click {
  121. display: flex;
  122. align-items: flex-end;
  123. margin: 0 auto;
  124. @media screen and (min-width: 1366px) {
  125. width: 600px !important;
  126. display: flex;
  127. align-items: center;
  128. justify-content: center;
  129. }
  130. }
  131. }
  132. </style>