登录页手机号登录修改

This commit is contained in:
BianLzhaoMin 2024-08-13 10:32:21 +08:00
parent aa91beb649
commit e99d17be57
1 changed files with 29 additions and 13 deletions

View File

@ -135,21 +135,37 @@ export default {
phone: String(that.veriFormData.phone) phone: String(that.veriFormData.phone)
}).then(res => { }).then(res => {
console.log(res); console.log(res);
if(res.data.code !== 200) {
// uni.showToast({
// icon:'none',
// title:res.data.msg
// })
uni.showModal({
title: '提示',//
content: res.data.msg,//
showCancel: false//
})
} else{
that.countDownStatus = 1
that.sendDisabled = true
let timeInterval = setInterval(() => {
that.countDown -= 1
}, 1000)
let timeOut = setTimeout(() => {
that.countDownStatus = 0
that.countDown = 60
that.sendDisabled = false
clearInterval(timeInterval)
clearTimeout(timeOut)
}, 1000 * 60)
}
}).catch(err => { }).catch(err => {
console.log(err); console.log(err);
}) uni.showToast({
that.countDownStatus = 1 icon:'error',
that.sendDisabled = true title:'验证码获取失败'
let timeInterval = setInterval(() => { })
that.countDown -= 1 })
}, 1000)
let timeOut = setTimeout(() => {
that.countDownStatus = 0
that.countDown = 60
that.sendDisabled = false
clearInterval(timeInterval)
clearTimeout(timeOut)
}, 1000 * 60)
} }
}, },
veriSubmit() { veriSubmit() {