登录页手机号登录修改

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,9 +135,17 @@ export default {
phone: String(that.veriFormData.phone) phone: String(that.veriFormData.phone)
}).then(res => { }).then(res => {
console.log(res); console.log(res);
}).catch(err => { if(res.data.code !== 200) {
console.log(err); // uni.showToast({
// icon:'none',
// title:res.data.msg
// })
uni.showModal({
title: '提示',//
content: res.data.msg,//
showCancel: false//
}) })
} else{
that.countDownStatus = 1 that.countDownStatus = 1
that.sendDisabled = true that.sendDisabled = true
let timeInterval = setInterval(() => { let timeInterval = setInterval(() => {
@ -151,6 +159,14 @@ export default {
clearTimeout(timeOut) clearTimeout(timeOut)
}, 1000 * 60) }, 1000 * 60)
} }
}).catch(err => {
console.log(err);
uni.showToast({
icon:'error',
title:'验证码获取失败'
})
})
}
}, },
veriSubmit() { veriSubmit() {
let that = this let that = this