| | |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="pam-paragraph"> |
| | | <div class="pam-paragraph" v-if="(!showPhoneOtpCodeField && !showEmailVerifyField)"> |
| | | <div class="pam-consultant-login__title"> |
| | | <div>驗證碼 <span class="text--dark-blue fs-16">(區分大小寫)</span></div> |
| | | <div>圖型驗證碼 <span class="text--dark-blue fs-16">(區分大小寫)</span></div> |
| | | <div class="text--primary fs-16 cursor--pointer fix-chrome-click--issue" |
| | | style="margin-left: 16px" |
| | | @click="regenerateImgOfVerification">重新產生</div> |
| | |
| | | v-if="otpResendCounter !== 0" |
| | | >({{ otpResendCounter }})</span> |
| | | </el-button> |
| | | |
| | | </el-row> |
| | | </div> |
| | | |
| | | <el-row> |
| | | <el-button |
| | | v-if="onPhoneVerifyStep === 'APPLY_OTP'" |
| | | :disabled="!phoneNumber || !phoneValid || !verificationCode || verificationCode.length !== 4" |
| | | :disabled="!phoneNumber || !phoneValid || verificationCode.length !== 4" |
| | | @click="applyOtpVerification('MOBILE')" |
| | | icon="icon-arrow" |
| | | > |
| | | 發送驗證碼 |
| | | 發送 OTP 驗證碼 |
| | | </el-button> |
| | | </el-row> |
| | | |
| | |
| | | </el-button> |
| | | </el-row> |
| | | |
| | | <el-row v-show="!showEmailVerifyField"> |
| | | <el-row> |
| | | <el-button |
| | | :disabled="!email || !emailValid || !verificationCode || verificationCode.length !== 4" |
| | | v-if="onEmailVerifyResendStatus === 'APPLY_OTP'" |
| | | :disabled="!email || !emailValid || verificationCode.length !== 4" |
| | | @click="applyOtpVerification('EMAIL')" |
| | | icon="icon-arrow" |
| | | > |
| | | 發送驗證碼 |
| | | 發送 OTP 驗證碼 |
| | | </el-button> |
| | | </el-row> |
| | | </template> |
| | |
| | | |
| | | resentOtp(type: string) { |
| | | this.resetOtpSetting(type); |
| | | this.applyOtpVerification(type); |
| | | } |
| | | |
| | | deleteOtpInfo(type: string) { |
| | |
| | | clearInterval(this.otpInterval); |
| | | this.otpResendCounter = 30; |
| | | this.otpCounterSec = 300; |
| | | this.onPhoneVerifyStep = 'APPLY_OTP'; |
| | | } else { |
| | | clearInterval(this.emailResendInterval); |
| | | this.emailResendCounter = 30; |
| | | this.emailCounterSec = 300; |
| | | this.onEmailVerifyResendStatus = 'APPLY_OTP'; |
| | | } |
| | | } |
| | | |