From c621b7453b1834180fe46895a2f044d6ac51c982 Mon Sep 17 00:00:00 2001 From: liudan <18634735655@163.com> Date: Sun, 21 May 2023 16:15:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/components/sh-goods-card.vue | 9 ++++++--- pages/index/components/sh-grid.vue | 10 ++++++++-- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/pages/index/components/sh-goods-card.vue b/pages/index/components/sh-goods-card.vue index 4fa62a7..5ea50eb 100644 --- a/pages/index/components/sh-goods-card.vue +++ b/pages/index/components/sh-goods-card.vue @@ -3,7 +3,7 @@ - + @@ -323,6 +323,7 @@ overflow: hidden; .shopImg{ height: 400upx; + overflow: hidden; background: #D3D3D3; box-shadow: 0upx 6upx 16upx 0upx rgba(25,25,25,0.05); border-radius: 20upx 20upx 0upx 0upx; @@ -332,7 +333,9 @@ .goods-img { // width: 260rpx; // height: 260rpx; - height:100%; + // height:100%; + height:auto; + width: 100%; background-color: #f5f5f5; // border-radius: 6rpx; } @@ -431,7 +434,7 @@ align-items: center; image{ - width:180upx; + width:90upx; height:auto } text{ diff --git a/pages/index/components/sh-grid.vue b/pages/index/components/sh-grid.vue index 7975701..b937ec5 100644 --- a/pages/index/components/sh-grid.vue +++ b/pages/index/components/sh-grid.vue @@ -1,8 +1,14 @@