|
@@ -83,15 +83,15 @@
|
|
</a-tab-pane> -->
|
|
</a-tab-pane> -->
|
|
</a-tabs>
|
|
</a-tabs>
|
|
|
|
|
|
- <a-form-item>
|
|
|
|
|
|
+ <!-- <a-form-item>
|
|
<a-checkbox v-decorator="['rememberMe', {initialValue: true, valuePropName: 'checked'}]" >自动登录</a-checkbox>
|
|
<a-checkbox v-decorator="['rememberMe', {initialValue: true, valuePropName: 'checked'}]" >自动登录</a-checkbox>
|
|
- <!-- <router-link :to="{ name: 'alteration'}" class="forge-password" style="float: right;">
|
|
|
|
|
|
+ <router-link :to="{ name: 'alteration'}" class="forge-password" style="float: right;">
|
|
忘记密码
|
|
忘记密码
|
|
</router-link>
|
|
</router-link>
|
|
<router-link :to="{ name: 'register'}" class="forge-password" style="float: right;margin-right: 10px" >
|
|
<router-link :to="{ name: 'register'}" class="forge-password" style="float: right;margin-right: 10px" >
|
|
注册账户
|
|
注册账户
|
|
- </router-link> -->
|
|
|
|
- </a-form-item>
|
|
|
|
|
|
+ </router-link>
|
|
|
|
+ </a-form-item> -->
|
|
|
|
|
|
<a-form-item style="margin-top:24px">
|
|
<a-form-item style="margin-top:24px">
|
|
<a-button
|
|
<a-button
|
|
@@ -101,7 +101,7 @@
|
|
class="login-button"
|
|
class="login-button"
|
|
:loading="loginBtn"
|
|
:loading="loginBtn"
|
|
@click.stop.prevent="handleSubmit"
|
|
@click.stop.prevent="handleSubmit"
|
|
- :disabled="loginBtn">确定
|
|
|
|
|
|
+ :disabled="loginBtn">登录
|
|
</a-button>
|
|
</a-button>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-form>
|
|
</a-form>
|
|
@@ -167,6 +167,7 @@
|
|
currdatetime:'',
|
|
currdatetime:'',
|
|
randCodeImage:'',
|
|
randCodeImage:'',
|
|
requestCodeSuccess:false,
|
|
requestCodeSuccess:false,
|
|
|
|
+ code:"",
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created () {
|
|
created () {
|
|
@@ -174,6 +175,17 @@
|
|
Vue.ls.remove(ACCESS_TOKEN)
|
|
Vue.ls.remove(ACCESS_TOKEN)
|
|
this.getRouterData();
|
|
this.getRouterData();
|
|
this.handleChangeCheckCode();
|
|
this.handleChangeCheckCode();
|
|
|
|
+ // const token = Vue.ls.get(ACCESS_TOKEN)
|
|
|
|
+ // if(token!=null&&token!=""){
|
|
|
|
+
|
|
|
|
+ // }else{
|
|
|
|
+ // var urls = location.search;
|
|
|
|
+ // console.log(urls)
|
|
|
|
+ // var ts=urls.split("?");
|
|
|
|
+ // var tts=ts[1].split("&");
|
|
|
|
+ // var sct=tts[0].split("=");
|
|
|
|
+ // this.code=sct[1];
|
|
|
|
+ // }
|
|
// update-begin- --- author:scott ------ date:20190805 ---- for:密码加密逻辑暂时注释掉,有点问题
|
|
// update-begin- --- author:scott ------ date:20190805 ---- for:密码加密逻辑暂时注释掉,有点问题
|
|
//this.getEncrypte();
|
|
//this.getEncrypte();
|
|
// update-end- --- author:scott ------ date:20190805 ---- for:密码加密逻辑暂时注释掉,有点问题
|
|
// update-end- --- author:scott ------ date:20190805 ---- for:密码加密逻辑暂时注释掉,有点问题
|
|
@@ -223,6 +235,12 @@
|
|
that.loginBtn = false;
|
|
that.loginBtn = false;
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
+ // loginParams.username = this.code;
|
|
|
|
+ // that.Login(loginParams).then((res) => {
|
|
|
|
+ // this.$refs.loginSelect.show(res.result)
|
|
|
|
+ // }).catch((err) => {
|
|
|
|
+ // that.requestFailed(err);
|
|
|
|
+ // });
|
|
// 使用手机号登录
|
|
// 使用手机号登录
|
|
} else {
|
|
} else {
|
|
that.form.validateFields([ 'mobile', 'captcha', 'rememberMe' ], { force: true }, (err, values) => {
|
|
that.form.validateFields([ 'mobile', 'captcha', 'rememberMe' ], { force: true }, (err, values) => {
|