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天内发货 + +