From 0ff9a69a800f9fc393667b844500002153657530 Mon Sep 17 00:00:00 2001 From: Ultrame <1019265060@qq.com> Date: Thu, 27 Nov 2025 21:28:01 +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/main_pages/components/MyselfPageContent.module.scss | 1 + src/main_pages/components/MyselfPageContent.tsx | 8 ++++---- src/user_pages/other/index.scss | 1 + src/user_pages/other/index.tsx | 4 +++- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/main_pages/components/MyselfPageContent.module.scss b/src/main_pages/components/MyselfPageContent.module.scss index 30feaf4..fd134a8 100644 --- a/src/main_pages/components/MyselfPageContent.module.scss +++ b/src/main_pages/components/MyselfPageContent.module.scss @@ -34,6 +34,7 @@ // MyselfPageContent 组件使用的类名 .myselfPageContentMain { + min-height: calc(100vh + 5px); animation: backgroundGradient 0s ease-in-out forwards; z-index: 5; flex: 1; diff --git a/src/main_pages/components/MyselfPageContent.tsx b/src/main_pages/components/MyselfPageContent.tsx index 27615b0..2269b2f 100644 --- a/src/main_pages/components/MyselfPageContent.tsx +++ b/src/main_pages/components/MyselfPageContent.tsx @@ -19,7 +19,7 @@ const MyselfPageContent: React.FC = () => { const instance = (Taro as any).getCurrentInstance(); const user_id = instance.router?.params?.userid || ""; - const is_current_user = !user_id; + // const is_current_user = !user_id; const user_info = useUserInfo(); const [game_records, set_game_records] = useState([]); @@ -146,7 +146,7 @@ const MyselfPageContent: React.FC = () => { const handleScroll = (event: any) => { const scrollData = event.detail; - setCollapseProfile(scrollData.scrollTop > 10); + setCollapseProfile(scrollData.scrollTop > 1); }; return ( @@ -157,9 +157,9 @@ const MyselfPageContent: React.FC = () => { > { const handleScroll = (event: any) => { const scrollData = event.detail; - setCollapseProfile(scrollData.scrollTop > 10); + setCollapseProfile(scrollData.scrollTop > 1); } // 处理球局详情 @@ -295,6 +295,7 @@ const OtherUserPage: React.FC = () => { loadMoreMatches={() => { }} collapse={true} style={{ paddingBottom: 0, overflow: "hidden" }} + listLoadErrorHeight="320px" defaultShowNum={3} /> @@ -335,6 +336,7 @@ const OtherUserPage: React.FC = () => { loadMoreMatches={() => { }} collapse={true} style={{ paddingBottom: "90px", overflow: "hidden" }} + listLoadErrorHeight="320px" defaultShowNum={3} />