subPackage/article/signature.vue
@@ -70,7 +70,8 @@ phone: "", text: "获取验证码", imgSrc: "", type: "" type: "", isSendCode: false } }, @@ -158,7 +159,9 @@ // return false; // } // this.sendValidationCode(); if (this.isSendCode) return; let second = 60; this.isSendCode = true; sendCode({ phone: uni.getStorageSync("userInfo").phone, }).then(res => { @@ -168,9 +171,12 @@ this.text = `${second}秒后获取` if (second == 0 || this.data.isLogin) { clearInterval(time); this.isSendCode = false; this.text = "获取验证码"; } }, 1000) } else { this.isSendCode = false; } }) },