From 0fb933e86494f007f89659f8a1ceca230d7cb149 Mon Sep 17 00:00:00 2001 From: Ultrame <1019265060@qq.com> Date: Thu, 4 Dec 2025 16:46:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=BC=96=E8=BE=91=E9=A1=B5pl?= =?UTF-8?q?aceholder=E6=A0=B7=E5=BC=8F=E3=80=81=E6=B2=A1=E6=9C=89=E5=BE=80?= =?UTF-8?q?=E6=9C=9F=E7=90=83=E5=B1=80=E6=97=B6=EF=BC=8C=E9=9A=90=E8=97=8F?= =?UTF-8?q?=E5=BE=80=E6=9C=9F=E7=90=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/MyselfPageContent.tsx | 46 +++++----- src/user_pages/edit/index.scss | 1 + src/user_pages/edit/index.tsx | 6 +- src/user_pages/other/index.tsx | 84 ++++++++++--------- 4 files changed, 75 insertions(+), 62 deletions(-) diff --git a/src/main_pages/components/MyselfPageContent.tsx b/src/main_pages/components/MyselfPageContent.tsx index 4af5b9f..f265d72 100644 --- a/src/main_pages/components/MyselfPageContent.tsx +++ b/src/main_pages/components/MyselfPageContent.tsx @@ -247,27 +247,31 @@ const MyselfPageContent: React.FC = () => { - 往期球局 - - - {}} - collapse={true} - style={{ paddingBottom: "90px", overflow: "hidden" }} - listLoadErrorWrapperHeight="fit-content" - listLoadErrorWidth="320px" - listLoadErrorHeight="152px" - listLoadErrorScale="1.2" - defaultShowNum={3} - /> - - + {ended_game_records.length ? ( + <> + 往期球局 + + + {}} + collapse={true} + style={{ paddingBottom: "90px", overflow: "hidden" }} + listLoadErrorWrapperHeight="fit-content" + listLoadErrorWidth="320px" + listLoadErrorHeight="152px" + listLoadErrorScale="1.2" + defaultShowNum={3} + /> + + + + ) : null} ); diff --git a/src/user_pages/edit/index.scss b/src/user_pages/edit/index.scss index 3254d73..58e819d 100644 --- a/src/user_pages/edit/index.scss +++ b/src/user_pages/edit/index.scss @@ -237,6 +237,7 @@ &::placeholder { color: rgba(0, 0, 0, 0.4); + font-weight: unset; } } diff --git a/src/user_pages/edit/index.tsx b/src/user_pages/edit/index.tsx index 36938cd..75ccbe6 100644 --- a/src/user_pages/edit/index.tsx +++ b/src/user_pages/edit/index.tsx @@ -15,7 +15,11 @@ import { useNicknameChangeStatus, } from "@/store/userStore"; import { UserInfoType } from "@/services/userService"; -import { useCities, useProfessions, useNtrpLevels } from "@/store/pickerOptionsStore"; +import { + useCities, + useProfessions, + useNtrpLevels, +} from "@/store/pickerOptionsStore"; import { handleCustomerService } from "@/services/userService"; import evaluateService from "@/services/evaluateService"; diff --git a/src/user_pages/other/index.tsx b/src/user_pages/other/index.tsx index f55f121..dc9178c 100644 --- a/src/user_pages/other/index.tsx +++ b/src/user_pages/other/index.tsx @@ -335,48 +335,52 @@ const OtherUserPage: React.FC = () => { {/* 往期球局 */} - 往期球局 - - {/* - 5月29日 - / - 星期六 - */} + {ended_game_records.length ? ( + <> + 往期球局 + + {/* + 5月29日 + / + 星期六 + */} - {/* 球局列表 */} - {/* */} - - {}} - collapse={true} - style={{ paddingBottom: "90px", overflow: "hidden" }} - listLoadErrorWrapperHeight="fit-content" - listLoadErrorWidth="320px" - listLoadErrorHeight="152px" - listLoadErrorScale="1.2" - defaultShowNum={3} - /> - - {/* */} + {/* 球局列表 */} + {/* */} + + {}} + collapse={true} + style={{ paddingBottom: "90px", overflow: "hidden" }} + listLoadErrorWrapperHeight="fit-content" + listLoadErrorWidth="320px" + listLoadErrorHeight="152px" + listLoadErrorScale="1.2" + defaultShowNum={3} + /> + + {/* */} - {/* 球局卡片 */} - {/* - {game_records.map((game) => ( - - ))} - */} - + {/* 球局卡片 */} + {/* + {game_records.map((game) => ( + + ))} + */} + + + ) : null} {/* */}