From 048408b0e9f561ef2f8da1ff77d92d31a641ec7a Mon Sep 17 00:00:00 2001 From: Blizzard Date: Thu, 30 Jul 2026 16:05:14 +0800 Subject: [PATCH] =?UTF-8?q?fix(fe):=20=E6=8A=A5=E5=91=8A=E9=A1=B5/?= =?UTF-8?q?=E6=88=91=E7=9A=84=20=E5=BA=95=E9=83=A8=E8=A2=AB=20tabBar=20?= =?UTF-8?q?=E9=81=AE=E4=BD=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit no-fab 的底部留白是 60rpx,那是给二级页(无 tabBar)用的。报告页和「我的」 是 tab 页,底下有原生 tabBar(高 108rpx),60rpx 让不开,最后一张卡/入口 被 tabBar 压住 —— 报告页的「全部记录」就点不到。 加 --pad-b-tab(150rpx + 安全区)和 .tab-nofab 类,报告页和我的改用它。 no-fab(60rpx)留给真正的二级页(record/plan/expense/history/settings…)。 Co-Authored-By: Claude Opus 5 --- pets-fe/app.wxss | 4 ++++ pets-fe/pages/mine/mine.wxml | 2 +- pets-fe/pages/report/report.wxml | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pets-fe/app.wxss b/pets-fe/app.wxss index 9935896..7eeaada 100644 --- a/pets-fe/app.wxss +++ b/pets-fe/app.wxss @@ -73,6 +73,9 @@ page{ --pad-x:40rpx; --pad-b-fab:calc(330rpx + env(safe-area-inset-bottom)); --pad-b-plain:calc(60rpx + env(safe-area-inset-bottom)); + /* tab 页底下有原生 tabBar(高 108rpx)。报告页/我的没有 FAB,用 no-fab 的 + 60rpx 让不开 tabBar,最后一张卡会被 tabBar 压住 —— 这两页要用这个 */ + --pad-b-tab:calc(150rpx + env(safe-area-inset-bottom)); color:var(--text); font-weight:var(--fw); @@ -97,6 +100,7 @@ view,text{box-sizing:border-box} .page-body{padding:var(--sp-1) var(--pad-x) var(--pad-b-fab)} /* 没挂 FAB 的页面(目前只有文章详情)不需要给它让位 */ .page-body.no-fab{padding-bottom:var(--pad-b-plain)} +.page-body.tab-nofab{padding-bottom:var(--pad-b-tab)} /* 全局隐藏滚动条(页面级 + 组件级),保留正常滚动 */ ::-webkit-scrollbar{ diff --git a/pets-fe/pages/mine/mine.wxml b/pets-fe/pages/mine/mine.wxml index 61275a0..9537acc 100644 --- a/pets-fe/pages/mine/mine.wxml +++ b/pets-fe/pages/mine/mine.wxml @@ -1,7 +1,7 @@ - + diff --git a/pets-fe/pages/report/report.wxml b/pets-fe/pages/report/report.wxml index 789c36b..cc68e88 100644 --- a/pets-fe/pages/report/report.wxml +++ b/pets-fe/pages/report/report.wxml @@ -3,7 +3,7 @@ - + 还没有毛孩子的档案