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.

1383 lines
46 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. <template>
  2. <div
  3. class="NavBar tw-bg-white tw-sticky tw-top-0 tw-left-0 tw-w-full tw-border-0 tw-border-b tw-border-solid tw-border-neutral-200 tw-z-10"
  4. >
  5. <div
  6. class="tw-px-[20px] tw-py-[20px] md:tw-px-[30px] md:tw-py-[24px] xl:tw-px-[60px] xl:tw-pt-[22px] xl:tw-pb-[14px] xl:tw-max-w-[1366px] xl:tw-mx-auto"
  7. >
  8. <div class="tw-flex tw-justify-between tw-items-center xl:tw-h-[48px]">
  9. <div
  10. class="tw-flex tw-items-center tw-flex-grow xl:tw-grid xl:tw-grid-cols-[188px_auto] xl:tw-gap-[30px] xl:tw-basis-[70%]"
  11. >
  12. <img
  13. class="tw-mr-[20px] md:tw-mr-[40px] xl:tw-hidden"
  14. :src="require('@/assets/svg/menu.svg')"
  15. @click="clickMenu"
  16. />
  17. <nuxt-link
  18. :to="localePath('/')"
  19. class="tw-block tw-w-[146px] md:tw-w-[188px]"
  20. ><img
  21. :src="require('@/assets/svg/logo_v2.svg')"
  22. class="tw-w-full"
  23. alt=""
  24. />
  25. </nuxt-link>
  26. <!-- <v-card class="tw-hidden flex-row rounded-lg py-1 px-4 xl:tw-flex xl:tw-ml-[30px]" outlined
  27. v-if="showNavSearch" @click="bigSearch = true">
  28. <v-card flat color="transparent" :width="$vuetify.breakpoint.mdAndDown ? '70px' : '300px'"
  29. class="my-auto neutrals--text text--darken-3 text-size-14">
  30. {{
  31. this.$vuetify.breakpoint.mdAndDown
  32. ? $t("Looking ?")
  33. : $t("What are you looking for?")
  34. }}
  35. </v-card>
  36. <svg width="24" height="24" class="tw-my-auto" shape-rendering="geometricPrecision">
  37. <image xlink:href="@/assets/svg/icon-search-small.svg" src="@/assets/svg/icon-search-small.svg" width="24"
  38. height="24" />
  39. </svg>
  40. </v-card> -->
  41. <div v-if="showNavSearch" class="tw-w-full tw-hidden xl:tw-block">
  42. <Search
  43. v-if="showNavSearch"
  44. :exhibitionsCategories="exhibitionsCategories"
  45. :exhibitionsLocations="exhibitionsLocations"
  46. :exhibitionsSearchs="exhibitionsSearchs"
  47. :servicesLocations="servicesLocations"
  48. :servicesSearchs="servicesSearchs"
  49. @loaading="isPageLoading = true"
  50. />
  51. </div>
  52. </div>
  53. <div
  54. class="tw-basis-[46%] md:tw-basis-[66%] xl:tw-basis-[43%] xl:tw-ml-[56px]"
  55. v-click-outside="clickOutSide"
  56. >
  57. <div class="tw-flex tw-justify-end xl:tw-hidden">
  58. <div class="tw-flex tw-justify-center tw-items-center">
  59. <v-img
  60. max-width="24"
  61. class="mr-4 float-left"
  62. contain
  63. :src="require('@/assets/svg/search-black.svg')"
  64. @click="clickSearch"
  65. ></v-img>
  66. </div>
  67. <!--v-img
  68. max-width="24"
  69. class="mr-4 hidden-md-and-up"
  70. contain
  71. :src="require('@/assets/svg/shopping-bag.svg')"
  72. ></v-img-->
  73. <span max-width="28px" v-if="$auth.$state.loggedIn">
  74. <v-menu
  75. offset-y
  76. bottom
  77. left
  78. nudge-bottom="20"
  79. class="neutrals darken-1 mt-4 on-top"
  80. >
  81. <template v-slot:activator="{ on, attrs }">
  82. <v-btn
  83. v-bind="attrs"
  84. v-on="on"
  85. @click="UserInfoPopup = true"
  86. v-if="$auth.$storage.getUniversal('userPicture')"
  87. icon
  88. width="28px"
  89. height="28px"
  90. class="ms-2"
  91. >
  92. <v-img
  93. :src="userPicture"
  94. max-width="28px"
  95. max-height="28px"
  96. class="rounded-circle"
  97. :key="userPicture"
  98. ></v-img>
  99. </v-btn>
  100. <v-btn
  101. v-bind="attrs"
  102. v-on="on"
  103. @click="UserInfoPopup = true"
  104. v-else-if="
  105. $auth.$storage.getUniversal('userLastName') != undefined
  106. "
  107. fab
  108. class="user-no-picture-border mx-2 tw-shadow-none"
  109. color="primary"
  110. width="28"
  111. height="28"
  112. >
  113. <span class="tw-text-[16px]">
  114. {{ $auth.$storage.getUniversal("userLastName") }}
  115. </span>
  116. </v-btn>
  117. <nuxt-link
  118. v-else
  119. class="tw-bg-primary-default tw-rounded-[12px] tw-whitespace-nowrap tw-block tw-text-white tw-px-[16px] tw-py-[9px] tw-whitespace-nowrap tw-text-[10px] tw-font-medium tw-transition-all tw-duration-200 tw-ease-in-out hover:tw-bg-primary-light"
  120. :to="localePath('/user')"
  121. >
  122. {{ $t("Log in/Sign up") }}
  123. </nuxt-link>
  124. </template>
  125. <div class="neutrals darken-1 tw-hidden xl:tw-block">
  126. <v-btn
  127. :to="
  128. localePath(
  129. $auth.$storage.getUniversal('jwt')
  130. ? `/user/${
  131. $auth.$storage.getUniversal('jwt').user_id
  132. }`
  133. : ''
  134. )
  135. "
  136. class="neutrals darken-1 neutrals--text text--darken-5 no-text-transform elevation-0 text-size-14"
  137. >
  138. <unicon
  139. class="mr-3"
  140. name="user"
  141. height="20px"
  142. fill="neutrals-darken5"
  143. />{{ $t("Profile") }}
  144. </v-btn>
  145. <v-btn
  146. @click="logout"
  147. class="neutrals darken-1 warning--text no-text-transform elevation-0"
  148. >
  149. <unicon
  150. class="mr-3 text-size-14"
  151. name="signout"
  152. height="20px"
  153. fill="#EF5A5A"
  154. />{{ $t("Logout") }}
  155. </v-btn>
  156. </div>
  157. <!-- <v-list class="neutrals darken-1 tw-hidden xl:tw-block">
  158. <v-list-item>
  159. <v-btn :to="
  160. localePath(
  161. $auth.$storage.getUniversal('jwt')
  162. ? `/user/${
  163. $auth.$storage.getUniversal('jwt').user_id
  164. }`
  165. : ''
  166. )
  167. "
  168. class="neutrals darken-1 neutrals--text text--darken-5 no-text-transform elevation-0 text-size-14">
  169. <unicon class="mr-3" name="user" height="20px" fill="neutrals-darken5" />{{ $t("Profile") }}
  170. </v-btn>
  171. </v-list-item>
  172. <v-list-item>
  173. <v-btn @click="logout" class="neutrals darken-1 warning--text no-text-transform elevation-0">
  174. <unicon class="mr-3 text-size-14" name="signout" height="20px" fill="#EF5A5A" />{{ $t("Logout") }}
  175. </v-btn>
  176. </v-list-item>
  177. </v-list> -->
  178. </v-menu>
  179. </span>
  180. <span v-else>
  181. <nuxt-link :to="localePath('/user')">
  182. <img class="" :src="require('@/assets/svg/profile.svg')" />
  183. </nuxt-link>
  184. </span>
  185. </div>
  186. <div
  187. class="tw-hidden xl:tw-flex xl:tw-justify-end xl:tw-items-center"
  188. >
  189. <v-btn
  190. v-if="$i18n.locale == 'zh-tw'"
  191. depressed
  192. class="remove-upper tw-mx-0 tw-px-0 tw-bg-transparent tw-text-primary-default"
  193. href="https://medium.com/showeasy"
  194. target="_blank"
  195. >
  196. {{ $t("Blog") }}
  197. </v-btn>
  198. <v-btn
  199. v-else
  200. depressed
  201. class="remove-upper tw-mx-0 tw-px-0 tw-bg-transparent tw-text-primary-default"
  202. href="https://medium.com/showeasy-eng"
  203. target="_blank"
  204. >
  205. {{ $t("Blog") }}
  206. </v-btn>
  207. <v-menu offset-y class="on-top">
  208. <template v-slot:activator="{ on, attrs }">
  209. <v-btn
  210. v-bind="attrs"
  211. v-on="on"
  212. depressed
  213. class="white neutrals--text text--darken-5 no-text-transform tw-body-3 tw-font-normal"
  214. >
  215. {{ $i18n.localeProperties["title"] }}
  216. <img src="@/assets/svg/down-arrow.svg" alt="" class="ml-1" />
  217. </v-btn>
  218. </template>
  219. <v-list>
  220. <v-list-item
  221. v-for="(lang, idx) in this.$i18n.locales"
  222. :key="idx"
  223. class="tw-mx-auto"
  224. >
  225. <nuxt-link
  226. :to="switchLocalePath(lang.code)"
  227. class="tw-rounded-[10px] tw-text-base-primary text-decoration-none tw-body-3 tw-font-normal tw-w-full tw-px-[12px] tw-py-[8px] hover:tw-bg-primary-3 hover:tw-text-primary-1"
  228. >
  229. {{ lang.text }}
  230. </nuxt-link>
  231. </v-list-item>
  232. </v-list>
  233. </v-menu>
  234. <changeCurrency></changeCurrency>
  235. <nuxt-link
  236. class="tw-px-[10px] tw-mr-[10px] hover:tw-bg-primary-3 active:tw-bg-primary-3"
  237. :to="localePath('/FAQ')"
  238. ><img src="~/assets/svg/faq.svg" alt=""
  239. /></nuxt-link>
  240. <!-- <v-btn
  241. depressed
  242. class="white tw-mr-[16px]"
  243. :to="localePath('/FAQ')"
  244. >
  245. <svg width="20" height="20">
  246. <image
  247. xlink:href="@/assets/svg/help-circle.svg"
  248. src="@/assets/svg/help-circle.svg"
  249. width="20"
  250. height="20"
  251. />
  252. </svg>
  253. </v-btn> -->
  254. <!-- <v-btn depressed class="white" small>
  255. <img src="@/assets/svg/shopping-bag.svg" alt="" />
  256. </v-btn> -->
  257. <div v-if="$auth.$state.loggedIn" class="tw-relative">
  258. <div
  259. v-if="$auth.$storage.getUniversal('userPicture')"
  260. class="tw-mx-auto"
  261. >
  262. <img
  263. :src="userPicture"
  264. class="tw-max-w-[28px] tw-max-h-[28px] tw-rounded-[50px] tw-flex tw-items-center tw-cursor-pointer"
  265. @click="UserInfoPopup = true"
  266. alt=""
  267. />
  268. </div>
  269. <v-btn
  270. @click="UserInfoPopup = true"
  271. v-else-if="
  272. $auth.$storage.getUniversal('userLastName') != undefined
  273. "
  274. fab
  275. class="user-no-picture-border mx-2 tw-shadow-none"
  276. color="primary"
  277. width="28"
  278. height="28"
  279. >
  280. <span class="tw-text-[16px]">
  281. {{ $auth.$storage.getUniversal("userLastName") }}
  282. </span>
  283. </v-btn>
  284. <nuxt-link
  285. v-else
  286. class="tw-bg-primary-default tw-rounded-[12px] tw-whitespace-nowrap tw-block tw-text-white tw-px-[16px] tw-py-[9px] tw-whitespace-nowrap tw-text-[10px] tw-font-medium tw-transition-all tw-duration-200 tw-ease-in-out hover:tw-bg-primary-light"
  287. :to="localePath('/user')"
  288. >
  289. {{ $t("Log in/Sign up") }}
  290. </nuxt-link>
  291. <div
  292. :class="[
  293. 'tw-grid-cols-1 tw-gap-[14px] tw-px-[10px] tw-py-[8px] tw-bg-white tw-rounded-[10px] tw-w-max tw-absolute tw-right-0 tw-top-[40px] tw-z-50 tw-shadow-[0_1px_4px_0_rgba(0,0,0,0.3)]',
  294. UserInfoPopup && width >= 1366 ? 'tw-grid' : 'tw-hidden',
  295. ]"
  296. >
  297. <nuxt-link
  298. :to="
  299. localePath('/user/mobileUserInfoPopup')"
  300. class="tw-grid tw-grid-cols-[20px_auto] tw-gap-[10px] tw-px-[10px] tw-py-[8px]"
  301. @click.native="UserInfoPopup = false"
  302. ><img src="~/assets/svg/profile.svg" alt="" />
  303. <div class="tw-head-body tw-text-base-primary">
  304. {{ $t("userProfile.profile") }}
  305. </div>
  306. </nuxt-link>
  307. <!-- <nuxt-link :to="localePath('/user/myBooking')"
  308. class="tw-grid tw-grid-cols-[20px_auto] tw-gap-[10px] tw-px-[10px] tw-py-[8px]"><img
  309. src="~/assets/svg/bookings.svg" alt="" />
  310. <div class="tw-head-body tw-text-base-primary">
  311. {{ $t('My Bookings')}}
  312. </div>
  313. </nuxt-link> -->
  314. <nuxt-link
  315. :to="localePath('/user/saveExhibition')"
  316. class="tw-grid tw-grid-cols-[20px_auto] tw-gap-[10px] tw-px-[10px] tw-py-[8px]"
  317. @click.native="UserInfoPopup = false"
  318. ><img src="~/assets/svg/saveExhibition.svg" alt="" />
  319. <div class="tw-head-body tw-text-base-primary">
  320. {{ $t("userProfile.savedExhibitions") }}
  321. </div>
  322. </nuxt-link>
  323. <!-- <nuxt-link :to="localePath('/user/saveService')"
  324. class="tw-grid tw-grid-cols-[20px_auto] tw-gap-[10px] tw-px-[10px] tw-py-[8px]"
  325. @click.native="UserInfoPopup = false"><img src="~/assets/svg/saveService.svg" alt="" />
  326. <div class="tw-head-body tw-text-base-primary">
  327. {{ $t("userProfile.savedServices") }}
  328. </div>
  329. </nuxt-link> -->
  330. <nuxt-link
  331. :to="localePath('/user/companyInfo')"
  332. class="tw-grid tw-grid-cols-[20px_auto] tw-gap-[10px] tw-px-[10px] tw-py-[8px]"
  333. @click.native="UserInfoPopup = false"
  334. ><img src="~/assets/svg/companyInfo.svg" alt="" />
  335. <div class="tw-head-body tw-text-base-primary">
  336. {{ $t("userProfile.companyInfo") }}
  337. </div>
  338. </nuxt-link>
  339. <nuxt-link
  340. :to="localePath('/user/contactInfo')"
  341. class="tw-grid tw-grid-cols-[20px_auto] tw-gap-[10px] tw-px-[10px] tw-py-[8px]"
  342. @click.native="UserInfoPopup = false"
  343. ><img src="~/assets/svg/contactInfo.svg" alt="" />
  344. <div class="tw-head-body tw-text-base-primary">
  345. {{ $t("Contact Info") }}
  346. </div>
  347. </nuxt-link>
  348. <nuxt-link
  349. :to="localePath('/user/setting')"
  350. class="tw-grid tw-grid-cols-[20px_auto] tw-gap-[10px] tw-px-[10px] tw-py-[8px]"
  351. @click.native="UserInfoPopup = false"
  352. ><img src="~/assets/svg/profile_setting.svg" alt="" />
  353. <div class="tw-head-body tw-text-base-primary">
  354. {{ $t("userProfile.setting") }}
  355. </div>
  356. </nuxt-link>
  357. <div
  358. class="tw-border tw-border-t tw-border-solid tw-border-neutral-200"
  359. ></div>
  360. <button
  361. class="tw-grid tw-grid-cols-[20px_auto] tw-gap-[10px] tw-px-[10px] tw-py-[8px]"
  362. @click="logout"
  363. >
  364. <img src="~/assets/svg/logout.svg" alt="" />
  365. <div
  366. class="tw-flex tw-head-body tw-text-error-default tw-justify-start"
  367. >
  368. {{ $t("userProfile.logout") }}
  369. </div>
  370. </button>
  371. </div>
  372. </div>
  373. <div v-else>
  374. <nuxt-link
  375. :to="localePath('/user')"
  376. class="tw-text-[14px] tw-min-w-[123px] tw-whitespace-nowrap tw-text-white tw-bg-primary-1 tw-px-[16px] tw-py-[9px] tw-rounded-[12px]"
  377. >
  378. {{ $t("Log in/Sign up") }}</nuxt-link
  379. >
  380. </div>
  381. </div>
  382. </div>
  383. </div>
  384. <div
  385. ref="dropdown"
  386. :class="[
  387. 'navBar-row2 tw-relative tw-hidden xl:tw-grid xl:tw-mt-[35px] tw-transition-all tw-duration-200 tw-delay-75 tw-ease-linear',
  388. ]"
  389. >
  390. <div
  391. class="customMenuLink tw-relative tw-flex tw-justify-start tw-items-center tw-z-3"
  392. @mouseleave="exhibitionActiveIndex = 0"
  393. >
  394. <a
  395. :href="localePath('/exhibition')"
  396. @click="isPageLoading = true"
  397. :class="[
  398. 'tw-text-black tw-body-3 tw-font-normal hover:tw-text-primary-default',
  399. $route.path.match('\/exhibition')
  400. ? 'tw-text-primary-default'
  401. : '',
  402. ]"
  403. >
  404. {{ $t("Exhibition") }}</a
  405. >
  406. <div
  407. class="customDropMenu exhibition tw-bg-white tw-p-[20px] tw-rounded-[10px] tw-w-max tw-absolute tw-top-[36px] tw-left-0 tw-mt-[10px] tw-overflow-hidden tw-shadow-[0_1px_6px_0_rgba(0,0,0,0.4)]"
  408. >
  409. <div
  410. class="tw-relative tw-grid tw-grid-cols-2 tw-w-[700px] tw-h-[556px] tw-overflow-hidden"
  411. >
  412. <div
  413. class="tw-list-none tw-overflow-x-hidden tw-overflow-y-auto tw-h-auto tw-break-inside-avoid tw-grid tw-grid-cols-1 tw-gap-[20px]"
  414. >
  415. <div
  416. class="tw-list-none tw-mr-[20px]"
  417. v-for="(item, index) in exhibitionsCategoryList"
  418. :key="index"
  419. @mouseover="exhibitionActiveIndex = index"
  420. >
  421. <div
  422. :class="[
  423. 'exhibitionDropdownLink tw-grid tw-grid-cols-[30px_auto] tw-gap-[10px] tw-body-4 tw-font-normal hover:tw-text-primary-default',
  424. exhibitionActiveIndex == index
  425. ? 'tw-text-primary-default active'
  426. : 'tw-text-neutrals-900',
  427. ]"
  428. >
  429. <img
  430. v-if="exhibitionListIcon[index] !== undefined"
  431. :src="
  432. require(`@/assets/img/CategoryIcon/${exhibitionListIcon[index]}.png`)
  433. "
  434. /><span class="tw-flex tw-items-center tw-min-w-[322px]">{{
  435. $t(item.title)
  436. }}</span>
  437. </div>
  438. </div>
  439. </div>
  440. <div class="tw-w-full tw-overflow-x-hidden tw-overflow-y-auto">
  441. <ul
  442. class="tw-list-none tw-grid tw-grid-cols-1 tw-gap-[20px] tw-px-[20px]"
  443. >
  444. <li class="tw-list-none">
  445. <a
  446. :href="
  447. localePath(
  448. `/exhibition?category=${exhibitionsCategoryList[exhibitionActiveIndex].id}`
  449. )
  450. "
  451. class="tw-block tw-body-4 tw-font-normal tw-text-neutral-800 hover:tw-text-primary-default"
  452. >{{ $t("All") }}</a
  453. >
  454. </li>
  455. <li
  456. v-for="(sub, index) in exhibitionsCategoryList[
  457. exhibitionActiveIndex
  458. ].subcategory"
  459. :key="index"
  460. class="tw-list-none"
  461. >
  462. <a
  463. :href="localePath(`/exhibition?subcategory=${sub.id}`)"
  464. class="tw-block tw-min-h-[30px] tw-body-4 tw-font-normal tw-min-w-[230px] tw-text-neutral-800 hover:tw-text-primary-default"
  465. >{{ sub.title }}</a
  466. >
  467. </li>
  468. </ul>
  469. </div>
  470. </div>
  471. </div>
  472. </div>
  473. <span class="vertical-line"></span>
  474. <div
  475. class="customMenuLink tw-relative tw-flex tw-justify-start tw-items-center tw-z-3"
  476. >
  477. <a
  478. :href="localePath('/service')"
  479. :class="[
  480. 'tw-text-black tw-body-3 tw-font-normal hover:tw-text-primary-default',
  481. $route.path.match('\/service') ? 'tw-text-primary-default' : '',
  482. ]"
  483. >
  484. {{ $t("All Services") }}</a
  485. >
  486. <div
  487. class="customDropMenu services tw-bg-white tw-p-[20px] tw-rounded-[10px] tw-w-max tw-absolute tw-top-[36px] tw-left-0 tw-mt-[10px] -tw-mb-[60px] tw-shadow-[0_1px_6px_0_rgba(0,0,0,0.4)]"
  488. >
  489. <ul
  490. v-for="(item, index) in serviceCategoryList"
  491. :key="item.id"
  492. class="tw-list-none tw-mb-0 tw-mr-[40px] tw-h-auto tw-break-inside-avoid"
  493. >
  494. <li class="tw-list-none">
  495. <a
  496. :href="localePath(`/service?category=${item.id}`)"
  497. class="tw-block tw-mb-[16px] tw-grid tw-grid-cols-[16px_auto] tw-gap-[10px] tw-body-4 tw-font-normal tw-text-primary-default hover:tw-text-primary-default"
  498. >
  499. <svg
  500. width="16"
  501. height="16"
  502. class="tw-my-auto"
  503. shape-rendering="geometricPrecision"
  504. v-if="serviceListIcon[index] !== undefined"
  505. >
  506. <image
  507. :xlink:href="
  508. require(`@/assets/svg/${serviceListIcon[index]}.svg`)
  509. "
  510. :src="
  511. require(`@/assets/svg/${serviceListIcon[index]}.svg`)
  512. "
  513. width="16"
  514. height="16"
  515. />
  516. </svg>
  517. <div v-else></div>
  518. <span>{{ item.title }}</span>
  519. </a>
  520. <ul
  521. class="tw-list-none tw-grid tw-grid-cols-1 tw-gap-[16px] tw-p-0"
  522. >
  523. <li
  524. v-for="(sub, index) in item.subcategory"
  525. :key="index"
  526. class="tw-list-none"
  527. >
  528. <a
  529. :href="localePath(`/service?subcatg=${sub.id}`)"
  530. class="tw-block tw-body-4 tw-font-normal tw-text-neutral-800 hover:tw-text-primary-default"
  531. >{{ sub.title }}</a
  532. >
  533. </li>
  534. </ul>
  535. </li>
  536. <div class="tw-h-[60px]"></div>
  537. </ul>
  538. </div>
  539. </div>
  540. <div
  541. ref="headerSwiper"
  542. class="swiper-container headerService tw-w-full tw-overflow-hidden tw-relative tw-max-w-[1008px] tw-ml-[25px] tw-transition-all tw-duration-200 tw-delay-75 tw-ease-in"
  543. >
  544. <div class="swiper-wrapper">
  545. <div
  546. class="swiper-slide customMenuLink tw-relative tw-justify-start tw-items-center tw-w-auto"
  547. v-for="item in serviceCategoryList"
  548. :key="item.id"
  549. >
  550. <a
  551. :href="localePath(`/service?category=${item.id}`)"
  552. class="tw-text-black tw-body-3 tw-font-normal hover:tw-text-primary-default tw-whitespace-nowrap"
  553. >{{ item.title }}</a
  554. >
  555. <ul
  556. class="customDropMenu oneType tw-grid-cols-1 tw-gap-[16px] tw-bg-white tw-p-[20px] tw-rounded-[10px] tw-w-max tw-absolute tw-top-[36px] tw-left-0 tw-mt-[10px] tw-shadow-[0_1px_6px_0_rgba(0,0,0,0.4)]"
  557. >
  558. <li
  559. v-for="(sub, index) in item.subcategory"
  560. :key="index"
  561. class="tw-list-none"
  562. >
  563. <a
  564. :href="localePath(`/service?subcatg=${sub.id}`)"
  565. class="tw-block tw-body-4 tw-font-normal tw-text-black hover:tw-text-primary-default"
  566. >{{ sub.title }}</a
  567. >
  568. </li>
  569. </ul>
  570. </div>
  571. </div>
  572. <div
  573. :class="[
  574. 'swiper-button-prev headerService tw-text-black tw-hidden',
  575. headerServiceSwiper
  576. ? 'xl:tw-flex xl:tw-justify-center xl:tw-items-center'
  577. : '',
  578. ]"
  579. ></div>
  580. <div
  581. :class="[
  582. 'swiper-button-next headerService tw-text-black tw-hidden',
  583. headerServiceSwiper
  584. ? 'xl:tw-flex xl:tw-justify-center xl:tw-items-center'
  585. : '',
  586. ]"
  587. ></div>
  588. </div>
  589. </div>
  590. </div>
  591. <Drawer
  592. :serviceCategory.sync="serviceCategoryList"
  593. :exhibitionsCategory.sync="exhibitionsCategoryList"
  594. :serviceListIcon="serviceListIcon"
  595. :exhibitionListIcon="exhibitionListIcon"
  596. @changeLang="changeLang()"
  597. />
  598. <SearchDialog
  599. ref="searchDialog"
  600. :exhibitionsCategoryList="exhibitionsCategoryList"
  601. :exhibitionsLocations="exhibitionsLocations"
  602. :exhibitionListIcon="exhibitionListIcon"
  603. :exhibitionsCategories="exhibitionsCategories"
  604. :servicesLocations="servicesLocations"
  605. :servicesSearchs="servicesSearchs"
  606. :populars="populars"
  607. @loaading="isPageLoading = true"
  608. />
  609. <mobileUserInfoPopup
  610. v-show="width < 1366"
  611. :show="UserInfoPopup"
  612. :width="width"
  613. @popup="UserInfoPopup = $event"
  614. >
  615. </mobileUserInfoPopup>
  616. <loading :isLoading="isPageLoading"></loading>
  617. </div>
  618. </template>
  619. <script>
  620. import Search from "@/components/home/headerInlineSearch";
  621. import Drawer from "@/components/newDrawer";
  622. import SearchDialog from "@/components/SearchDialog";
  623. import mobileUserInfoPopup from "@/components/mobileUserInfoPopup.vue";
  624. import { SettingsIcon } from "vue-feather-icons";
  625. import jwt_decode from "jwt-decode";
  626. import loading from "@/components/newComponent/loading/loading.vue";
  627. import changeCurrency from "@/components/dropdown/changeCurrencyWeb.vue";
  628. import Swiper from "swiper/bundle";
  629. import { handler } from "@tailwindcss/line-clamp";
  630. export default {
  631. components: {
  632. Drawer,
  633. Search,
  634. SettingsIcon,
  635. SearchDialog,
  636. mobileUserInfoPopup,
  637. loading,
  638. changeCurrency,
  639. Swiper,
  640. },
  641. data() {
  642. return {
  643. show: false,
  644. bigSearch: false,
  645. userPicture: "",
  646. showNavSearch: true,
  647. servicesSearchs: [],
  648. servicesLocations: [],
  649. serviceCategoryList: [{ title: 'Food Equipment',subcategory: [{
  650. id: '1',
  651. title: 'Food Equipment-01'
  652. }] },{ title: 'Machine Tool',subcategory: [{
  653. id: '1',
  654. title: 'Machine Tool-01'
  655. }] },{ title: 'Food Equipment',subcategory: [{
  656. id: '1',
  657. title: 'Food Equipment-01'
  658. }] },{ title: 'Food Equipment',subcategory: [{
  659. id: '1',
  660. title: 'Food Equipment-01'
  661. }] },{ title: 'Food Equipment',subcategory: [{
  662. id: '1',
  663. title: 'Food Equipment-01'
  664. }] },{ title: 'Food Equipment',subcategory: [{
  665. id: '1',
  666. title: 'Food Equipment-01'
  667. }] },{ title: 'Food Equipment',subcategory: [{
  668. id: '1',
  669. title: 'Food Equipment-01'
  670. }] }],
  671. serviceListIcon: [
  672. "Booth",
  673. "Exhibit",
  674. "event",
  675. "Marketing",
  676. "journey",
  677. "human",
  678. "service_others",
  679. ],
  680. exhibitionsCategoryList: [{ title: 'Food Equipment',subcategory: [{
  681. id: '1',
  682. title: 'Food Equipment-01'
  683. }] },{ title: 'Machine Tool',subcategory: [{
  684. id: '1',
  685. title: 'Machine Tool-01'
  686. }] },{ title: 'Food Equipment',subcategory: [{
  687. id: '1',
  688. title: 'Food Equipment-01'
  689. }] },{ title: 'Food Equipment',subcategory: [{
  690. id: '1',
  691. title: 'Food Equipment-01'
  692. }] },{ title: 'Food Equipment',subcategory: [{
  693. id: '1',
  694. title: 'Food Equipment-01'
  695. }] },{ title: 'Food Equipment',subcategory: [{
  696. id: '1',
  697. title: 'Food Equipment-01'
  698. }] },{ title: 'Food Equipment',subcategory: [{
  699. id: '1',
  700. title: 'Food Equipment-01'
  701. }] },{ title: 'Food Equipment',subcategory: [{
  702. id: '1',
  703. title: 'Food Equipment-01'
  704. }] },{ title: 'Machine Tool',subcategory: [{
  705. id: '1',
  706. title: 'Machine Tool-01'
  707. }] },{ title: 'Food Equipment',subcategory: [{
  708. id: '1',
  709. title: 'Food Equipment-01'
  710. }] },{ title: 'Food Equipment',subcategory: [{
  711. id: '1',
  712. title: 'Food Equipment-01'
  713. }] },{ title: 'Food Equipment',subcategory: [{
  714. id: '1',
  715. title: 'Food Equipment-01'
  716. }] },{ title: 'Food Equipment',subcategory: [{
  717. id: '1',
  718. title: 'Food Equipment-01'
  719. }] },{ title: 'Food Equipment',subcategory: [{
  720. id: '1',
  721. title: 'Food Equipment-01'
  722. }] }],
  723. exhibitionsSearchs: [],
  724. exhibitionsLocations: [],
  725. exhibitionsCategories: [],
  726. exhibitionListIcon: [
  727. "rawMaterial",
  728. "aeroSpace",
  729. "energy",
  730. "autoMobile",
  731. "electronics",
  732. "contrucstion",
  733. "security",
  734. "Machinary",
  735. "Medical",
  736. "education",
  737. "textile",
  738. "food",
  739. "entertainment",
  740. "consumer",
  741. "others",
  742. ],
  743. populars: {},
  744. exhibitionActiveIndex: 0,
  745. width: undefined,
  746. drawer: false,
  747. group: null,
  748. isPageLoading: false,
  749. UserInfoPopup: false,
  750. headerServiceSwiper: null,
  751. offsetLeft: 0,
  752. top: 0,
  753. TAIWAN_ID: 18,
  754. JAPAN_ID: 16,
  755. ITALY_ID: 31,
  756. };
  757. },
  758. async created() {
  759. if (process.client) {
  760. this.width = window.innerWidth;
  761. }
  762. if (!this.$route) return;
  763. if (!this.$route.name) return;
  764. const [path, lang] = this.$route.name.split("___");
  765. if (path == "index") {
  766. this.showNavSearch = false;
  767. } else {
  768. this.showNavSearch = true;
  769. }
  770. await this.fetchUser();
  771. await this.socialRegister();
  772. // await this.getServiceCategory();
  773. // await this.getExhibitionsCategory();
  774. // await this.getServiceHistory();
  775. // await this.getExhibitionsHistory();
  776. // await this.getServiceLocations();
  777. // await this.getExhibitionsLocations();
  778. // await this.getExhibitionsCategories();
  779. // await this.getExhibitionsCollections();
  780. // await this.getPopulars();
  781. },
  782. mounted() {
  783. let vm = this;
  784. vm.$nextTick(function () {
  785. window.addEventListener("resize", this.onResize);
  786. vm.initSwiper();
  787. });
  788. },
  789. beforeDestroy() {
  790. window.removeEventListener("resize", this.onResize);
  791. },
  792. computed: {
  793. windowWidth() {
  794. if (process.client) {
  795. this.width = window.innerWidth;
  796. }
  797. return this.width;
  798. },
  799. pictureStatus() {
  800. return this.$store.getters.getPictureStatus;
  801. },
  802. registerStatus() {
  803. return this.$store.getters.getRegisterStatus;
  804. },
  805. lang() {
  806. return this.$i18n.localeProperties["langQuery"];
  807. },
  808. },
  809. watch: {
  810. group: {
  811. handler: function () {
  812. this.drawer = false;
  813. },
  814. },
  815. $route: {
  816. handler: function (to, from) {
  817. if (!to) return;
  818. if (!to.name) return;
  819. const [path, lang] = to.name.split("___");
  820. if (path == "index") {
  821. this.showNavSearch = false;
  822. } else {
  823. this.showNavSearch = true;
  824. }
  825. if (path === "exhibition") {
  826. this.isPageLoading = false;
  827. }
  828. if (path === "service") {
  829. this.isPageLoading = false;
  830. }
  831. if (to != from) {
  832. this.bigSearch = false;
  833. }
  834. },
  835. },
  836. pictureStatus: {
  837. handler: function (newVal, oldVal) {
  838. this.fetchUser();
  839. this.$forceUpdate();
  840. },
  841. },
  842. registerStatus: {
  843. handler: function (newVal, oldVal) {
  844. this.socialRegister();
  845. },
  846. },
  847. lang: {
  848. handler: async function (newVal, oldVal) {
  849. if (newVal != oldVal) {
  850. this.$refs.dropdown.style.opacity = 0;
  851. // await this.getServiceCategory();
  852. // await this.getExhibitionsCategory();
  853. // await this.getServiceHistory();
  854. // await this.getExhibitionsHistory();
  855. // await this.getServiceLocations();
  856. // await this.getExhibitionsLocations();
  857. // await this.getExhibitionsCategories();
  858. // await this.getExhibitionsCollections();
  859. await this.initSwiper();
  860. }
  861. },
  862. },
  863. },
  864. methods: {
  865. clickOutSide() {
  866. this.show = false;
  867. this.UserInfoPopup = false;
  868. },
  869. onResize() {
  870. if (process.client) {
  871. this.width = window.innerWidth;
  872. }
  873. },
  874. clickMenu() {
  875. if (this.windowWidth < 1366) {
  876. this.$store.dispatch("toggleDrawer", true);
  877. }
  878. },
  879. clickSearch() {
  880. this.$store.dispatch("toggleSearchDialog", true);
  881. },
  882. initSwiper() {
  883. let vm = this;
  884. vm.$nextTick(function () {
  885. vm.headerServiceSwiper = new Swiper(".swiper-container.headerService", {
  886. direction: "horizontal",
  887. initialSlide: 0,
  888. observer: true,
  889. observeParents: true,
  890. rebuildOnUpdate: true,
  891. slidesPerView: "auto",
  892. spaceBetween: 25,
  893. watchSlidesVisibility: true,
  894. slideVisibleClass: "swiper-slide-visible",
  895. allowTouchMove: false,
  896. navigation: {
  897. nextEl: ".swiper-button-next.headerService",
  898. prevEl: ".swiper-button-prev.headerService",
  899. },
  900. });
  901. vm.headerServiceSwiper.init();
  902. vm.headerServiceSwiper.update();
  903. // this.$refs.headerSwiper.style.opacity = 1;
  904. vm.$refs.dropdown.style.opacity = 1;
  905. });
  906. },
  907. async fetchUser() {
  908. if (this.$auth.loggedIn) {
  909. const jwt = this.$auth.$storage.getUniversal("jwt");
  910. let jsonPayload = {};
  911. if (jwt) {
  912. const token = this.$auth.$storage.getUniversal("jwt").token;
  913. jsonPayload = jwt_decode(token) || {};
  914. }
  915. if (!this.$auth.$storage.getUniversal("userPicture")) {
  916. this.userPicture = jsonPayload.picture || "";
  917. this.$auth.$storage.setUniversal("userPicture", jsonPayload.picture);
  918. } else {
  919. this.userPicture = this.$auth.$storage.getUniversal("userPicture");
  920. }
  921. this.$auth.$storage.setUniversal(
  922. "userLastName",
  923. jsonPayload && jsonPayload.last_name
  924. ? jsonPayload.last_name.substring(0, 1)
  925. : ""
  926. );
  927. }
  928. },
  929. getServiceCategory() {
  930. let vm = this;
  931. vm.$nextTick(() => {
  932. vm.$axios
  933. .get(`/service/category?lang_code=${this.lang}`)
  934. .then((result) => {
  935. vm.serviceCategoryList = result.data.map((item) => {
  936. const subcategory = item.service_subcategory.map((sub) => {
  937. return {
  938. id: sub.id,
  939. title: sub.language_text[0].text,
  940. key: sub.language_text[0].text,
  941. type: "subcategory",
  942. order: sub.order_in_category,
  943. };
  944. });
  945. return {
  946. id: item.id,
  947. order: item.order,
  948. title: item.language_text[0].text,
  949. key: item.language_text[0].text,
  950. type: "category",
  951. subcategory: subcategory,
  952. };
  953. });
  954. return result.data;
  955. })
  956. .catch((err) => {
  957. console.log(err);
  958. });
  959. });
  960. },
  961. async getExhibitionsCategory() {
  962. await this.$axios
  963. .get(
  964. `/t/exhibitions/categories?lang=${this.$i18n.localeProperties["langQuery"]}&sort=true`
  965. )
  966. .then((result) => {
  967. this.exhibitionsCategoryList = result.data.sort_results;
  968. this.exhibitionsCategoryList = this.exhibitionsCategoryList.map(
  969. (item) => {
  970. item.subcategories_list = item.subcategories_list.map(
  971. (children) => {
  972. return {
  973. id: children.subcategory_id,
  974. title: children.subcategory_name,
  975. key: children.subcategory_name,
  976. type: "subcategory",
  977. };
  978. }
  979. );
  980. return {
  981. id: item.categories_id,
  982. title: item.category_name,
  983. key: item.category_name,
  984. type: "category",
  985. subcategory: item.subcategories_list,
  986. };
  987. }
  988. );
  989. })
  990. .catch((err) => {
  991. console.log(err);
  992. });
  993. },
  994. async getServiceHistory() {
  995. await this.$axios
  996. .get(
  997. `/trending/services/search/history?lang=${this.$i18n.localeProperties["langQuery"]}`
  998. )
  999. .then((response) => {
  1000. this.servicesSearchs = response.data.searches;
  1001. })
  1002. .catch((error) => console.log(error));
  1003. },
  1004. async getExhibitionsHistory() {
  1005. await this.$axios
  1006. .get(
  1007. `/trending/exhibitions/search/history?lang=${this.$i18n.localeProperties["langQuery"]}`
  1008. )
  1009. .then((response) => {
  1010. this.exhibitionsSearchs = response.data.searches;
  1011. })
  1012. .catch((error) => console.log(error));
  1013. },
  1014. async getServiceLocations() {
  1015. await this.$axios
  1016. .get(
  1017. `/trending/services/locations?lang=${this.$i18n.localeProperties["langQuery"]}`
  1018. )
  1019. .then((response) => {
  1020. this.servicesLocations = response.data.locations;
  1021. })
  1022. .catch((error) => console.log(error));
  1023. },
  1024. async getExhibitionsLocations() {
  1025. await this.$axios
  1026. .get(
  1027. `/trending/exhibitions/locations?lang=${this.$i18n.localeProperties["langQuery"]}`
  1028. )
  1029. .then((response) => {
  1030. this.exhibitionsLocations = response.data.locations;
  1031. })
  1032. .catch((error) => console.log(error));
  1033. },
  1034. async getExhibitionsCategories() {
  1035. await this.$axios
  1036. .get(
  1037. `/t/exhibitions/categories?lang=${this.$i18n.localeProperties["langQuery"]}&sort=true`
  1038. )
  1039. .then((result) => {
  1040. this.exhibitionsCategories = result.data.sort_results;
  1041. this.exhibitionsCategories = this.exhibitionsCategories.map(
  1042. (item) => {
  1043. item.subcategories_list = item.subcategories_list.map(
  1044. (children) => {
  1045. return {
  1046. id: children.subcategory_id,
  1047. title: children.subcategory_name,
  1048. key: children.subcategory_name,
  1049. type: "subcategory",
  1050. };
  1051. }
  1052. );
  1053. return {
  1054. id: item.categories_id,
  1055. title: item.category_name,
  1056. key: item.category_name,
  1057. type: "category",
  1058. subcategory: item.subcategories_list,
  1059. };
  1060. }
  1061. );
  1062. })
  1063. .catch((err) => {
  1064. console.log(err);
  1065. });
  1066. },
  1067. async getExhibitionsCollections() {
  1068. await this.$axios
  1069. .get(
  1070. `/trending/exhibitions/collections?lang=${this.$i18n.localeProperties["langQuery"]}`
  1071. )
  1072. .then((response) => {
  1073. this.collections = response.data.collections;
  1074. })
  1075. .catch((error) => console.log(error));
  1076. },
  1077. async changeLang() {
  1078. // await this.getServiceCategory();
  1079. // await this.getExhibitionsCategory();
  1080. // await this.getServiceHistory();
  1081. // await this.getExhibitionsHistory();
  1082. // await this.getServiceLocations();
  1083. // await this.getExhibitionsLocations();
  1084. // await this.getExhibitionsCategories();
  1085. // await this.getExhibitionsCollections();
  1086. },
  1087. async getPopulars() {
  1088. await this.$axios
  1089. .get(
  1090. `/trending/search/popular?lang=${this.$i18n.localeProperties["langQuery"]}`
  1091. )
  1092. .then((response) => {
  1093. this.populars = response.data;
  1094. })
  1095. .catch((error) => console.log(error));
  1096. },
  1097. logout() {
  1098. this.$auth.$storage.removeUniversal("authtoken");
  1099. this.$auth.$storage.removeUniversal("userPicture");
  1100. this.$auth.$storage.removeUniversal("userLastName");
  1101. this.$auth.$storage.removeUniversal("userBeforePath");
  1102. if (this.width < 1024) {
  1103. this.$router.push(this.localePath("/"));
  1104. } else {
  1105. this.$router.push(this.localePath("/user"));
  1106. }
  1107. this.$auth.logout();
  1108. this.$nuxt.refresh();
  1109. this.UserInfoPopup = false;
  1110. },
  1111. async socialRegister() {
  1112. if (this.$auth.loggedIn) {
  1113. const jsonPayload =
  1114. this.$auth.$storage.getUniversal("jwt") &&
  1115. this.$auth.$storage.getUniversal("jwt").token != undefined
  1116. ? jwt_decode(this.$auth.$storage.getUniversal("jwt").token)
  1117. : { ueid: "" };
  1118. if (
  1119. this.$auth.$state.strategy === "google" ||
  1120. this.$auth.$state.strategy === "facebook"
  1121. ) {
  1122. const userData = {
  1123. social_id:
  1124. this.$auth.$state.strategy === "google"
  1125. ? this.$auth.$state.user.sub
  1126. : this.$auth.$state.user.id,
  1127. first_name:
  1128. this.$auth.$state.strategy === "google"
  1129. ? this.$auth.$state.user.given_name
  1130. : this.$auth.$state.user.first_name,
  1131. last_name:
  1132. this.$auth.$state.strategy === "google"
  1133. ? this.$auth.$state.user.family_name
  1134. : this.$auth.$state.user.last_name,
  1135. email: this.$auth.$state.user.email,
  1136. picture:
  1137. this.$auth.$state.strategy === "google"
  1138. ? this.$auth.$state.user.picture
  1139. : this.$auth.$state.user.picture.data.url,
  1140. social_schema: this.$auth.$state.strategy,
  1141. };
  1142. jsonPayload.ueid != ""
  1143. ? (userData.user_id = JSON.parse(jsonPayload.ueid))
  1144. : "";
  1145. await this.$axios
  1146. .post("/member/users/social", userData)
  1147. .then((result) => {
  1148. this.$auth.$storage.setUniversal("jwt", result.data, true);
  1149. this.$store.dispatch("updatePicture");
  1150. })
  1151. .catch((err) => {
  1152. console.log(err);
  1153. });
  1154. }
  1155. this.$store.dispatch("updatePicture");
  1156. }
  1157. },
  1158. toShowList(countryId) {
  1159. if (countryId > 0) {
  1160. this.$router.push(this.localePath(`/exhibition?country=${countryId}`));
  1161. } else {
  1162. this.$router.push(this.localePath(`/exhibition`));
  1163. }
  1164. this.isPageLoading = true;
  1165. },
  1166. },
  1167. };
  1168. </script>
  1169. <style lang="scss" scoped>
  1170. .v-menu__content {
  1171. box-shadow: none;
  1172. min-width: 186px;
  1173. border-radius: 10px;
  1174. }
  1175. .v-list-item {
  1176. padding-left: 12px;
  1177. padding-right: 12px;
  1178. color: #232323 !important;
  1179. }
  1180. .navBar-row2 {
  1181. opacity: 0;
  1182. grid-template-columns: fit-content(70px) 50px fit-content(90px) auto;
  1183. }
  1184. .navBar-row2 {
  1185. opacity: 0;
  1186. grid-template-columns: fit-content(70px) 50px fit-content(90px) auto;
  1187. }
  1188. .vertical-line {
  1189. display: inline-block;
  1190. border-left: 1.5px solid;
  1191. margin: 5px 20px 5px 20px;
  1192. height: 15px;
  1193. }
  1194. :deep(.v-toolbar__content) {
  1195. max-width: 1366px;
  1196. width: 1366px;
  1197. }
  1198. .user-picture-container {
  1199. width: 28px;
  1200. height: 28px;
  1201. }
  1202. .user-picture-border {
  1203. border: 1px solid #f5cda8;
  1204. }
  1205. .user-no-picture-border {
  1206. border: 2px solid #f5cda8;
  1207. }
  1208. .user-no-picture-font {
  1209. font-family: "DM Sans";
  1210. font-style: normal;
  1211. font-weight: 400;
  1212. font-size: 16px;
  1213. line-height: 21px;
  1214. }
  1215. .v-btn:before {
  1216. background-color: rgba(238, 149, 70, 0.6) !important;
  1217. font-color: #ee9546;
  1218. }
  1219. .on-top {
  1220. z-index: 500;
  1221. }
  1222. .customMenuLink {
  1223. &::after {
  1224. content: "";
  1225. display: block;
  1226. width: 150%;
  1227. height: 40px;
  1228. position: absolute;
  1229. top: 20px;
  1230. left: 0;
  1231. }
  1232. &:hover {
  1233. .customDropMenu {
  1234. display: block;
  1235. &.oneType {
  1236. display: grid;
  1237. }
  1238. }
  1239. }
  1240. }
  1241. .customDropMenu {
  1242. column-count: 4;
  1243. display: none;
  1244. &.exhibition {
  1245. column-count: initial;
  1246. column-gap: initial;
  1247. }
  1248. &.services {
  1249. column-count: 3;
  1250. column-gap: 30px;
  1251. }
  1252. &.oneType {
  1253. column-count: 1;
  1254. column-gap: 30px;
  1255. }
  1256. > ul {
  1257. &:last-of-type {
  1258. > div {
  1259. display: none !important;
  1260. }
  1261. }
  1262. }
  1263. }
  1264. .swiper-button {
  1265. &-prev {
  1266. left: 0;
  1267. &::before {
  1268. content: "";
  1269. display: block;
  1270. width: 60px;
  1271. height: 100%;
  1272. background-image: url("~/assets/svg/swiper_linear.svg");
  1273. // background-image: linear-gradient(to left, transparent, #fff);
  1274. position: absolute;
  1275. left: -6px;
  1276. top: 0;
  1277. z-index: -1;
  1278. transform: rotate(180deg);
  1279. }
  1280. &:after {
  1281. content: "";
  1282. display: block;
  1283. position: absolute;
  1284. right: 10px;
  1285. background-image: url("~/assets/svg/left-arrow-default.svg");
  1286. background-position: center;
  1287. background-repeat: no-repeat;
  1288. background-size: 7px 13px;
  1289. width: 24px;
  1290. height: 24px;
  1291. }
  1292. }
  1293. &-next {
  1294. right: 0;
  1295. &::before {
  1296. content: "";
  1297. display: block;
  1298. width: 60px;
  1299. height: 100%;
  1300. background-image: url("~/assets/svg/swiper_linear.svg");
  1301. // background-image: linear-gradient(to right, transparent, #fff);
  1302. position: absolute;
  1303. right: -6px;
  1304. top: 0;
  1305. z-index: -1;
  1306. }
  1307. &:after {
  1308. content: "";
  1309. display: block;
  1310. position: absolute;
  1311. left: 10px;
  1312. background-image: url("~/assets/svg/right-arrow-default.svg");
  1313. background-position: center;
  1314. background-repeat: no-repeat;
  1315. background-size: 7px 13px;
  1316. width: 24px;
  1317. height: 24px;
  1318. }
  1319. }
  1320. }
  1321. :deep(.swiper-container) {
  1322. .swiper-slide {
  1323. opacity: 0;
  1324. display: flex;
  1325. &.swiper-slide-visible {
  1326. opacity: 1;
  1327. }
  1328. }
  1329. [aria-disabled="true"] {
  1330. opacity: 0;
  1331. &::before {
  1332. display: none;
  1333. }
  1334. &::after {
  1335. display: none;
  1336. }
  1337. }
  1338. }
  1339. .exhibitionDropdownLink {
  1340. &.active {
  1341. background-image: url("@/assets/svg/icon-arrow.svg");
  1342. background-position: right center;
  1343. background-size: 16px;
  1344. background-repeat: no-repeat;
  1345. }
  1346. }
  1347. </style>