提交 012faffc authored 作者: huaxinzhu's avatar huaxinzhu

设置-我的密码-修改登录密码-发送验证码接口提示优化

上级 f85e38c3
...@@ -313,10 +313,10 @@ ...@@ -313,10 +313,10 @@
}, 1000) }, 1000)
} }
getTelphoneCode(this.setForm.name).then(res => { getTelphoneCode(this.setForm.name).then(res => {
if(res.code === 1) { if(res.code == 1) {
this.$message({type:"success",message: '验证码发送成功'}); this.$message({type:"success",message: '验证码发送成功'});
}else { }else {
this.$message({type:"error",message: '验证码发送失败'}); this.$message({type:"error",message: res.message ? res.message : '验证码发送失败'});
} }
}); });
}, },
...@@ -386,7 +386,7 @@ ...@@ -386,7 +386,7 @@
}, },
// 登录密码 确定 // 登录密码 确定
submitLogin(formName) { submitLogin(formName) {
console.log(378,this.loginForm); // console.log(378,this.loginForm);
this.$refs[formName].validate(valid => { this.$refs[formName].validate(valid => {
if (valid) { if (valid) {
changeLoginPassword(this.loginForm).then(res=> { changeLoginPassword(this.loginForm).then(res=> {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论