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