From d9d1caf3d4d6750cdaf1d178e2402cc9f83bcbfd Mon Sep 17 00:00:00 2001 From: fanfan Date: Fri, 11 Oct 2024 19:44:02 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/cart/index.vue | 11 ++++- pages/index/index.vue | 101 ++++++++++++++++++++++-------------------- pages/user/index.vue | 12 ++++- 3 files changed, 73 insertions(+), 51 deletions(-) diff --git a/pages/cart/index.vue b/pages/cart/index.vue index 9c655ee..8048db7 100644 --- a/pages/cart/index.vue +++ b/pages/cart/index.vue @@ -541,16 +541,23 @@ margin: 0rpx 0 20rpx 0; .pic { + position: relative; width: 100%; align-items: center; display: flex; - height: 256rpx; + overflow: hidden; + width: 100%; + height: 0; + padding-bottom: 100%; overflow: hidden; image { width: 100%; height: 100%; - + object-fit: cover; + position: absolute; + left: 0; + top: 0 } } diff --git a/pages/index/index.vue b/pages/index/index.vue index 9d6b7ff..42916d3 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -290,24 +290,24 @@ --> - - - {{item.goods_source}} - - - {{Number(item.discount)}}折 - - - - 24小时内发货 - 48小时内发货 - 72小时内发货 - 7天内发货 - 15天内发货 - 30天内发货 - 45天内发货 - + + + {{item.goods_source}} + + + {{Number(item.discount)}}折 + + + 24小时内发货 + 48小时内发货 + 72小时内发货 + 7天内发货 + 15天内发货 + 30天内发货 + 45天内发货 + +