Commit d3981d9e authored by huangjie122's avatar huangjie122

忘记密码图形验证

parent e5530cb8
...@@ -444,15 +444,15 @@ export default { ...@@ -444,15 +444,15 @@ export default {
phone: this.resetparam.phone, phone: this.resetparam.phone,
code: this.resetparam.smsCode code: this.resetparam.smsCode
}; };
//校验短信验证码
validateSmsCode(param).then(res => {
if (res.code == 200) {
let params = { let params = {
uuid: this.uuid, uuid: this.uuid,
code: this.resetparam.code code: this.resetparam.code
}; };
// 校验图形验证码; // 校验图形验证码;
validateCaptcha(params).then(res => { validateCaptcha(params).then(res => {
if (res.code == 200) {
//校验短信验证码
validateSmsCode(param).then(res => {
if (res.code == 200) { if (res.code == 200) {
this.type = 'tjmm'; this.type = 'tjmm';
} else { } else {
...@@ -517,6 +517,10 @@ export default { ...@@ -517,6 +517,10 @@ export default {
}, },
// 验证手机号发送验证码 // 验证手机号发送验证码
yzPohne(phone) { yzPohne(phone) {
if(phone.length>11){
this.$message.error('请输入正确的手机号!');
return false
}
var param = { var param = {
phone: phone, phone: phone,
type: 1 //0:注册,1:短信登录/忘记密码 type: 1 //0:注册,1:短信登录/忘记密码
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment