Commit 7381fd08 authored by huangjie's avatar huangjie

*

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