保誠-保戶業務員媒合平台
Tomas
2022-07-20 ba6b02708e47a7b55b9533212ee5811d529ad585
fix: [login] resend 機制
修改1個檔案
12 ■■■■■ 已變更過的檔案
PAMapp/pages/login/index.vue 12 ●●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
PAMapp/pages/login/index.vue
@@ -566,10 +566,12 @@
      this.emailCounterSec -= 1;
      if (this.emailResendCounter !== 0) {
        this.emailResendCounter -= 1;
      }
      if (this.emailCounterSec === 0) {
        if (this.emailResendCounter === 0) {
        this.verificationCode = '';
        this.regenerateImgOfVerification();
        }
      }
      if (this.emailCounterSec === 0) {
        clearInterval(this.emailResendInterval);
      }
    }, 1000)
@@ -580,10 +582,12 @@
      this.otpCounterSec -= 1;
      if (this.otpResendCounter !== 0) {
        this.otpResendCounter -= 1;
      }
      if (this.otpCounterSec === 0) {
        if (this.otpResendCounter === 0) {
        this.verificationCode = '';
        this.regenerateImgOfVerification();
        }
      }
      if (this.otpCounterSec === 0) {
        clearInterval(this.otpInterval);
      }
    }, 1000)