diff --git a/src/components/GuipFormItem.vue b/src/components/GuipFormItem.vue index f38d3b5..e4ab6d1 100644 --- a/src/components/GuipFormItem.vue +++ b/src/components/GuipFormItem.vue @@ -43,7 +43,7 @@ export default { // } }, mounted(){ - console.log(this.required,'required----'); + // console.log(this.required,'required----'); } } diff --git a/src/components/PhoneCode.vue b/src/components/PhoneCode.vue index ccc58d7..90bd4d7 100644 --- a/src/components/PhoneCode.vue +++ b/src/components/PhoneCode.vue @@ -1,75 +1,164 @@ - - - {{ countdownText }} - - - - + }, + // 校验验证码 + validateCode() { + this.$refs.formRef?.validateField(this.codeProp); + }, + // 发送验证码 + sendCode() { + if (!this.canSendCode) return; - \ No newline at end of file + }, + beforeDestroy() { + if (this.timer) clearInterval(this.timer); + }, +}; + + + \ No newline at end of file diff --git a/src/views/Franchise.vue b/src/views/Franchise.vue index 2512e7e..6c3f13b 100644 --- a/src/views/Franchise.vue +++ b/src/views/Franchise.vue @@ -28,7 +28,8 @@ - + @@ -51,39 +52,60 @@ + + 手机号码 - + + + + + + {{ countdown > 0 ? `${countdown}s后重试` : '获取验证码' }} + + + 验证码 - + + + - + - + - + @@ -92,7 +114,7 @@ \ No newline at end of file