mirror of
https://gitee.com/ShopeX/ECShopX_mobile-frontend
synced 2026-08-15 01:46:26 +08:00
bug(custom): 顶部
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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 && (
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user