bug(custom): 顶部

This commit is contained in:
zhangjing1
2025-09-04 19:38:03 +08:00
parent 821adc7cf7
commit cd61bcf994
3 changed files with 20 additions and 8 deletions

View File

@@ -404,7 +404,7 @@ const SpPage = memo(
style={styleNames(pageCenterStyle)}
>
{props.renderNavigation ? (
<context.Provider value={store}>{props.renderNavigation}</context.Provider>
<context.Provider value={{}}>{props.renderNavigation}</context.Provider>
) : (
<View className='title-container' style={styleNames(pageTitleStyle)}>
{renderTitle || props.title || navigationBarTitleText}
@@ -446,7 +446,7 @@ const SpPage = memo(
className='sp-page__body'
style={styleNames({
'height': `${state.bodyHeight}px`,
'padding-top': `${state.customNavigation && !props.immerse ? state.gNavbarH : 0}px`,
'padding-top': `${state.customNavigation && !props.immersive ? state.gNavbarH : 0}px`,
'padding-bottom': props.renderFooter
? Taro.pxTransform(
props.footerHeight + (isIphoneX() ? DEFAULT_SAFE_AREA_HEIGHT : 0)

View File

@@ -283,12 +283,12 @@ function EspierDetail(props) {
distributor_id: getDistributorId()
})
data = pickBy(itemDetail, doc.goods.ESPIER_DETAIL_GOODS_INFO)
if (data.approveStatus == 'instock') {
setState((draft) => {
draft.isDefault = true
draft.defaultMsg = '商品已下架'
})
}
// if (data.approveStatus == 'instock') {
// setState((draft) => {
// draft.isDefault = true
// draft.defaultMsg = '商品已下架'
// })
// }
} catch (e) {
setState((draft) => {
draft.isDefault = true
@@ -479,6 +479,8 @@ function EspierDetail(props) {
/>
}
>
<View className='page-item-espierdetail__header-bg'></View>
{/* <Canvas id="canvas2" type="2d" onReady={onCanvasReady} /> */}
{!info && <SpLoading />}
{info && (

View File

@@ -1,4 +1,14 @@
.page-item-espierdetail {
&__header-bg {
position: absolute;
top: 0;
left: 0;
right: 0;
width: 100vw;
height: 250px !important;
z-index: 999;
background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
}
.goods-pic-container {
position: relative;
}