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.

59 lines
1.8 KiB

2 years ago
  1. <template>
  2. <v-card width="414px" height="700px" :class=" $vuetify.breakpoint.smAndUp ? 'ml-lg-10 mr-0 mt-sm-10 pt-sm-15 px-sm-7 elevation-0 Neutrals rounded-xl fill-height' : 'pt-15 px-7 elevation-0 Neutrals fill-height' ">
  3. <v-spacer>
  4. <p class="title">{{ $t('Thank you for signing up') }}</p>
  5. <p class="neutrals--text text--darken-5 text-size-14">{{ $t('Your email has been verified') }}</p>
  6. <nuxt-link :to="localePath('/')">
  7. <v-btn width="100%" color="primary" class="border-radius-16 mt-4">
  8. <span class="text-capitalize">{{ $t('Explore with ShowEasy') }}</span>
  9. </v-btn>
  10. </nuxt-link>
  11. <v-spacer class="d-flex justify-center mt-5">
  12. <span class="text-size-12 primary--text" v-html="$t('Go to ShowEasy in sec',{second:this.countdown})"></span>
  13. </v-spacer>
  14. </v-spacer>
  15. </v-card>
  16. </template>
  17. <script>
  18. export default {
  19. auth:false,
  20. layout: 'login',
  21. data() {
  22. return {
  23. countdown: 5
  24. }
  25. },
  26. mounted() {
  27. if (Object.keys(this.$route.query).length >= 2) {
  28. this.$axios.get(`/member/users/verify/${this.$route.query.time_stamp}&${this.$route.query.auth_code}&${this.$route.query.user_mail}?lang=${this.$i18n.locale}`)
  29. .then((result) => {
  30. this.timer = setInterval(() => {
  31. if (this.countdown > 0) { this.countdown-- }
  32. else {
  33. clearInterval(this.timer)
  34. this.$router.push(this.localePath('/'))
  35. }
  36. }, 1000);
  37. })
  38. .catch((err) => {
  39. console.log(err)
  40. });
  41. }
  42. else {
  43. this.$router.push(this.localePath('/'))
  44. }
  45. },
  46. beforeUnmount() {
  47. clearInterval(this.timer)
  48. },
  49. }
  50. </script>
  51. <style lang="scss" scoped>
  52. .title {
  53. font-weight: 700;
  54. font-size: 26px;
  55. line-height: 34px;
  56. letter-spacing: 0.02em;
  57. color: #232323;
  58. }
  59. </style>