| | |
| | | <el-row type="flex" class="pt-30"> |
| | | <el-button |
| | | :class="{ 'active': connectDevice === 'MOBILE'}" |
| | | @click="connectDevice = 'MOBILE'">手機號碼</el-button> |
| | | @click="connectDevice = 'MOBILE'; regenerateImgOfVerification()">手機號碼</el-button> |
| | | <el-button |
| | | :class="{ 'active': connectDevice === 'EMAIL'}" |
| | | @click="connectDevice = 'EMAIL'">Email</el-button> |
| | | @click="connectDevice = 'EMAIL'; regenerateImgOfVerification()">Email</el-button> |
| | | </el-row> |
| | | </div> |
| | | |
| | |
| | | |
| | | <script lang="ts"> |
| | | import { namespace } from 'nuxt-property-decorator'; |
| | | import { Vue, Component, Ref } from 'vue-property-decorator'; |
| | | import { Vue, Component, Ref, Watch } from 'vue-property-decorator'; |
| | | import { OtpErrorCode } from '~/shared/models/enum/otpErrorCode'; |
| | | import { Role } from '~/shared/models/enum/Role'; |
| | | import { LoginRequest } from '~/shared/models/loginRequest.model'; |
| | |
| | | applyAccount_onAction = false; |
| | | |
| | | previousPath = ''; |
| | | |
| | | @Watch('onEmailVerifyResendStatus') |
| | | onEmailVerifyResendStatusChange() { |
| | | if (this.onEmailVerifyResendStatus === 'APPLY_OTP') { |
| | | this.regenerateImgOfVerification(); |
| | | } |
| | | } |
| | | |
| | | @Watch('onPhoneVerifyStep') |
| | | onPhoneVerifyStepChange() { |
| | | if (this.onPhoneVerifyStep === 'APPLY_OTP') { |
| | | this.regenerateImgOfVerification(); |
| | | } |
| | | } |
| | | |
| | | ///////////////////////////////////////////////////// |
| | | |
| | |
| | | if (this.emailResendCounter !== 0) { |
| | | this.emailResendCounter -= 1; |
| | | if (this.emailResendCounter === 0) { |
| | | this.regenerateImgOfVerification(); |
| | | // this.regenerateImgOfVerification(); |
| | | } |
| | | } |
| | | if (this.emailCounterSec === 0) { |
| | |
| | | if (this.otpResendCounter !== 0) { |
| | | this.otpResendCounter -= 1; |
| | | if (this.otpResendCounter === 0) { |
| | | this.regenerateImgOfVerification(); |
| | | // this.regenerateImgOfVerification(); |
| | | } |
| | | } |
| | | if (this.otpCounterSec === 0) { |
| | |
| | | this.emailOtpCode = ''; |
| | | } |
| | | this.removeOtpTime(); |
| | | this.regenerateImgOfVerification(); |
| | | } |
| | | |
| | | private resetOtpSetting(type: string) { |