diff --git a/pagesOrder/setPayPassword/index.vue b/pagesOrder/setPayPassword/index.vue index 3a98e97..c113ac9 100644 --- a/pagesOrder/setPayPassword/index.vue +++ b/pagesOrder/setPayPassword/index.vue @@ -16,17 +16,16 @@ - - + - + @@ -65,12 +64,11 @@ return regex.test(phone) ? true : false } - const getCode = async () => { if (!checkPhone(form.phone)) return uni.$u.toast('请输入正确的手机号') await getMassageCode() flag.value = false - cutDown.value = 10 + cutDown.value = 60 let timer = setInterval(() => { cutDown.value-- if (cutDown.value <= 0) clearInterval(timer) @@ -103,6 +101,9 @@ } // 键盘事件结束 + + + const submit = async () => { if (!form.code) return uni.$u.toast('请输入验证码'); if (form.password !== form.rePassword) return uni.$u.toast('两次密码不一致');