Welcome
@@ -129,7 +130,7 @@ layout("/mobile/platform.html"){
style="margin-top: 30px" maxlength="6" clearable>
- {{ codeMsg }}
+ {{ codeMsg }}
@@ -139,7 +140,7 @@ layout("/mobile/platform.html"){
登 录
+ @click="doLogin">登 录
@@ -251,7 +252,9 @@ layout("/mobile/platform.html"){
Object.assign(this.formData, captcha);
const resp = await this.validVerify()
if(resp.code === 0) {
- await this.doLogin();
+ console.log('success')
+ this.isShowSliderVerify = false;
+ await this.sendCode();
} else {
this.$refs.sliderVerify.verifyFailEvent(resp.msg);
}
@@ -274,10 +277,6 @@ layout("/mobile/platform.html"){
vue.$notify({type: 'warning', message: '请填写手机号'});
return
}
- if (this.isNull(this.formData.platformCaptcha)) {
- vue.$notify({type: 'warning', message: '请填写手机动态码'});
- return
- }
this.isShowSliderVerify = true;
},
doLogin() {
diff --git a/src/main/resources/views/platform/sys/login.html b/src/main/resources/views/platform/sys/login.html
index 87cf715..9a297d1 100644
--- a/src/main/resources/views/platform/sys/login.html
+++ b/src/main/resources/views/platform/sys/login.html
@@ -235,14 +235,14 @@
-
- {{ codeMsg }}
+
+ {{ codeMsg }}
登 录
@@ -385,7 +385,8 @@
Object.assign(this.loginForm, captcha);
const resp = await this.validVerify()
if(resp.code === 0) {
- await this.doLogin();
+ this.isShowSliderVerify = false
+ await this.sendCode();
} else {
this.$refs.sliderVerify.verifyFailEvent(resp.msg);
}
@@ -413,10 +414,11 @@
});
},
handleLogin() {
- let self = this;
- self.$refs.loginForm.validate((flag) => {
- self.isShowSliderVerify = flag;
- });
+ this.$refs.loginForm.validateField('mobile', async (valid) => {
+ if(!valid) {
+ this.isShowSliderVerify = true;
+ }
+ })
},
async doLogin() {
const valid = await this.$refs['loginForm'].validate()