From 692468346ddd32a1d6fd912418cb80d51f713e14 Mon Sep 17 00:00:00 2001 From: LinCyJang Date: Wed, 14 Jan 2026 20:39:57 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A4791=20=E3=80=90=E5=95=86=E5=9F=8E?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E3=80=91=E7=89=B9=E8=89=B2=E7=A4=BC?= =?UTF-8?q?=E5=93=81=E9=A1=B5=E9=9D=A2=E2=80=94=E5=B1=95=E5=BC=80=E5=9F=8E?= =?UTF-8?q?=E5=B8=82=E5=88=97=E8=A1=A8=E6=97=B6=EF=BC=8C=E4=B8=8B=E6=96=B9?= =?UTF-8?q?=E5=95=86=E5=93=81=E5=9B=BE=E7=89=87=E9=81=AE=E6=8C=A1=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E5=8C=BA=E5=9F=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg_product/views/giftList.vue | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/pkg_product/views/giftList.vue b/pkg_product/views/giftList.vue index 798db4f..279c9b3 100644 --- a/pkg_product/views/giftList.vue +++ b/pkg_product/views/giftList.vue @@ -172,7 +172,7 @@ export default { padding: 30rpx 30rpx 0 30rpx; .scroll-x-wrap { position: relative; - height: 140rpx; + min-height: 140rpx; padding: 24rpx 80rpx 16rpx 24rpx; border-radius: 24rpx; background-color: #fff; @@ -181,8 +181,13 @@ export default { display: flex; flex-wrap: nowrap; overflow-x: auto; + max-height: 200rpx; + opacity: 1; &.hide { - display: none; + max-height: 0; + opacity: 0; + margin: 0; + overflow: hidden; } .item + .item { margin: 0 0 0 24rpx; @@ -202,22 +207,18 @@ export default { } } .list-show-all { - position: absolute; - top: 0; - left: 0; - right: 0; - z-index: 2; + display: flex; flex-wrap: wrap; - height: 0; - padding: 24rpx 80rpx 16rpx 24rpx; + padding: 0; border-radius: 24rpx; box-sizing: border-box; background-color: #fff; + max-height: 0; opacity: 0; + overflow: hidden; &.show { - height: auto; + max-height: 2000rpx; opacity: 1; - box-shadow: 0px 1px 4px rgba(0,0,0,0.16); } .item { margin: 0 24rpx 24rpx 0 !important;