From fa2964e144319d94a0e62f806cc3a088099ce00b Mon Sep 17 00:00:00 2001 From: yanlongqi Date: Tue, 2 Dec 2025 00:35:36 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=A6=96=E9=A1=B5=E6=8E=92?= =?UTF-8?q?=E8=A1=8C=E6=A6=9C=E9=A1=BA=E5=BA=8F=EF=BC=9A=E6=AF=8F=E6=97=A5?= =?UTF-8?q?=E4=B8=80=E7=BB=83=E6=8E=92=E8=A1=8C=E6=A6=9C=E7=BD=AE=E4=BA=8E?= =?UTF-8?q?=E4=BB=8A=E6=97=A5=E6=8E=92=E8=A1=8C=E6=A6=9C=E4=B9=8B=E5=89=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- web/src/pages/Home.tsx | 164 ++++++++++++++++++++--------------------- 1 file changed, 82 insertions(+), 82 deletions(-) diff --git a/web/src/pages/Home.tsx b/web/src/pages/Home.tsx index ae50f8d..ec603d3 100644 --- a/web/src/pages/Home.tsx +++ b/web/src/pages/Home.tsx @@ -724,6 +724,88 @@ const Home: React.FC = () => { + {/* 每日一练排行榜 */} +
+ + <CrownOutlined style={{ color: '#fa8c16' }} /> 每日一练排行榜 + + {dailyExamLoading ? ( + + ) : dailyExamRanking.rankings.length === 0 ? ( + +
+ +
今日每日一练尚未生成
+
请等待系统每天凌晨1点自动生成
+
+
+ ) : ( + + {dailyExamRanking.exam_title && ( +
+ + {dailyExamRanking.exam_title} +
+ )} +
+ {dailyExamRanking.rankings.map((user, index) => ( +
+
+ {index < 3 ? ( +
+ {index === 0 && } + {index === 1 && } + {index === 2 && } +
+ ) : ( +
{index + 1}
+ )} + } + className={styles.rankAvatar} + /> +
+
{user.nickname}
+
@{user.username}
+
+
+
+
+
= 80 ? '#52c41a' : user.score >= 60 ? '#faad14' : '#ff4d4f', + fontSize: 18, + fontWeight: 'bold' + }}> + {user.score} +
+
得分
+
+
+
+
+ {Math.floor(user.time_spent / 60)}' + {user.time_spent % 60 < 10 ? '0' : ''}{user.time_spent % 60}" +
+
用时
+
+
+
+ ))} +
+
+ )} +
+ {/* 排行榜 */}
@@ -859,88 +941,6 @@ const Home: React.FC = () => { )} </div> - {/* 每日一练排行榜 */} - <div className={styles.rankingSection}> - <Title level={4} className={styles.sectionTitle}> - <CrownOutlined style={{ color: '#fa8c16' }} /> 每日一练排行榜 - - {dailyExamLoading ? ( - - ) : dailyExamRanking.rankings.length === 0 ? ( - -
- -
今日每日一练尚未生成
-
请等待系统每天凌晨1点自动生成
-
-
- ) : ( - - {dailyExamRanking.exam_title && ( -
- - {dailyExamRanking.exam_title} -
- )} -
- {dailyExamRanking.rankings.map((user, index) => ( -
-
- {index < 3 ? ( -
- {index === 0 && } - {index === 1 && } - {index === 2 && } -
- ) : ( -
{index + 1}
- )} - } - className={styles.rankAvatar} - /> -
-
{user.nickname}
-
@{user.username}
-
-
-
-
-
= 80 ? '#52c41a' : user.score >= 60 ? '#faad14' : '#ff4d4f', - fontSize: 18, - fontWeight: 'bold' - }}> - {user.score} -
-
得分
-
-
-
-
- {Math.floor(user.time_spent / 60)}' - {user.time_spent % 60 < 10 ? '0' : ''}{user.time_spent % 60}" -
-
用时
-
-
-
- ))} -
-
- )} -
- {/* 用户类型补充模态框 */}