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/assets/icons/profileFilledBlack.svg b/src/assets/icons/profileFilledBlack.svg new file mode 100644 index 0000000..852da9e --- /dev/null +++ b/src/assets/icons/profileFilledBlack.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/src/assets/icons/profileFilledWhite.svg b/src/assets/icons/profileFilledWhite.svg new file mode 100644 index 0000000..dcd4c57 --- /dev/null +++ b/src/assets/icons/profileFilledWhite.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/src/assets/icons/reTry.svg b/src/assets/icons/reTry.svg index 230cd29..b5bb72e 100644 --- a/src/assets/icons/reTry.svg +++ b/src/assets/icons/reTry.svg @@ -1,9 +1,7 @@ - - - - - - - - - + + + + + + + \ No newline at end of file diff --git a/src/components/HeaderTitle.vue b/src/components/HeaderTitle.vue index a2d67f9..a826a53 100644 --- a/src/components/HeaderTitle.vue +++ b/src/components/HeaderTitle.vue @@ -1,13 +1,23 @@ @@ -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/utils/myEvent.js b/src/utils/myEvent.js index 78bf9cc..e3c4e1b 100644 --- a/src/utils/myEvent.js +++ b/src/utils/myEvent.js @@ -7,7 +7,6 @@ class MyEvent { MyEvent.list = MyEvent.list.filter(item => item.name != name && item.call != call) } emit(name, data) { - console.log('Myevent触发--',name) MyEvent.list.forEach(item => { if (item.name == name) item.call(data) }) 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 @@
- +