From ff5dbae3a446912397f7cb0cb8b5fbb93a644b4d Mon Sep 17 00:00:00 2001 From: linxi Date: Mon, 21 Oct 2024 14:21:43 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A2490=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=E6=88=91=E7=9A=84=E6=94=B6?= =?UTF-8?q?=E8=97=8F=E2=80=94=E5=8D=83=E5=8E=BF=E7=9A=84=E6=94=B6=E8=97=8F?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=8F=AA=E6=9C=89=E4=B8=80=E4=B8=AA=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E6=B2=A1=E6=9C=89=E9=9D=A0=E5=B7=A6=E6=8E=92=E5=88=97?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg_user/views/myFavorite.vue | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/pkg_user/views/myFavorite.vue b/pkg_user/views/myFavorite.vue index a72e70b..f287df5 100644 --- a/pkg_user/views/myFavorite.vue +++ b/pkg_user/views/myFavorite.vue @@ -799,28 +799,35 @@ export default { } } .county-list-wrap { - display: flex; - flex-wrap: wrap; - // width: 710rpx; - justify-content: center; - margin: 0 auto; + // display: flex; + // flex-wrap: wrap; + // // width: 710rpx; + // justify-content: flex-start; + display: grid; + grid-template-columns: 1fr 1fr; + margin: 0 32rpx; background-color: #f5f5f5; + grid-column-gap: 10px; + grid-row-gap: 10px; .county-item { - width: 344rpx; + // width: 320rpx; height: 440rpx; padding: 12rpx; - margin: 0 22rpx 22rpx 0; + // margin: 0 22rpx 22rpx 0; box-sizing: border-box; border-radius: 16rpx; background-color: #fff; - &:nth-child(2n) { - margin-right: 0; - } + display: flex; + align-items: center; + flex-direction: column; + // &:nth-child(2n) { + // margin-right: 0; + // } .img-wrap { position: relative; .cover { display: block; - width: 320rpx; + width: 300rpx; height: 280rpx; border-radius: 16rpx; } @@ -832,6 +839,7 @@ export default { } } .county-info { + width: 100%; .name { width: 100%; padding: 10rpx 0 0 0;