From ed3cc532d6879fdd0511ee184960f825b974bbad Mon Sep 17 00:00:00 2001 From: youngS Date: Fri, 9 Apr 2021 15:56:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=95=8C=E9=9D=A2=E5=B1=95?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/FirUserProfileBase.vue | 4 +- .../FirUserProfileCertification.vue | 57 ++++---- .../components/FirUserProfileChangePwd.vue | 42 +++--- .../src/components/FirUserProfileInfo.vue | 131 +++++++++--------- fir_ser/api/models.py | 3 +- fir_ser/api/utils/storage/caches.py | 51 +++++-- fir_ser/api/views/download.py | 9 +- fir_ser/api/views/login.py | 2 +- fir_ser/fir_ser/settings.py | 5 +- 9 files changed, 168 insertions(+), 136 deletions(-) diff --git a/fir_client/src/components/FirUserProfileBase.vue b/fir_client/src/components/FirUserProfileBase.vue index 549bfed..fe77aa8 100644 --- a/fir_client/src/components/FirUserProfileBase.vue +++ b/fir_client/src/components/FirUserProfileBase.vue @@ -200,8 +200,8 @@ } .user_pro_tabs a.active { - color: #e2644c; - border-bottom-color: #e2644c + color: #7e5ef8; + border-bottom-color: #7e5ef8 } diff --git a/fir_client/src/components/FirUserProfileCertification.vue b/fir_client/src/components/FirUserProfileCertification.vue index 0b73bc0..6a10a8a 100644 --- a/fir_client/src/components/FirUserProfileCertification.vue +++ b/fir_client/src/components/FirUserProfileCertification.vue @@ -2,8 +2,8 @@
- - + + 已经认证 @@ -57,9 +57,9 @@ - - - 重新提交审核 + + + 重新提交审核 @@ -72,7 +72,7 @@ + placeholder="请输入真实姓名" clearable/> @@ -80,7 +80,7 @@ + placeholder="请输入身份证号"/> @@ -89,7 +89,7 @@ + placeholder="请输入现居住地址"/> @@ -99,7 +99,7 @@ + prefix-icon="el-icon-mobile" placeholder="请输入手机号码" maxlength="11"/> @@ -109,7 +109,7 @@ + maxlength="6" clearable/> - +
上传身份证国徽面照片
+ class="avatar" alt="国徽面照片"> 上传身份证国徽面照片 @@ -173,7 +173,7 @@
上传身份证人像面照片
+ class="avatar" alt="人像面照片">
上传身份证人像面照片 @@ -191,7 +191,7 @@
上传手持身份证照片
+ class="avatar" alt="手持身份证照片">
上传手持身份证照片 @@ -205,8 +205,8 @@ - - 提交 + + 提交 @@ -262,10 +262,10 @@ this.get_user_certification({methods: 'POST', data: this.form}) }, - get_user_certification(parmas) { + get_user_certification(params) { user_certification(res => { if (res.code === 1000) { - if (parmas.methods === 'POST') { + if (params.methods === 'POST') { this.$message.success("信息提交成功,正在审核中") } const ft = ['one', 'two', 'three']; @@ -280,7 +280,7 @@ } else { this.$message.error(res.msg) } - }, parmas) + }, params) }, getsmsemailcode(act, target) { @@ -288,7 +288,10 @@ "authcode": this.form.authcode, "cptch_key": this.cptch.cptch_key, }; - + if (!this.form.authcode) { + this.$message.error("图片验证码输入有误"); + return; + } let cptch_flag = this.form.authcode.length === this.cptch.length; if (this.cptch.cptch_key === '' || !this.cptch.cptch_key) { cptch_flag = true @@ -296,18 +299,12 @@ if (cptch_flag) { let checkp = checkphone(this.form.mobile); if (!checkp) { - this.$message({ - message: '手机号输入有误', - type: 'error' - }); + this.$message.error("手机号输入有误"); return } } else { - this.$message({ - message: '图片验证码有误', - type: 'error' - }); + this.$message.error("图片验证码输入有误"); return } let params = {'act': act, 'target': target, 'ext': picode, 'user_id': target, 'ftype': 'certification'}; @@ -372,7 +369,7 @@ 'ext': {'ptype': ptype} // eslint-disable-next-line no-unused-vars }, res => { - this.get_user_certification({methods: 'GET'}); + this.get_user_certification({methods: 'GET', data: {act: 'certpic'}}); }); }, @@ -403,7 +400,7 @@ } .el-form-item .el-button { - max-width: 360px; + max-width: 260px; width: 100%; height: 50px; } diff --git a/fir_client/src/components/FirUserProfileChangePwd.vue b/fir_client/src/components/FirUserProfileChangePwd.vue index 125e5eb..43e1044 100644 --- a/fir_client/src/components/FirUserProfileChangePwd.vue +++ b/fir_client/src/components/FirUserProfileChangePwd.vue @@ -2,36 +2,36 @@
- - - - + + + + - - - + + + + placeholder="新密码" clearable/> - - - + + + + placeholder="确认密码" clearable/> - - - 更新密码 + + + 更新密码 @@ -84,14 +84,20 @@