From 2eced487915f35dfe028249c24816c376c8d1db9 Mon Sep 17 00:00:00 2001 From: Ultrame <1019265060@qq.com> Date: Mon, 13 Oct 2025 09:16:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/user_pages/myself/index.scss | 26 +++++++++++++------------- src/user_pages/myself/index.tsx | 2 ++ 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/src/user_pages/myself/index.scss b/src/user_pages/myself/index.scss index 1fe5fd3..32581c2 100644 --- a/src/user_pages/myself/index.scss +++ b/src/user_pages/myself/index.scss @@ -3,17 +3,6 @@ // 个人页面样式 .myself_page { height: 100vh; - background: radial-gradient(circle at 50% 0, - /* 光晕圆心在顶部中间 */ - rgba(173, 216, 230, 0.9) 0px, - /* 中间更深的浅蓝 */ - rgba(173, 216, 230, 0.5) 200px, - /* 100px 处开始淡化 */ - #fafafa 300px, - /* 到 200px 变成白色 */ - #fafafa 100% - /* 200px 以下全白 */ - ); position: relative; overflow-y: auto; box-sizing: border-box; @@ -29,18 +18,29 @@ // 主要内容区域 .main_content { // position: relative; + background: radial-gradient(circle at 50% 0, + /* 光晕圆心在顶部中间 */ + rgba(173, 216, 230, 0.9) 0px, + /* 中间更深的浅蓝 */ + rgba(173, 216, 230, 0.5) 200px, + /* 100px 处开始淡化 */ + #fafafa 300px, + /* 到 200px 变成白色 */ + #fafafa 100% + /* 200px 以下全白 */ +); z-index: 5; flex: 1; margin-top: 0; box-sizing: border-box; padding: 0px 15px 15px 15px; + padding-top: 98px; // 用户信息区域 .user_info_section { display: flex; flex-direction: column; gap: 16px; - margin-top: 98px; // 加载状态 .loading_container { @@ -382,4 +382,4 @@ color: rgba(0, 0, 0, 0.85); transition: color 0.3s ease; padding: 24px 15px; -} \ No newline at end of file +} diff --git a/src/user_pages/myself/index.tsx b/src/user_pages/myself/index.tsx index dc10dde..b178502 100644 --- a/src/user_pages/myself/index.tsx +++ b/src/user_pages/myself/index.tsx @@ -265,6 +265,7 @@ const MyselfPage: React.FC = () => { btnText="去发布" btnImg="ICON_ADD" reload={goPublish} + isShowNoData={game_records.length === 0} loadMoreMatches={() => { }} /> @@ -288,6 +289,7 @@ const MyselfPage: React.FC = () => { loading={loading} error={null} errorImg="ICON_LIST_EMPTY" + isShowNoData={ended_game_records.length === 0} loadMoreMatches={() => { }} />