保誠-保戶業務員媒合平台
Tomas
2022-08-28 9f9b7a95f358aafae44557336d7015ef98bd5634
PAMapp/pages/login/index.vue
@@ -336,7 +336,7 @@
<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';
@@ -399,6 +399,20 @@
  applyAccount_onAction = false;
  previousPath = '';
  @Watch('onEmailVerifyResendStatus')
  onEmailVerifyResendStatusChange() {
    if (this.onEmailVerifyResendStatus === 'APPLY_OTP') {
      this.regenerateImgOfVerification();
    }
  }
  @Watch('onPhoneVerifyStep')
  onPhoneVerifyStepChange() {
    if (this.onPhoneVerifyStep === 'APPLY_OTP') {
        this.regenerateImgOfVerification();
    }
  }
  /////////////////////////////////////////////////////
@@ -571,7 +585,7 @@
      if (this.emailResendCounter !== 0) {
        this.emailResendCounter -= 1;
        if (this.emailResendCounter === 0) {
          this.regenerateImgOfVerification();
          // this.regenerateImgOfVerification();
        }
      }
      if (this.emailCounterSec === 0) {
@@ -586,7 +600,7 @@
      if (this.otpResendCounter !== 0) {
        this.otpResendCounter -= 1;
        if (this.otpResendCounter === 0) {
          this.regenerateImgOfVerification();
          // this.regenerateImgOfVerification();
        }
      }
      if (this.otpCounterSec === 0) {
@@ -611,7 +625,6 @@
      this.emailOtpCode = '';
    }
    this.removeOtpTime();
    this.regenerateImgOfVerification();
  }
  private resetOtpSetting(type: string) {