This commit is contained in:
zhangjing1
2026-03-06 19:18:46 +08:00
parent 44fba5ce34
commit 5f26e787ff
2 changed files with 2 additions and 2 deletions

View File

@@ -331,7 +331,7 @@ const SpPage = memo(
<View
className='sp-page__body'
style={styleNames({
'padding-top': `${state.customNavigation ? state.gNavbarH : 0}px`,
'padding-top': `${!props.immersive && state.customNavigation ? state.gNavbarH : 0}px`,
'padding-bottom': props.renderFooter
? Taro.pxTransform(
props.footerHeight + (isIphoneX() ? DEFAULT_SAFE_AREA_HEIGHT : 0)

View File

@@ -303,7 +303,7 @@ function Home() {
navigateMantle={navigateMantle}
onReady={({ gNavbarH,footerHeight }) => {
setState((draft) => {
draft.bodyHeight = `calc(100vh - ${gNavbarH}px - ${footerHeight})`
draft.bodyHeight = `calc(100vh - ${pageData?.base?.isImmersive ? 0 : gNavbarH}px - ${footerHeight})`
draft.navbarHeight = gNavbarH
})
}}