From f9cae9b8bd87208b84c247d6d558f51e22755e33 Mon Sep 17 00:00:00 2001 From: chensiAb <chenchenco03@163.com> Date: Mon, 05 Aug 2024 12:00:53 +0800 Subject: [PATCH] feat:验证码输入组件-添加刷新cd回到60秒通知父组件 --- forms/input/CInputPhoneCode.vue | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/forms/input/CInputPhoneCode.vue b/forms/input/CInputPhoneCode.vue index d089588..6037c18 100644 --- a/forms/input/CInputPhoneCode.vue +++ b/forms/input/CInputPhoneCode.vue @@ -50,6 +50,11 @@ }, // 发送请求,通知后端给手机发验证码 onCallPhoneCode: Function, + // 刷新cd 重新刷新回60秒通知父组件更新图片地址 + onRefreshCD: { + type: Function, + default: () => {}, + }, }, data() { return { @@ -79,6 +84,7 @@ if (this.cd === 0) { this.holding = false; this.cd = 60; + this.onRefreshCD(true); } }, 1000); }; -- Gitblit v1.9.1