fix: WebView 顶栏按胶囊按钮计算安全区并统一暖色背景

传入 menuButton.bottom 作为 sbh,page 与 globalStyle 设置 backgroundColorTop 避免刘海黑条。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
jackyu66git
2026-08-25 01:22:40 +08:00
co-authored by Cursor
parent b74fd9caf5
commit 605be2e480
3 changed files with 36 additions and 7 deletions
+10 -2
View File
@@ -11,8 +11,13 @@
"style": {
"navigationBarTitleText": "",
"navigationStyle": "custom",
"navigationBarTextStyle": "black",
"backgroundColor": "#ffd1c7",
"backgroundColorTop": "#ffd1c7"
"backgroundColorTop": "#ffd1c7",
"mp-weixin": {
"navigationStyle": "custom",
"backgroundColorTop": "#ffd1c7"
}
}
},
{
@@ -176,7 +181,10 @@
// "navigationBarTitleText": "uni-app",
// "navigationBarBackgroundColor": "#F8F8F8",
// "backgroundColor": "#F8F8F8",
"navigationStyle": "custom"
"navigationStyle": "custom",
"navigationBarTextStyle": "black",
"backgroundColor": "#ffd1c7",
"backgroundColorTop": "#ffd1c7"
},
"uniIdRouter": {},