Commit d3981d9e authored by huangjie122's avatar huangjie122

忘记密码图形验证

parent e5530cb8
......@@ -444,15 +444,15 @@ export default {
phone: this.resetparam.phone,
code: this.resetparam.smsCode
};
//校验短信验证码
validateSmsCode(param).then(res => {
let params = {
uuid: this.uuid,
code: this.resetparam.code
};
// 校验图形验证码;
validateCaptcha(params).then(res => {
if (res.code == 200) {
let params = {
uuid: this.uuid,
code: this.resetparam.code
};
// 校验图形验证码;
validateCaptcha(params).then(res => {
//校验短信验证码
validateSmsCode(param).then(res => {
if (res.code == 200) {
this.type = 'tjmm';
} else {
......@@ -517,6 +517,10 @@ export default {
},
// 验证手机号发送验证码
yzPohne(phone) {
if(phone.length>11){
this.$message.error('请输入正确的手机号!');
return false
}
var param = {
phone: phone,
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