From a08031b9019c4909e86eb97a7fc73b3b2a645fad Mon Sep 17 00:00:00 2001 From: long <452591453@qq.com> Date: Mon, 25 May 2026 14:15:36 +0800 Subject: [PATCH] =?UTF-8?q?style(metronome):=20=E7=A6=81=E6=AD=A2=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E4=B8=8A=E4=B8=8B=E6=BB=9A=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - pages.json 给 pages/training/metronome 加 disableScroll: true (微信小程序级别禁滚动,主要避免下拉刷新和顶部回弹) - .page CSS 改 min-height → height: 100vh + overflow: hidden (双保险,防止 iOS 橡皮筋效果与内容超出滚动) - 内容元素 gap 28→24rpx,微调避免内容被裁 Co-authored-by: Cursor --- TUICallKit-Vue3/pages.json | 3 ++- TUICallKit-Vue3/pages/training/metronome.vue | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/TUICallKit-Vue3/pages.json b/TUICallKit-Vue3/pages.json index ca65d0d2..f2e03c0a 100644 --- a/TUICallKit-Vue3/pages.json +++ b/TUICallKit-Vue3/pages.json @@ -81,7 +81,8 @@ "style": { "navigationBarTitleText": "节拍器", "navigationBarBackgroundColor": "#0f172a", - "navigationBarTextStyle": "white" + "navigationBarTextStyle": "white", + "disableScroll": true } } ], diff --git a/TUICallKit-Vue3/pages/training/metronome.vue b/TUICallKit-Vue3/pages/training/metronome.vue index 79011167..c826a975 100644 --- a/TUICallKit-Vue3/pages/training/metronome.vue +++ b/TUICallKit-Vue3/pages/training/metronome.vue @@ -199,14 +199,16 @@ $radius-btn: 20rpx; * 页面容器 * ============================================================ */ .page { - min-height: 100vh; + height: 100vh; + box-sizing: border-box; padding: 30rpx 28rpx 60rpx; background: $bg-grad; display: flex; flex-direction: column; align-items: center; - gap: 28rpx; + gap: 24rpx; color: $text-1; + overflow: hidden; } /* ============================================================