From 837feb0d75caee87d569cff657a02d3e431f0e4b Mon Sep 17 00:00:00 2001 From: evoxwht <442384644@qq.com> Date: Tue, 30 May 2023 15:01:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E7=B1=BB2=E5=9B=BE=E7=89=87=E5=A4=A7?= =?UTF-8?q?=E5=B0=8F=E5=9B=BA=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../uni-app/components/d_goodList/index.vue | 28 +++++++++++++------ 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/template/uni-app/components/d_goodList/index.vue b/template/uni-app/components/d_goodList/index.vue index d491f7ee6..dfc82a551 100644 --- a/template/uni-app/components/d_goodList/index.vue +++ b/template/uni-app/components/d_goodList/index.vue @@ -2,9 +2,12 @@ - {{$t(`秒杀`)}} - {{$t(`砍价`)}} - {{$t(`拼团`)}} + {{$t(`秒杀`)}} + {{$t(`砍价`)}} + {{$t(`拼团`)}} @@ -17,7 +20,8 @@ - {{$t(`立即购买`)}} + {{$t(`立即购买`)}} + @@ -26,7 +30,8 @@ - {{$t(`加入购物车`)}} + {{$t(`加入购物车`)}} + {{item.cart_num}} @@ -98,15 +103,20 @@ margin-bottom: 63rpx; .pictrue { - width: 100%; - height: 290rpx; + // width: 100%; + // height: 290rpx; border-radius: 16rpx; position: relative; + padding-top: 40%; image { + border-radius: 10rpx; + position: absolute; + top: 0; + left: 0; width: 100%; height: 100%; - border-radius: 10rpx; + object-fit: cover; } } @@ -186,4 +196,4 @@ } } } - + \ No newline at end of file