From f8bb299b9b2aa2afcacdee575dfceb90ffda9024 Mon Sep 17 00:00:00 2001
From: yishiqihuasheng <1191093413@qq.com>
Date: Thu, 17 Aug 2023 14:17:27 +0800
Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E4=B8=BB=E6=8E=88=E6=9D=83?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
jianshui-ui/src/views/freedom/login.vue | 27 ++++++++++++++++++++-----
1 file changed, 22 insertions(+), 5 deletions(-)
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)