From 760eaf080df633ad955975e81ef388b4f761559f Mon Sep 17 00:00:00 2001 From: Lee-1203 <342694918@qq.com> Date: Wed, 9 Mar 2022 16:38:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/login.vue | 7 +------ src/views/login/verification.vue | 14 +++++++++++++- src/views/user/ucenter/index.vue | 2 +- 3 files changed, 15 insertions(+), 8 deletions(-) diff --git a/src/views/login.vue b/src/views/login.vue index 8b1da94..7d737d3 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -160,12 +160,7 @@ phone: this.phoneNumber }) .then(function(res) { - if(res.data.data.registered == 0){ - this.phoneLogin(); - }else if(res.data.data.registered == 1){ - that.openPhoneTips = true; - that.tipsMsg = '账号已存在,是否继续登录'; - } + that.phoneLogin(); }) .catch(function(error) { console.log(error); diff --git a/src/views/login/verification.vue b/src/views/login/verification.vue index c643324..3ad25c5 100644 --- a/src/views/login/verification.vue +++ b/src/views/login/verification.vue @@ -30,6 +30,11 @@
获取验证码
+ +
+
+

{{toastText}}

+
@@ -56,6 +61,8 @@ count: "", //剩余时间 timer: null, userType: 0, + isToast:false, + toastText:'' }; }, beforeCreate() {}, @@ -111,7 +118,12 @@ that.$router.push('/index'); } } else { - window.alert(res.msg); + that.toastText = '验证码错误!'; + that.sms_code = ''; + that.isToast = true; + setTimeout(()=> { + that.isToast = false + }, 1000) } }) .catch(function(error) { diff --git a/src/views/user/ucenter/index.vue b/src/views/user/ucenter/index.vue index 1b7dd2c..4efba8a 100644 --- a/src/views/user/ucenter/index.vue +++ b/src/views/user/ucenter/index.vue @@ -132,7 +132,7 @@ this.axios.post(this.HOME + "/api/evaluation/evaluation-list", { page: "1", size: "100", - status: "" + status: "done" }).then(function(res) { that.reportData = res.data.data.list; console.log(that.reportData,555)