feat: 新增修改手机号、修改邮箱、修改密码、修改基本信息

This commit is contained in:
2024-04-27 15:05:00 +08:00
parent 136f07c8e4
commit 99498a3e54
14 changed files with 394 additions and 188 deletions

View File

@@ -77,8 +77,10 @@ const handleLogin = async () => {
}
}
const captchaTime = ref(60)
const captchaTimer = ref()
const captchaTime = ref(60)
const captchaBtnName = ref('获取验证码')
const captchaDisable = ref(false)
// 重置验证码
const resetCaptcha = () => {
window.clearInterval(captchaTimer.value)
@@ -87,15 +89,13 @@ const resetCaptcha = () => {
captchaDisable.value = false
}
const captchaBtnName = ref('获取验证码')
const captchaLoading = ref(false)
const captchaDisable = ref(false)
// 获取验证码
const onCaptcha = async () => {
if (captchaLoading.value) return
const isInvalid = await formRef.value?.validateField('phone')
if (isInvalid) return
try {
if (captchaLoading.value) return
const isInvalid = await formRef.value?.validateField('phone')
if (isInvalid) return
captchaLoading.value = true
captchaBtnName.value = '发送中...'
// await getSmsCaptcha({