diff --git a/jianshui-ui/src/views/freedom/login.vue b/jianshui-ui/src/views/freedom/login.vue
index e35a404..2be7c6a 100644
--- a/jianshui-ui/src/views/freedom/login.vue
+++ b/jianshui-ui/src/views/freedom/login.vue
@@ -2,7 +2,7 @@
自主授权登陆
-
+
@@ -166,7 +166,8 @@ export default {
// { type: 'array', required: true, message: '请勾选同意协议', trigger: 'change' }
]
},
- loading : false
+ loading : false,
+ loadingone: false
};
},
methods: {
@@ -177,16 +178,23 @@ export default {
this.ruleForm.nsrInfo.dlsfmm = this.ruleForm.nsrInfo.gsnsmm;
this.ruleForm.nsrInfo.bsryxz = this.ruleForm.nsrInfo.zjh;
this.ruleForm.nsrInfo.gsnsyhm = this.ruleForm.nsrInfo.zjh;
+ this.loadingone = true;
login(this.ruleForm).then(res=>{
if (res.code == 200){
this.ruleForm.traceno = res.msg;
- this.ruleForm.showone = false;
- this.ruleForm.showtwo = true;
- this.ruleForm.showthree = false;
+ let timer = setInterval(() => {
+ this.fun(timer)
+ }, 5000)
}else {
+ this.loadingone = false;
this.$alert("登陆失败,失败原因"+res.msg+"")
}
+ }).catch(()=>{
+ this.loadingone = false;
+ this.ruleForm.showone = true;
+ this.ruleForm.showtwo = false;
+ this.ruleForm.showthree = false;
});
} else {
console.log('error submit!!');
@@ -229,6 +237,14 @@ export default {
this.ruleForm.showtwo = false;
this.ruleForm.showthree = true;
this.loading = false;
+ this.loadingone = false;
+ clearInterval(timer)
+ }else if(res.msg == "10011"){
+ this.ruleForm.showone = false;
+ this.ruleForm.showtwo = true;
+ this.ruleForm.showthree = false;
+ this.loadingone = false;
+ this.loading = false;
clearInterval(timer)
}
}).catch(()=>{
@@ -236,6 +252,7 @@ export default {
this.ruleForm.showtwo = true;
this.ruleForm.showthree = false;
this.loading = false;
+ this.loadingone = false;
clearInterval(timer)
});
}, 0)