bug(custom):

This commit is contained in:
zhangjing1
2025-10-24 16:38:53 +08:00
parent 81a3580b7b
commit e58267add5
2 changed files with 24 additions and 8 deletions

View File

@@ -372,8 +372,8 @@ const SpPage = memo(
url: isGoodsShelves()
? '/subpages/guide/index'
: VERSION_IN_PURCHASE
? '/pages/purchase/index'
: '/pages/index'
? '/pages/purchase/index'
: '/pages/index'
})
}}
/>
@@ -463,15 +463,21 @@ const SpPage = memo(
'padding-top': `${state.customNavigation && !props.immersive ? state.gNavbarH : 0}px`,
'padding-bottom': props.renderFooter
? Taro.pxTransform(
props.footerHeight + (isIphoneX() ? DEFAULT_SAFE_AREA_HEIGHT : 0)
)
props.footerHeight + (isIphoneX() ? DEFAULT_SAFE_AREA_HEIGHT : 0)
)
: 0
})}
>
<context.Provider value={{}}>{props.children}</context.Provider>
<View className='sp-page__powered-by text-center'>
Powered by <SpImage src='powered-logo.png' width={100} height={20} />
</View>
</View>
)}
{props.loading && <SpLoading />}
{props.renderFooter && (
<View
key={lang}
@@ -484,7 +490,6 @@ const SpPage = memo(
<context.Provider value={{}}>{props.renderFooter}</context.Provider>
</View>
)}
{/* 浮动 */}
{!props.isDefault && (
<View className='float-container'>
@@ -502,7 +507,7 @@ const SpPage = memo(
)
SpPage.defaultProps = {
onReady: () => {},
onReady: () => { },
btnHomeEnable: true,
className: '',
children: null,

View File

@@ -41,6 +41,12 @@
}
}
.sp-page__powered-by {
color: #B3B3B3;
font-size: 20px;
margin-bottom: 20px;
}
.float-container {
position: fixed;
bottom: 350px;
@@ -64,9 +70,11 @@
right: 0;
top: 0;
z-index: 1000;
&__body {
align-items: center;
}
.title-container {
font-size: 26px;
white-space: nowrap;
@@ -105,17 +113,20 @@
}
}
}
.p-title-hot-img {
position: relative;
width: 100%;
height: 100%;
.sp-image {
width: 100%;
height: 100%;
}
.img-hotzone_zone {
position: absolute;
}
}
}
}