mirror of
https://gitee.com/ShopeX/ECShopX_mobile-frontend
synced 2026-08-12 22:35:37 +08:00
bug:
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
})
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user