From 8b314b99009f46e264eacbe34d0a0a67b965f987 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=88=90?= Date: Tue, 9 Dec 2025 14:41:21 +0800 Subject: [PATCH] 1 --- src/other_pages/emptyState/index.scss | 10 +++++----- src/other_pages/emptyState/index.tsx | 14 +++++--------- src/services/detailService.ts | 3 ++- 3 files changed, 12 insertions(+), 15 deletions(-) diff --git a/src/other_pages/emptyState/index.scss b/src/other_pages/emptyState/index.scss index 9a5b7cd..48fedd6 100644 --- a/src/other_pages/emptyState/index.scss +++ b/src/other_pages/emptyState/index.scss @@ -1,21 +1,22 @@ .empty_state_page { width: 100%; + height: 100vh; // 白色渐变背景(从设计稿参考) background: linear-gradient(180deg, #FFFFFF 0%, #F5F5F5 100%); position: relative; display: flex; flex-direction: column; + box-sizing: border-box; overflow: hidden; &__content { - flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 0; position: relative; - min-height: calc(100vh - 98px); + height: calc(100vh - 98px); } // 空状态图片 @@ -99,7 +100,7 @@ &--primary { background: #000000; border: 2px solid rgba(0, 0, 0, 0.06); - + .empty_state_page__button_text { color: #ffffff; // 黑色背景下使用白色文字 } @@ -111,5 +112,4 @@ border: 2px solid rgba(0, 0, 0, 0.06); } } -} - +} \ No newline at end of file diff --git a/src/other_pages/emptyState/index.tsx b/src/other_pages/emptyState/index.tsx index b2e86d9..0292066 100644 --- a/src/other_pages/emptyState/index.tsx +++ b/src/other_pages/emptyState/index.tsx @@ -49,20 +49,16 @@ function Index() { }; return ( - {/* 空状态图片 */} - diff --git a/src/services/detailService.ts b/src/services/detailService.ts index 17e3317..b5cdd9c 100644 --- a/src/services/detailService.ts +++ b/src/services/detailService.ts @@ -150,7 +150,8 @@ class GameDetailService { business_id: number }>> { return httpService.post('/user/create_activity_id', req, { - showLoading: false + showLoading: false, + showToast: false, }) }