From 056b30bc82ae9ccfaf82fd6b7be4e3b98264707d Mon Sep 17 00:00:00 2001 From: youngS Date: Fri, 23 Apr 2021 11:34:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=B8=AA=E4=BA=BA=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E4=BF=AE=E6=94=B9=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fir_client/src/components/FirLogin.vue | 9 ++-- fir_client/src/components/FirRegist.vue | 15 ++---- .../user/FirUserProfileCertification.vue | 36 +++++++------- .../components/user/FirUserProfileInfo.vue | 49 ++++++++++++++----- fir_client/src/restful/index.js | 17 ++++++- fir_ser/api/urls.py | 3 +- fir_ser/api/utils/utils.py | 2 +- fir_ser/api/views/login.py | 19 ++++++- fir_ser/fir_ser/settings.py | 19 +++++-- 9 files changed, 114 insertions(+), 55 deletions(-) diff --git a/fir_client/src/components/FirLogin.vue b/fir_client/src/components/FirLogin.vue index d7aa621..c3f19aa 100644 --- a/fir_client/src/components/FirLogin.vue +++ b/fir_client/src/components/FirLogin.vue @@ -35,17 +35,17 @@ + show-password clearable/> + show-password clearable/> + @keyup.enter.native="onSubmit" clearable/> 6) { let params = { "username": email, @@ -235,6 +233,7 @@ this.cptch = data.data; this.allow_ways = data.data.login_type; this.register_enable = data.data.register_enable; + this.form.authcode = ''; this.set_rtitle(); this.set_activename(); } else { diff --git a/fir_client/src/components/FirRegist.vue b/fir_client/src/components/FirRegist.vue index 4ac344a..502fb16 100644 --- a/fir_client/src/components/FirRegist.vue +++ b/fir_client/src/components/FirRegist.vue @@ -29,7 +29,7 @@ - + + placeholder="验证码" clearable/> + show-password clearable/> + show-password @keyup.enter.native="onRegist" clearable/> @@ -132,6 +132,7 @@ if (jdata.enable) { this.allow_r = true; this.allow_ways = jdata.register_type; + this.form.authcode = ''; this.set_rtitle(); this.cptch = data.data; } else { @@ -318,12 +319,6 @@ onLogin() { this.$router.push({name: 'FirLogin'}) }, - // isEmail(input) { - // if (input.match(/^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$/)) { - // return true; - // } - // return false; - // } } , created() { diff --git a/fir_client/src/components/user/FirUserProfileCertification.vue b/fir_client/src/components/user/FirUserProfileCertification.vue index 8045d62..c111963 100644 --- a/fir_client/src/components/user/FirUserProfileCertification.vue +++ b/fir_client/src/components/user/FirUserProfileCertification.vue @@ -108,7 +108,20 @@ - + + + + + + + + + + + @@ -126,23 +139,9 @@ - - - - - - - - - - - - +
@@ -220,7 +219,7 @@