Commit 7381fd08 authored by huangjie's avatar huangjie

*

parent 3f8f3d11
......@@ -24,6 +24,7 @@
<el-form-item prop="captchaCode" v-if="captchaEnabled">
<el-input
v-model="dxform.captchaCode"
@focus="getCode"
auto-complete="off"
placeholder="请输入图形验证码"
style="width: 196px;float: left;"
......@@ -92,6 +93,7 @@
v-model="loginForm.code"
auto-complete="off"
placeholder="请输入图形验证码"
@focus="getCode"
style="width: 196px;float: left;"
@keyup.enter.native="handleLogin"
>
......@@ -130,6 +132,7 @@
<el-form-item prop="captchaCode" v-if="captchaEnabled && showcode">
<el-input
v-model="dxform.captchaCode"
@focus="getCode"
auto-complete="off"
placeholder="请输入验证码"
style="width: 196px;float: left;"
......@@ -272,8 +275,8 @@
if(this.nosend == true){
return false
}
// logincaptchaSms(this.dxform).then(res=>{
// if(res.code == 200){
logincaptchaSms(this.dxform).then(res=>{
if(res.code == 200){
this.$message.success('已发送短信!')
let _this = this
......@@ -288,14 +291,14 @@
_this.smstime = 60
}
},1000)
// }else{
// this.$message.error(res.msg)
// this.getCode()
// this.showcode = true
// }
// }).catch(res=>{
// this.$message.error(res.msg)
// })
}else{
this.$message.error(res.msg)
this.getCode()
this.showcode = true
}
}).catch(res=>{
this.$message.error(res.msg)
})
},
handleLogin() {
this.$refs.loginForm.validate(valid => {
......
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