登录页手机号登录修改
This commit is contained in:
parent
aa91beb649
commit
e99d17be57
|
|
@ -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({
|
||||||
|
icon:'error',
|
||||||
|
title:'验证码获取失败'
|
||||||
|
})
|
||||||
})
|
})
|
||||||
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)
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
veriSubmit() {
|
veriSubmit() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue