From 356153da9a5ab6ab29642ba97847393617884d32 Mon Sep 17 00:00:00 2001 From: jiangchen <1703935164@qq.com> Date: Tue, 1 Sep 2026 20:17:17 +0800 Subject: [PATCH] feat: restore 3-page swiper; center mascot page with bubble above head + tap bounce; bigger mascot --- src/pages/index/index.ux | 250 ++++++++++++++++++++++++++++++++++----- 1 file changed, 218 insertions(+), 32 deletions(-) diff --git a/src/pages/index/index.ux b/src/pages/index/index.ux index bed135b..fa7530f 100644 --- a/src/pages/index/index.ux +++ b/src/pages/index/index.ux @@ -1,27 +1,59 @@ @@ -109,18 +182,85 @@ export default { width: 100%; height: 100%; flex-direction: column; - justify-content: center; - align-items: center; background-color: #0b1220; } -.mascot { - width: 220px; - height: 220px; +.swiper { + flex: 1; + width: 100%; + indicator-size: 0px; } -.mascot-bounce { - transform: scale(0.92); +.page-item { + width: 100%; + height: 100%; + padding: 12px; + box-sizing: border-box; +} + +.left-page, +.right-page { + flex-direction: column; + align-items: flex-start; +} + +.center-page { + flex-direction: column; + justify-content: center; + align-items: center; + /* 给气泡留顶部空间 */ + padding-top: 40px; +} + +.page-title { + color: #e6f0ff; + font-size: 24px; + font-weight: bold; + margin-bottom: 12px; +} + +.page-hint { + color: #6b7a99; + font-size: 16px; + margin-top: 20px; +} + +.session-list { + width: 100%; + flex-direction: column; +} + +.session-row { + width: 100%; + height: 44px; + flex-direction: row; + justify-content: space-between; + align-items: center; + margin-bottom: 8px; + padding: 0 10px; + border-radius: 10px; + background-color: #152238; +} + +.session-title { + color: #dbe8ff; + font-size: 17px; +} + +.session-dot { + color: #33b4ff; + font-size: 16px; +} + +/* 吉祥物:比之前大一点 + 敲击 Q 弹 */ +.mascot { + width: 250px; + height: 250px; + transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1); +} + +.mascot-tap { + transform: scale(0.9) translateY(3px); } .peak { @@ -143,14 +283,15 @@ export default { margin-top: 6px; } +/* 气泡:头像正上方居中,稍微放大 */ .bubble { position: absolute; - top: 90px; + top: 64px; left: 50%; - margin-left: -110px; - width: 220px; - padding: 10px 12px; - border-radius: 14px; + margin-left: -120px; + width: 240px; + padding: 12px 14px; + border-radius: 16px; background-color: #ffffff; } @@ -162,7 +303,7 @@ export default { .bubble-balance { color: #1c2c47; - font-size: 26px; + font-size: 28px; font-weight: bold; text-align: center; } @@ -193,4 +334,49 @@ export default { text-align: center; margin-top: 4px; } + +.setting-label { + color: #8fa4c9; + font-size: 14px; + margin-top: 8px; +} + +.setting-input { + width: 100%; + height: 38px; + border-radius: 8px; + background-color: #152238; + color: #e6f0ff; + font-size: 15px; + padding: 0 8px; + margin-bottom: 4px; +} + +.conn-text { + color: #6b7a99; + font-size: 14px; + margin-top: 8px; +} + +.dots { + flex-direction: row; + justify-content: center; + align-items: center; + height: 14px; + margin-top: 4px; + gap: 8px; +} + +.dot { + width: 7px; + height: 7px; + border-radius: 4px; + background-color: rgba(255, 255, 255, 0.28); +} + +.dot-active { + width: 22px; + border-radius: 4px; + background-color: #33b4ff; +}