From f8e4e400cb5b4ff78de23a0e93a37e0249111068 Mon Sep 17 00:00:00 2001 From: yishiqihuasheng <1191093413@qq.com> Date: Tue, 15 Aug 2023 17:08:26 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E8=87=AA=E5=8A=A8=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 | 38 +++++++++++++++++++++---- 1 file changed, 32 insertions(+), 6 deletions(-) diff --git a/jianshui-ui/src/views/freedom/login.vue b/jianshui-ui/src/views/freedom/login.vue index c7e62f1..d8454b2 100644 --- a/jianshui-ui/src/views/freedom/login.vue +++ b/jianshui-ui/src/views/freedom/login.vue @@ -2,7 +2,7 @@

自主授权登陆

- + @@ -82,7 +82,7 @@ - +

短信验证码已发送,请提交短信验证码

@@ -92,6 +92,17 @@ 返回授权
+ + + + + + + + +

授权成功,任务可能需要5-10分钟,请耐心等待...

+ 返回授权 +
@@ -110,7 +121,9 @@ return { ruleForm: { smsCode : "", - show : true, + showone : true, + showtwo : false, + showthree : false, nsrsbh: '', nsrdq: '', loginType: '1', @@ -166,7 +179,9 @@ login(this.ruleForm).then(res=>{ if (res.code == 200){ this.ruleForm.traceno = res.msg; - this.ruleForm.show = false; + this.ruleForm.showone = false; + this.ruleForm.showtwo = true; + this.ruleForm.showthree = false; }else { this.$alert("登陆失败,失败原因"+res.msg+"") } @@ -180,13 +195,24 @@ }, submitFormWithMsgCode(){ submitNote(this.ruleForm.traceno,this.ruleForm.nsrsbh,this.ruleForm.smsCode,this.ruleForm.nsrInfo.zjh) - .then(); + .then(res=>{ + if (res.data.code == "S000"){ + this.ruleForm.showone = false; + this.ruleForm.showtwo = false; + this.ruleForm.showthree = true; + + }else { + alter(res.data.msg) + } + }); }, resetForm(formName) { this.$refs[formName].resetFields(); }, changeShow(){ - this.ruleForm.show = true; + this.ruleForm.showone = true; + this.ruleForm.showtwo = false; + this.ruleForm.showthree = false; } } From ca41741e6e1b7f1c30d88dc9a084fe8a323ecaf7 Mon Sep 17 00:00:00 2001 From: yishiqihuasheng <1191093413@qq.com> Date: Tue, 15 Aug 2023 18:28:41 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E8=87=AA=E5=8A=A8=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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jianshui-ui/src/views/freedom/login.vue b/jianshui-ui/src/views/freedom/login.vue index d8454b2..1fd66a7 100644 --- a/jianshui-ui/src/views/freedom/login.vue +++ b/jianshui-ui/src/views/freedom/login.vue @@ -196,13 +196,13 @@ submitFormWithMsgCode(){ submitNote(this.ruleForm.traceno,this.ruleForm.nsrsbh,this.ruleForm.smsCode,this.ruleForm.nsrInfo.zjh) .then(res=>{ - if (res.data.code == "S000"){ + if (res.code == "200"){ this.ruleForm.showone = false; this.ruleForm.showtwo = false; this.ruleForm.showthree = true; }else { - alter(res.data.msg) + alter("请求失败请重试") } }); },