...
|
...
|
@@ -57,9 +57,13 @@ const [countdown, startCountdown] = useTimeHandler() |
|
|
|
|
|
const phone = ref('')
|
|
|
|
|
|
const clickGetCodeHandler = async () => await getChangePhonePwdCode({ type: { editphone: 1, editpassword: 2 }[Event.value?.type as string | number] as string | number })
|
|
|
const clickGetCodeHandler = async () => await getChangePhonePwdCode({ phoneNum:phone.value,type: { editphone: 1, editpassword: 2 }[Event.value?.type as string | number] as string | number })
|
|
|
|
|
|
const sendCodeHandler = DebounceBy(() => startCountdown(clickGetCodeHandler), 2000)
|
|
|
const sendCodeHandler = DebounceBy(() => {
|
|
|
if ([null, undefined, ''].includes(phone.value)) return uni.$u.toast('请输入手机号')
|
|
|
if (!/^1[3-9][0-9]{9}$/.test(phone.value)) return uni.$u.toast('请输入正确的手机号')
|
|
|
startCountdown(clickGetCodeHandler)
|
|
|
}, 2000)
|
|
|
|
|
|
const loginAgainHandler = () => {
|
|
|
uni.clearStorageSync()
|
...
|
...
|
|