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.

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