@@ -7,11 +7,10 @@ export default { | |||||
"enableSignUp": true, | "enableSignUp": true, | ||||
//请求数据的接口地址;可以配置多个,开发环境下登录页会出现选择菜单供您选择 | //请求数据的接口地址;可以配置多个,开发环境下登录页会出现选择菜单供您选择 | ||||
"apiHost": [ | "apiHost": [ | ||||
"http://112.45.152.8:8083/" | |||||
// "http://123.57.209.16:31173/" | |||||
// "http://112.45.152.8:8083/" | |||||
// "http://112.45.152.8:8083/" | |||||
"http://192.168.10.56:8088/" | |||||
], | ], | ||||
"webHost":"http://112.45.152.8:8000/", | |||||
"webHost":"http://192.168.10.56:8087/", | |||||
// "webHost":"http://112.45.152.8:8000/", | // "webHost":"http://112.45.152.8:8000/", | ||||
// 开发环境下自动填充登录账号密码,与接口地址一一对应,只在开发环境下显示 | // 开发环境下自动填充登录账号密码,与接口地址一一对应,只在开发环境下显示 | ||||
"devAccount": [ | "devAccount": [ | ||||
@@ -49,6 +49,7 @@ export default{ | |||||
newpassword:'', | newpassword:'', | ||||
newpassword1:'', | newpassword1:'', | ||||
}, | }, | ||||
codeType:'forgetpwd', | |||||
} | } | ||||
}, | }, | ||||
destroyed() { | destroyed() { | ||||
@@ -65,7 +66,7 @@ export default{ | |||||
return | return | ||||
} | } | ||||
this.LOADING() | 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() | this.HIDE_LOADING() | ||||
if(!res){ | if(!res){ | ||||
return | return | ||||
@@ -90,9 +91,10 @@ export default{ | |||||
return | return | ||||
} | } | ||||
this.LOADING('正在校验...') | 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, | mobile: this.phone, | ||||
verifycode: this.verifycode | |||||
verifycode: this.verifycode, | |||||
codeType: this.codeType | |||||
}) | }) | ||||
this.HIDE_LOADING() | this.HIDE_LOADING() | ||||
if(!codeResult)return | if(!codeResult)return | ||||