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.

112 lines
3.4 KiB

2 years ago
2 years ago
2 years ago
  1. <template>
  2. <v-navigation-drawer temporary v-model="drawerAcitve" app :width="$vuetify.breakpoint.smAndUp ? '668px' : '334px'"
  3. v-click-outside="closeDrawer">
  4. <v-card :width="$vuetify.breakpoint.smAndUp ? '668px' : '334px'" class="pt-10 elevation-0 px-10">
  5. <div :class="
  6. $vuetify.breakpoint.smOnly
  7. ? 'primary--text text-size-20 font-weight-medium pt-10 px-7 pb-5'
  8. : 'primary--text text-size-14 font-weight-medium pt-10 px-7 pb-5'
  9. ">
  10. <nuxt-link :to="localePath('/exhibition')" class="remove-underline">{{
  11. $t("Exhibition")
  12. }}</nuxt-link>
  13. </div>
  14. <v-divider class="my-3"></v-divider>
  15. <!-- <div class="primary--text text-size-20 font-weight-medium pt-5 px-7 pb-5">
  16. {{ $t('Service') }}
  17. </div> -->
  18. <!-- <div v-for="(item,index) in contents" class="text-size-20 py-5 pe-7 ps-15">
  19. {{ item }}
  20. </div> -->
  21. <!-- <v-divider class="my-3"></v-divider> -->
  22. <div class="pt-5 px-7 pb-5">
  23. <a v-if="$i18n.locale == 'zh-tw'" href="https://medium.com/showeasy" target="_blank" :class="
  24. $vuetify.breakpoint.smOnly
  25. ? 'remove-underline primary--text text-size-20 font-weight-medium'
  26. : 'remove-underline primary--text text-size-16 font-weight-medium'
  27. ">{{ $t("Blog") }}</a>
  28. <a v-else href="https://medium.com/showeasy-eng" target="_blank" :class="
  29. $vuetify.breakpoint.smOnly
  30. ? 'remove-underline primary--text text-size-20 font-weight-medium'
  31. : 'remove-underline primary--text text-size-16 font-weight-medium'
  32. ">{{ $t("Blog") }}</a>
  33. </div>
  34. <v-divider class="mt-3"></v-divider>
  35. <v-spacer style="padding-top: 160px" class="flex-column align-end">
  36. <v-select outlined hide-details :items="$i18n.locales" item-text="text" item-value="code" v-model="lang"
  37. class="border-radius-16 mb-5"></v-select>
  38. <nuxt-link class="remove-underline" :to="localePath('/faq')">
  39. <v-btn height="56px" width="100%" outlined hide-details class="border-radius-16 justify-start"
  40. style="border-color: rgba(0, 0, 0, 0.42)">
  41. {{ $t("Help") }}
  42. </v-btn>
  43. </nuxt-link>
  44. </v-spacer>
  45. </v-card>
  46. </v-navigation-drawer>
  47. </template>
  48. <script>
  49. import changeCurrency from "@/components/dropdown/changeCurrency.vue";
  50. export default {
  51. data() {
  52. return {
  53. lang: "en",
  54. };
  55. },
  56. components: {
  57. changeCurrency,
  58. },
  59. computed: {
  60. drawerAcitve: {
  61. get() {
  62. return this.$store.getters.getDrawerStatus;
  63. },
  64. set() { },
  65. },
  66. },
  67. created() {
  68. this.$i18n.locale === "en" ? (this.lang = "en") : (this.lang = "zh-tw");
  69. // this.contents = [
  70. // "Rental cars",
  71. // "Flower",
  72. // "Hotel",
  73. // "SIM Card",
  74. // ];
  75. },
  76. methods: {
  77. closeDrawer() {
  78. if (this.$store.getters.getDrawerStatus === true) {
  79. this.$store.dispatch("toggleDrawer", flase);
  80. }
  81. },
  82. },
  83. watch: {
  84. lang: {
  85. handler: function () {
  86. if (this.lang === "en") {
  87. this.$i18n.setLocale(this.lang);
  88. } else {
  89. this.$i18n.setLocale(this.lang);
  90. }
  91. },
  92. },
  93. },
  94. };
  95. </script>
  96. <style lang="scss" scoped>
  97. .drawer {
  98. position: fixed;
  99. z-index: 10 !important;
  100. }
  101. .drawer-title {
  102. font-weight: 500;
  103. font-size: 14px;
  104. line-height: 20px;
  105. letter-spacing: 0.02em;
  106. color: #ee9546;
  107. }
  108. </style>