From 1be879fbe48602dd78c5dfca1c773b90afd8fd6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=BF=97=E9=B9=8F?= <2916022834@qq.com> Date: Wed, 24 Dec 2025 12:04:11 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B4=A6=E5=8F=B7?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/login.ts | 16 + src/views/Workshop/profile.vue | 939 +++++++++++++++++---------------- 2 files changed, 497 insertions(+), 458 deletions(-) diff --git a/src/api/login.ts b/src/api/login.ts index 83a33f2..ee2b979 100644 --- a/src/api/login.ts +++ b/src/api/login.ts @@ -59,3 +59,19 @@ export const googleAuth = (data: GoogleAuthParamsType): Promise = params: data }) } + + +/** 更改用户信息 + * @param data 包含用户信息的对象 + * @param data.username 用户名 + * @param data.email 邮箱 + * @param data.password 密码 + * @returns 包含更新后的用户信息的对象 +*/ +export const updateUserInfo = (data: any) => { + return request({ + url: '/api/auth/updateUserInfo', + method: 'post', + data + }) +} diff --git a/src/views/Workshop/profile.vue b/src/views/Workshop/profile.vue index e212011..fb34c17 100644 --- a/src/views/Workshop/profile.vue +++ b/src/views/Workshop/profile.vue @@ -1,494 +1,517 @@ From 59c864fef3b5f9c006c5873983512059d06ab279 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=BF=97=E9=B9=8F?= <2916022834@qq.com> Date: Mon, 29 Dec 2025 10:20:46 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E5=AD=97=E4=BD=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/MyList.vue | 26 ++++++++++++++++--- src/views/Workshop/creation/creation-list.vue | 7 ++++- src/views/Workshop/library.vue | 19 +++++++++----- 3 files changed, 40 insertions(+), 12 deletions(-) diff --git a/src/components/MyList.vue b/src/components/MyList.vue index 425bee6..4aad281 100644 --- a/src/components/MyList.vue +++ b/src/components/MyList.vue @@ -3,6 +3,7 @@ const props = defineProps({ loading: { default: false, type: Boolean }, finish: { default: false, type: Boolean }, + empty: { default: false, type: Boolean }, pel: { default: () => {}, type: Function } }) const emit = defineEmits(['load']) @@ -23,12 +24,13 @@ }) @@ -40,12 +42,28 @@ > .footer { width: 100%; font-size: 3rem; - color: #000; + color: #a1a1a1; text-align: center; margin: var(--my-list-footer-margin, 0); > .placeholder { height: 1px; } + > .empty { + font-size: 4rem; + } + } + &.empty { + > .footer { + display: flex; + flex-direction: column; + justify-content: center; + height: 100%; + padding: 0; + margin: 0; + > .empty { + margin-bottom: 5rem; + } + } } } diff --git a/src/views/Workshop/creation/creation-list.vue b/src/views/Workshop/creation/creation-list.vue index b5cc31d..2a336ad 100644 --- a/src/views/Workshop/creation/creation-list.vue +++ b/src/views/Workshop/creation/creation-list.vue @@ -268,7 +268,12 @@
- +
0) if (res === 0) return - console.log(obj,i) + console.log(obj, i) deleteCustomerPhoto(obj.visitRecordId) .then(() => { list.splice(i, 1) @@ -68,7 +68,12 @@
Library
- +
@@ -115,18 +120,18 @@ } > .title { - font-family: satoshiRegular; - font-size: 9rem; + font-family: satoshiBold; + font-size: 8.9rem; text-align: left; line-height: 124%; - margin: 5rem; + margin: 5rem 9.1rem; } > .list { flex: 1; overflow: hidden; - margin: 0 3rem; + margin: 0 4.5rem; > .my-list { - padding: 0 3.8rem; + padding: 0 4.5rem; --my-list-footer-margin: 2rem 0; > .item { position: relative;