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.

235 lines
6.5 KiB

2 years ago
2 years ago
  1. <template>
  2. <v-row class="mb-6" style="position: relative">
  3. <v-col
  4. cols="12"
  5. style="
  6. position: absolute;
  7. border-radius: 15px;
  8. width: 100%;
  9. height: 100%;
  10. background: rgba(248, 248, 248, 0.69);
  11. "
  12. ></v-col>
  13. <v-col cols="12" style="position: absolute; top: 35%; left: 35%">
  14. <img src="~/assets/img/travelPic.png" />
  15. <div>
  16. <h2><b>Coming soon ...</b></h2>
  17. </div>
  18. </v-col>
  19. <v-col cols="12">
  20. <v-select
  21. style="width: 170px; color: #ee9546"
  22. v-model="filterName"
  23. :items="filter"
  24. dense
  25. outlined
  26. ></v-select>
  27. </v-col>
  28. <div class="col-md-12">
  29. <v-btn
  30. v-for="item in relatedServicesBtn"
  31. :key="item.id"
  32. outlined
  33. class="
  34. warning--text
  35. recommend-tag
  36. no-text-transform
  37. text-space-1
  38. rounded-lg
  39. ml-2
  40. mt-2
  41. "
  42. >
  43. {{ item.name }}
  44. </v-btn>
  45. </div>
  46. <v-col cols="12" style="background: #f8f8f8; border-radius: 15px">
  47. <div v-for="item in serviceContent" :key="item.id">
  48. <v-row>
  49. <v-col cols="3">
  50. <v-img :src="item.logo" style="border-radius: 15px"></v-img>
  51. </v-col>
  52. <v-col cols="9">
  53. <div class="relatedServicesContainer relatedServicesNone">
  54. <div class="relatedServicesText">
  55. <div style="color: #9c9c9c">{{ item.type }}</div>
  56. <div>
  57. <b>{{ item.title }}</b>
  58. </div>
  59. <div class="relatedServicesNone">{{ item.detail }}</div>
  60. </div>
  61. <div class="relatedServicesGo">
  62. <div v-if="item.heart" class="relatedServicesNone">
  63. <v-icon color="warning">mdi-heart</v-icon>
  64. </div>
  65. <div v-else class="relatedServicesNone">
  66. <v-icon color="warning">mdi-heart-outline</v-icon>
  67. </div>
  68. <div class="relatedServicesNone">{{ item.price }}</div>
  69. <div class="relatedServicesNone">
  70. <v-btn
  71. color="warning"
  72. class="
  73. recommend-tag
  74. no-text-transform
  75. text-space-1
  76. rounded-lg
  77. "
  78. >
  79. Recommend
  80. </v-btn>
  81. </div>
  82. </div>
  83. </div>
  84. <div class="relatedServicesFlatNone">
  85. <div style="color: #9c9c9c">{{ item.type }}</div>
  86. <div>
  87. <b>{{ item.title }}</b>
  88. </div>
  89. <div class="relatedServicesFlat">
  90. <div class="relatedServicesPrice">{{ item.price }}</div>
  91. <div class="relatedServicesGoBtn">
  92. <v-btn
  93. color="warning"
  94. class="
  95. recommend-tag
  96. no-text-transform
  97. text-space-1
  98. rounded-lg
  99. "
  100. >
  101. Recommend
  102. </v-btn>
  103. </div>
  104. </div>
  105. </div>
  106. </v-col>
  107. </v-row>
  108. </div>
  109. </v-col>
  110. </v-row>
  111. </template>
  112. <script>
  113. export default {
  114. name: "ExhibitionRelatedServices",
  115. props: {
  116. exhibition: {
  117. type: Object,
  118. default: () => ({}),
  119. },
  120. },
  121. data() {
  122. return {
  123. filterName: "For Everyone",
  124. filter: ["For Everyone", "For Exhibitor", "For Visitor"],
  125. relatedServicesBtn: [
  126. {
  127. id: "1",
  128. name: "all",
  129. },
  130. {
  131. id: "2",
  132. name: "Airport transportation",
  133. },
  134. {
  135. id: "3",
  136. name: "Rental cars",
  137. },
  138. {
  139. id: "4",
  140. name: "Exhibit transportation",
  141. },
  142. {
  143. id: "5",
  144. name: "Flowers",
  145. },
  146. {
  147. id: "6",
  148. name: "Exhibit transportation",
  149. },
  150. ],
  151. serviceContent: [
  152. {
  153. id: "1",
  154. logo: "https://d3kpqi6h465b7i.cloudfront.net/exhibitions/100/logos/medical-japan.png",
  155. type: "Airport transportation",
  156. title: "Taoyuan International Airport Transfers",
  157. detail:
  158. "Get a headstart on your next travel expedition with Taoyuan International Airport transfers. Enjoy guaranteed convenience ...",
  159. heart: false,
  160. price: "$45 USD up",
  161. },
  162. {
  163. id: "2",
  164. logo: "https://d3kpqi6h465b7i.cloudfront.net/exhibitions/100/logos/medical-japan.png",
  165. type: "Rental cars",
  166. title:
  167. "Taipei Popular Sightseeing Private Car Charter: Jiufen, Pingxi, and North Coast (Chinese/English/Korean)",
  168. detail:
  169. "Looking for a way to explore Taipei without having to bear with the constraints of being part of a big tour group? Then book this ...",
  170. heart: false,
  171. price: "$10,800 NTD up",
  172. },
  173. {
  174. id: "3",
  175. logo: "https://d3kpqi6h465b7i.cloudfront.net/exhibitions/100/logos/medical-japan.png",
  176. type: "Airport transportation",
  177. title: "Taoyuan International Airport Transfers",
  178. detail:
  179. "Get a headstart on your next travel expedition with Taoyuan International Airport transfers. Enjoy guaranteed convenience ...",
  180. heart: true,
  181. price: "$45 USD up",
  182. },
  183. ],
  184. };
  185. },
  186. };
  187. </script>
  188. <style>
  189. .relatedServicesText {
  190. grid-area: relatedServicesText;
  191. }
  192. .relatedServicesGo {
  193. grid-area: relatedServicesGo;
  194. }
  195. .relatedServicesContainer {
  196. display: grid;
  197. grid-template-columns: auto 2fr;
  198. grid-template-areas: "relatedServicesText relatedServicesGo";
  199. }
  200. .relatedServicesFlatNone {
  201. display: none;
  202. }
  203. .relatedServicesFlat {
  204. display: none;
  205. }
  206. @media screen and (min-width: 0px) and (max-width: 900px) {
  207. .relatedServicesContainer {
  208. display: grid;
  209. grid-template-areas:
  210. "relatedServicesText"
  211. "relatedServicesGo";
  212. }
  213. .relatedServicesPrice {
  214. grid-area: relatedServicesPrice;
  215. text-align: left;
  216. }
  217. .relatedServicesNone {
  218. display: none;
  219. }
  220. .relatedServicesGoBtn {
  221. grid-area: relatedServicesGoBtn;
  222. text-align: right;
  223. }
  224. .relatedServicesFlat {
  225. display: initial;
  226. display: grid;
  227. grid-template-areas: "relatedServicesPrice relatedServicesGoBtn";
  228. }
  229. .relatedServicesFlatNone {
  230. display: initial;
  231. }
  232. }
  233. </style>