From 7f324466bfae69b49e1ecb071759c85004064b24 Mon Sep 17 00:00:00 2001 From: iven Date: Fri, 22 May 2026 20:02:23 +0800 Subject: [PATCH] =?UTF-8?q?fix(mp):=20=E5=95=86=E5=93=81=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E9=A1=B5=E5=BA=95=E9=83=A8=E5=A4=87=E6=B3=A8=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E4=B8=8D=E5=85=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除 footer 的 position: absolute,改为 flex-shrink:0 自然固定 - 移除 scroll 区域的 padding-bottom: 90px 硬编码留白 - footer 添加 safe-area-inset-bottom 适配全面屏 --- apps/miniprogram/src/pages/pkg-mall/product/index.scss | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/apps/miniprogram/src/pages/pkg-mall/product/index.scss b/apps/miniprogram/src/pages/pkg-mall/product/index.scss index 5785939..369da76 100644 --- a/apps/miniprogram/src/pages/pkg-mall/product/index.scss +++ b/apps/miniprogram/src/pages/pkg-mall/product/index.scss @@ -33,8 +33,8 @@ &__scroll { flex: 1; - overflow: auto; - padding-bottom: 90px; + overflow-y: auto; + -webkit-overflow-scrolling: touch; } // 商品大图 @@ -173,13 +173,11 @@ // 底部操作栏 &__footer { - position: absolute; - bottom: 0; - left: 0; - right: 0; + flex-shrink: 0; background: $card; border-top: 1px solid $bd; padding: $sp-sm $sp-section; + padding-bottom: calc(#{$sp-sm} + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: $sp-sm;