|
|
@@ -49,6 +49,7 @@ export default{ |
|
|
|
newpassword:'', |
|
|
|
newpassword1:'', |
|
|
|
}, |
|
|
|
codeType:'forgetpwd', |
|
|
|
} |
|
|
|
}, |
|
|
|
destroyed() { |
|
|
@@ -65,7 +66,7 @@ export default{ |
|
|
|
return |
|
|
|
} |
|
|
|
this.LOADING() |
|
|
|
this.HTTP_POST('learun/adms/usernologin/sendcode',{username:this.phone}).then(res=>{ |
|
|
|
this.HTTP_POST('learun/adms/usernologin/sendcode',{username:this.phone,codeType:this.codeType}).then(res=>{ |
|
|
|
this.HIDE_LOADING() |
|
|
|
if(!res){ |
|
|
|
return |
|
|
@@ -90,9 +91,10 @@ export default{ |
|
|
|
return |
|
|
|
} |
|
|
|
this.LOADING('正在校验...') |
|
|
|
let codeResult = await this.HTTP_POST('learun/adms/user/logincodeverify', { |
|
|
|
let codeResult = await this.HTTP_POST('learun/adms/usernologin/logincodeverify', { |
|
|
|
mobile: this.phone, |
|
|
|
verifycode: this.verifycode |
|
|
|
verifycode: this.verifycode, |
|
|
|
codeType: this.codeType |
|
|
|
}) |
|
|
|
this.HIDE_LOADING() |
|
|
|
if(!codeResult)return |
|
|
|