commit
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -235,14 +235,14 @@
|
|||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item prop="platformCaptcha">
|
<el-form-item prop="platformCaptcha">
|
||||||
<el-input @keyup.enter.native="doLogin" placeholder="请输入手机动态码" prefix-icon="el-icon-unlock" v-model="loginForm.platformCaptcha">
|
<el-input placeholder="请输入手机动态码" prefix-icon="el-icon-unlock" v-model="loginForm.platformCaptcha">
|
||||||
<el-button @click="sendCode()" type="primary" slot="append">{{ codeMsg }}</el-button>
|
<el-button @click="handleLogin" type="primary" slot="append">{{ codeMsg }}</el-button>
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button :disabled="disabled"
|
<el-button :disabled="disabled"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
@click.native.prevent="handleLogin"
|
@click.native.prevent="doLogin"
|
||||||
class="login-button"
|
class="login-button"
|
||||||
type="primary">
|
type="primary">
|
||||||
<span v-if="!loading">登 录</span>
|
<span v-if="!loading">登 录</span>
|
||||||
@@ -385,7 +385,8 @@
|
|||||||
Object.assign(this.loginForm, captcha);
|
Object.assign(this.loginForm, captcha);
|
||||||
const resp = await this.validVerify()
|
const resp = await this.validVerify()
|
||||||
if(resp.code === 0) {
|
if(resp.code === 0) {
|
||||||
await this.doLogin();
|
this.isShowSliderVerify = false
|
||||||
|
await this.sendCode();
|
||||||
} else {
|
} else {
|
||||||
this.$refs.sliderVerify.verifyFailEvent(resp.msg);
|
this.$refs.sliderVerify.verifyFailEvent(resp.msg);
|
||||||
}
|
}
|
||||||
@@ -413,10 +414,11 @@
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleLogin() {
|
handleLogin() {
|
||||||
let self = this;
|
this.$refs.loginForm.validateField('mobile', async (valid) => {
|
||||||
self.$refs.loginForm.validate((flag) => {
|
if(!valid) {
|
||||||
self.isShowSliderVerify = flag;
|
this.isShowSliderVerify = true;
|
||||||
});
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
async doLogin() {
|
async doLogin() {
|
||||||
const valid = await this.$refs['loginForm'].validate()
|
const valid = await this.$refs['loginForm'].validate()
|
||||||
|
|||||||
Reference in New Issue
Block a user