update
parent
77fc731426
commit
2b0a5953ce
|
|
@ -246,7 +246,8 @@
|
||||||
}
|
}
|
||||||
&-btn {
|
&-btn {
|
||||||
padding: 15px 20px;
|
padding: 15px 20px;
|
||||||
border: 1px solid #fff;
|
/* prettier-ignore */
|
||||||
|
border: 1PX solid #fff;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
|
||||||
|
|
@ -196,7 +196,7 @@ function SpPage (props, ref) {
|
||||||
|
|
||||||
let model = ''
|
let model = ''
|
||||||
let ipx = false
|
let ipx = false
|
||||||
let gNavbarH = 0, gStatusBarHeight = 0
|
let gNavbarH = 0, gStatusBarHeight = 0, gAreaH = 0
|
||||||
// let customNavigation = false
|
// let customNavigation = false
|
||||||
// let cusCurrentPage = 0
|
// let cusCurrentPage = 0
|
||||||
|
|
||||||
|
|
@ -207,7 +207,8 @@ function SpPage (props, ref) {
|
||||||
ipx = model.search(/iPhone\s*X|iPhone\s*11|iPhone\s*12|iPhone\s*13|iPhone\s*14|iPhone\s*15|iPhone\s*16|iPhone\s*10/g) > -1
|
ipx = model.search(/iPhone\s*X|iPhone\s*11|iPhone\s*12|iPhone\s*13|iPhone\s*14|iPhone\s*15|iPhone\s*16|iPhone\s*10/g) > -1
|
||||||
|
|
||||||
const menuButton = Taro.getMenuButtonBoundingClientRect()
|
const menuButton = Taro.getMenuButtonBoundingClientRect()
|
||||||
const { statusBarHeight } = Taro.getSystemInfoSync()
|
const { statusBarHeight, safeArea, screenHeight } = deviceInfo
|
||||||
|
gAreaH = (screenHeight - safeArea.bottom)
|
||||||
gNavbarH = Math.floor(statusBarHeight + menuButton.height + (menuButton.top - statusBarHeight) * 2)
|
gNavbarH = Math.floor(statusBarHeight + menuButton.height + (menuButton.top - statusBarHeight) * 2)
|
||||||
gStatusBarHeight = statusBarHeight
|
gStatusBarHeight = statusBarHeight
|
||||||
}
|
}
|
||||||
|
|
@ -357,6 +358,8 @@ function SpPage (props, ref) {
|
||||||
...pageTheme, ...lockStyle, ...pageBackground, 'padding-top': isTop ? currentPath === 'pages/index' ? 0 : `${customNavigation ? gStatusBarHeight : 0}px` : `${customNavigation ? gNavbarH : 0}px`,
|
...pageTheme, ...lockStyle, ...pageBackground, 'padding-top': isTop ? currentPath === 'pages/index' ? 0 : `${customNavigation ? gStatusBarHeight : 0}px` : `${customNavigation ? gNavbarH : 0}px`,
|
||||||
"--nav-height": `${gNavbarH}px`,
|
"--nav-height": `${gNavbarH}px`,
|
||||||
"--status-bar-height": `${gStatusBarHeight}px`,
|
"--status-bar-height": `${gStatusBarHeight}px`,
|
||||||
|
"--area-bottom-height": `${gAreaH}rpx`,
|
||||||
|
"$page-ipx-footer-height": `${gAreaH}px`,
|
||||||
})}
|
})}
|
||||||
ref={wrapRef}
|
ref={wrapRef}
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -160,8 +160,8 @@ const CompSeries = (props) => {
|
||||||
</View>
|
</View>
|
||||||
<SpImage
|
<SpImage
|
||||||
className={classNames(imgType ? 'cat-img' : 'cat-img-no')}
|
className={classNames(imgType ? 'cat-img' : 'cat-img-no')}
|
||||||
mode={currentID === '18' ? 'aspectFill' : 'aspectFit'}
|
mode={currentID === '18' ? 'aspectFill' : 'widthFix'}
|
||||||
height={currentID === '18' ? 350 : windowWidth > 400 ? 278 : 242}
|
height={currentID === '18' ? 350 : windowWidth > 375 ? 278 : 242}
|
||||||
src={item.img}
|
src={item.img}
|
||||||
/>
|
/>
|
||||||
</View> : <View
|
</View> : <View
|
||||||
|
|
|
||||||
|
|
@ -68,9 +68,10 @@ page {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
.swiper {
|
.swiper {
|
||||||
|
--height: calc(var(--status-bar-height) + #{$tabbar-height} + var(--area-bottom-height));
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: calc(100vh - #{$page-ipx-footer-height} - var(--status-bar-height));
|
// height: calc(100vh - #{$page-ipx-footer-height} - var(--status-bar-height));
|
||||||
// height: calc(100vh - #{$tabbar-height});
|
height: calc(100vh - var(--height));
|
||||||
transition: height 0.3s ease-in-out;
|
transition: height 0.3s ease-in-out;
|
||||||
animation: fadeInAnimation 0.35s ease-in;
|
animation: fadeInAnimation 0.35s ease-in;
|
||||||
// &.swiper-narrow {
|
// &.swiper-narrow {
|
||||||
|
|
@ -104,7 +105,9 @@ page {
|
||||||
}
|
}
|
||||||
.swiper-narrow {
|
.swiper-narrow {
|
||||||
// height: calc(100vh - 620px - #{$tabbar-height} - var(--status-bar-height));
|
// height: calc(100vh - 620px - #{$tabbar-height} - var(--status-bar-height));
|
||||||
height: calc(100vh - 420px - #{$tabbar-height} - var(--status-bar-height));
|
height: calc(
|
||||||
|
100vh - 386px - #{$tabbar-height} - var(--area-bottom-height) - var(--status-bar-height)
|
||||||
|
);
|
||||||
transition: height 0.35s linear;
|
transition: height 0.35s linear;
|
||||||
margin-top: -200px;
|
margin-top: -200px;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -42,8 +42,9 @@
|
||||||
.active-content {
|
.active-content {
|
||||||
position: relative;
|
position: relative;
|
||||||
.swiper {
|
.swiper {
|
||||||
|
--height: calc(var(--status-bar-height) + #{$tabbar-height} + var(--area-bottom-height));
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: calc(100vh - #{$page-ipx-footer-height} - var(--status-bar-height));
|
height: calc(100vh - var(--height));
|
||||||
transition: height 0.3s ease-in-out;
|
transition: height 0.3s ease-in-out;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -117,7 +117,8 @@
|
||||||
}
|
}
|
||||||
&-btn {
|
&-btn {
|
||||||
padding: 15px 20px;
|
padding: 15px 20px;
|
||||||
border: 1px solid #fff;
|
/* prettier-ignore */
|
||||||
|
border: 1PX solid #fff;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
|
||||||
|
|
@ -70,7 +70,8 @@
|
||||||
}
|
}
|
||||||
&-btn {
|
&-btn {
|
||||||
padding: 15px 20px;
|
padding: 15px 20px;
|
||||||
border: 1px solid #fff;
|
/* prettier-ignore */
|
||||||
|
border: 1PX solid #fff;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
|
||||||
|
|
@ -278,7 +278,8 @@
|
||||||
}
|
}
|
||||||
&-btn {
|
&-btn {
|
||||||
padding: 15px 20px;
|
padding: 15px 20px;
|
||||||
border: 1px solid #fff;
|
/* prettier-ignore */
|
||||||
|
border: 2px solid #fff;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue