From 8360d1e94639af0b8ad8a66fcd8aa1f680efaae8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E9=A3=9E=E6=B4=8B?= <15778543+xufeiyang6017@user.noreply.gitee.com> Date: Sat, 3 Jan 2026 15:03:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BA=95=E9=83=A8=E6=8F=90?= =?UTF-8?q?=E7=A4=BA'=E8=B4=A7=E6=BA=90=E6=AD=A3=E5=9C=A8=E5=BF=AB?= =?UTF-8?q?=E9=A9=AC=E5=8A=A0=E9=9E=AD=E7=9A=84=E8=B5=B6=E6=9D=A5'?= =?UTF-8?q?=E8=A2=AB=E9=81=AE=E6=8C=A1=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 移除scroll-view强制高度限制,改为自适应高度 2. 简化底部提示显示条件,只要有商品数据就显示 3. 修复网格容器固定高度问题,改为自适应 4. 增加底部安全区域,确保提示不被遮挡 --- pages/index/index.wxml | 5 +++-- pages/index/index.wxss | 20 +++++++++----------- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/pages/index/index.wxml b/pages/index/index.wxml index a749c28..2d1fa5c 100644 --- a/pages/index/index.wxml +++ b/pages/index/index.wxml @@ -136,7 +136,7 @@ > - + - + 货源正在快马加鞭的赶来 + 📦 diff --git a/pages/index/index.wxss b/pages/index/index.wxss index 1ab4b60..57a50f1 100644 --- a/pages/index/index.wxss +++ b/pages/index/index.wxss @@ -103,8 +103,9 @@ page { .goods-list { flex: 1; padding-top: 240rpx; - height: 100%; - min-height: 100vh; + padding-bottom: 20rpx; + height: auto; + min-height: auto; box-sizing: border-box; overflow-y: auto; -webkit-overflow-scrolling: touch; @@ -141,18 +142,15 @@ page { /* 确保滚动视图有正确的容器高度 */ .goods-section { + flex: 1; + display: flex; + flex-direction: column; height: auto; - min-height: calc(100vh - 60rpx); + min-height: auto; position: relative; background: #f5f5f5; - padding-bottom: calc(env(safe-area-inset-bottom) ); -} - -.goods-list { - height: auto; - box-sizing: border-box; - background: #f5f5f5; - padding-bottom: calc(env(safe-area-inset-bottom) ); + padding-bottom: calc(env(safe-area-inset-bottom) + 120rpx); + overflow: hidden; } /* 标题样式 */