From c45aeed34e3d84872601e00ecafc8983e13f2220 Mon Sep 17 00:00:00 2001 From: youngS Date: Thu, 8 Apr 2021 18:31:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=AE=9E=E4=BA=BA=E8=AE=A4?= =?UTF-8?q?=E8=AF=81=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/FirAppInfosbaseinfo.vue | 2 +- .../src/components/FirUserProfileBase.vue | 2 +- .../FirUserProfileCertification.vue | 434 ++++++++++++++---- fir_client/src/restful/index.js | 15 + fir_ser/api/migrations/0025_order_price.py | 3 +- .../0034_usercertificationinfo_msg.py | 17 + ...035_usercertificationinfo_reviewed_time.py | 18 + fir_ser/api/models.py | 2 + fir_ser/api/urls.py | 3 +- fir_ser/api/utils/serializer.py | 39 +- fir_ser/api/views/login.py | 97 +++- fir_ser/api/views/uploads.py | 22 +- 12 files changed, 538 insertions(+), 116 deletions(-) create mode 100644 fir_ser/api/migrations/0034_usercertificationinfo_msg.py create mode 100644 fir_ser/api/migrations/0035_usercertificationinfo_reviewed_time.py diff --git a/fir_client/src/components/FirAppInfosbaseinfo.vue b/fir_client/src/components/FirAppInfosbaseinfo.vue index 51d36f3..59c30df 100644 --- a/fir_client/src/components/FirAppInfosbaseinfo.vue +++ b/fir_client/src/components/FirAppInfosbaseinfo.vue @@ -210,11 +210,11 @@ return this.beforeAvatarUpload(file, 'screen') }, beforeAvatarUpload(file, act) { - // eslint-disable-next-line no-unused-vars return AvatarUploadUtils(this, file, { 'app_id': this.currentapp.app_id, 'upload_key': file.name, 'ftype': act + // eslint-disable-next-line no-unused-vars }, res => { this.getappinfo(); }); diff --git a/fir_client/src/components/FirUserProfileBase.vue b/fir_client/src/components/FirUserProfileBase.vue index a08a75c..549bfed 100644 --- a/fir_client/src/components/FirUserProfileBase.vue +++ b/fir_client/src/components/FirUserProfileBase.vue @@ -95,11 +95,11 @@ this.updateUserInfo({"methods": 'PUT', 'data': {"first_name": this.userinfo.first_name}}); }, beforeAvatarUpload(file) { - // eslint-disable-next-line no-unused-vars return AvatarUploadUtils(this, file, { 'app_id': this.userinfo.uid, 'upload_key': file.name, 'ftype': 'head' + // eslint-disable-next-line no-unused-vars }, res => { this.updateUserInfo({"methods": 'GET'}); }); diff --git a/fir_client/src/components/FirUserProfileCertification.vue b/fir_client/src/components/FirUserProfileCertification.vue index e3770b8..0b73bc0 100644 --- a/fir_client/src/components/FirUserProfileCertification.vue +++ b/fir_client/src/components/FirUserProfileCertification.vue @@ -1,94 +1,204 @@