From dee871759ea52bda0b60983460e1c3b7991faad7 Mon Sep 17 00:00:00 2001 From: xingyy <64720302+Concur-max@users.noreply.github.com> Date: Tue, 21 Jan 2025 14:16:54 +0800 Subject: [PATCH] =?UTF-8?q?feat(goods):=20=E8=8E=B7=E5=8F=96=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E8=89=BA=E6=9C=AF=E5=93=81=E5=B9=B6=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E9=A6=96=E9=A1=B5=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 goods API 中添加 userArtworks 函数- 更新 auth store,将 userInfo 默认值改为对象 - 优化 LiveRoom 页面布局,添加安全区域支持 - 修改 AppFooter 组件,修复路由判断逻辑 - 更新首页 Column 组件,调整图片显示样式 - 在 Profile 页面添加用户信息展示 --- app/api/goods/index.js | 7 +++ app/app.vue | 3 ++ app/components/AppFooter.vue | 8 +++- app/pages/LiveRoom/index.client.vue | 55 +++++++++++++--------- app/pages/home/components/Column/index.vue | 6 +-- app/pages/profile/index.vue | 15 +++++- app/stores/auth/index.js | 2 +- app/stores/goods/index.js | 2 + 8 files changed, 68 insertions(+), 30 deletions(-) diff --git a/app/api/goods/index.js b/app/api/goods/index.js index d206a48..6863255 100644 --- a/app/api/goods/index.js +++ b/app/api/goods/index.js @@ -20,4 +20,11 @@ export async function artworkDetail(data) { method: 'POST', body: data, }) +} +export async function userArtworks(data) { + const http = getHttp() + return await http('/api/v1/m/user/artworks', { + method: 'POST', + body: data, + }) } \ No newline at end of file diff --git a/app/app.vue b/app/app.vue index 89b3244..7325d96 100644 --- a/app/app.vue +++ b/app/app.vue @@ -78,4 +78,7 @@ provide('slideDirection', slideDirection) .slide-right-leave-to { transform: translateX(100%); } +:root{ + --safe-area-inset-bottom: env(safe-area-inset-bottom); +} \ No newline at end of file diff --git a/app/components/AppFooter.vue b/app/components/AppFooter.vue index c96b38e..6d6e71d 100644 --- a/app/components/AppFooter.vue +++ b/app/components/AppFooter.vue @@ -11,13 +11,17 @@ const show = computed(() => { return false }) const initData=()=>{ - active.value=route.path==='/'?0:1 + active.value=route.path==='/profile'?1:0 } -initData() + +onMounted(()=>{ + initData() +}) @@ -122,7 +125,15 @@ const goPay = () => { }