From 831bd61e0207d6228a774f12d996430c15a4710e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8D=AF=E8=A6=81=E5=90=83?= <49603204+yaoyaochil@users.noreply.github.com> Date: Thu, 9 Jan 2025 17:14:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=B8=AA=E4=BA=BA=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E9=A1=B5=E6=A0=B7=E5=BC=8F=20=E8=BF=99=E4=B8=AA?= =?UTF-8?q?=E5=A4=B4=20=E5=BE=97=E5=BC=80=20(#1977)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 更新个人信息页样式 --- web/src/api/fileUploadAndDownload.js | 10 + web/src/components/Avatar/ProfileAvatar.vue | 120 ++++ web/src/view/person/person.vue | 614 ++++++++++++-------- 3 files changed, 513 insertions(+), 231 deletions(-) create mode 100644 web/src/components/Avatar/ProfileAvatar.vue diff --git a/web/src/api/fileUploadAndDownload.js b/web/src/api/fileUploadAndDownload.js index 2bff5bb4..0f260b63 100644 --- a/web/src/api/fileUploadAndDownload.js +++ b/web/src/api/fileUploadAndDownload.js @@ -55,3 +55,13 @@ export const importURL = (data) => { data }) } + + +// 上传文件 暂时用于头像上传 +export const uploadFile = (data) => { + return service({ + url: "/fileUploadAndDownload/upload", + method: "post", + data, + }); +}; \ No newline at end of file diff --git a/web/src/components/Avatar/ProfileAvatar.vue b/web/src/components/Avatar/ProfileAvatar.vue new file mode 100644 index 00000000..f0fd1180 --- /dev/null +++ b/web/src/components/Avatar/ProfileAvatar.vue @@ -0,0 +1,120 @@ + + + + + \ No newline at end of file diff --git a/web/src/view/person/person.vue b/web/src/view/person/person.vue index 84e9356b..f1464839 100644 --- a/web/src/view/person/person.vue +++ b/web/src/view/person/person.vue @@ -1,171 +1,226 @@ - - - - + + + + + + - -
+ +
- {{ - time > 0 ? `(${time}s)后重新获取` : '获取验证码' - }} + > + + + + {{ time > 0 ? `${time}s` : '获取验证码' }} +
- - - - + + + + + + - -
+ +
+ > + + {{ - emailTime > 0 ? `(${emailTime}s)后重新获取` : '获取验证码' - }} + {{ emailTime > 0 ? `${emailTime}s` : '获取验证码' }} +
@@ -258,16 +332,22 @@ -