添加 详情页 div 撑起 高度

This commit is contained in:
张成
2025-11-23 19:36:44 +08:00
parent f9b1454e76
commit 688e1b7e5e
2 changed files with 9 additions and 2 deletions

View File

@@ -29,7 +29,7 @@
padding-bottom: 0px !important;
background-color: transparent !important;
max-height: 100vh !important;
}
.nut-menu-bar {
@@ -120,6 +120,7 @@
display: flex;
flex-direction: column;
height: 280px;
.districtContent {
display: flex;
@@ -130,6 +131,7 @@
padding: 0;
gap: 0;
flex: 1; // 占满父容器剩余空间
overflow: hidden; // 确保子元素不会超出圆角
.districtTitleBox {
@@ -172,6 +174,7 @@
overflow-x: hidden;
overflow-y: auto;
height: 290px;
-webkit-overflow-scrolling: touch;
@@ -180,7 +183,8 @@
flex-direction: column;
align-items: flex-start;
gap: 0;
padding: 0;
padding: 0px;
padding-bottom: 12px;
.districtItem {
display: flex;
@@ -227,6 +231,7 @@
flex-direction: column;
padding-left: 20px;
padding-right: 20px;
padding-bottom: 12px;
.quickItem {
display: flex;

View File

@@ -213,6 +213,8 @@ function Index() {
</View>
</View>
<View className={styles["detail-page-bg"]} style={backgroundImage} />
<View style={{ paddingTop: `${totalHeight }px` }}> </View>
{/* swiper */}
<Carousel detail={detail} />
{/* content */}