Bläddra i källkod

feat: sku图片尺寸问题修改

liangan 1 månad sedan
förälder
incheckning
f6af201183

+ 2 - 2
src/pages/bestSellers/bestSellers.vue

@@ -85,8 +85,8 @@ function getRankNumber(index: number) {
           <view class="h-160rpx w-160rpx shrink-0">
             <image
               :src="item.image"
-              class="w-full"
-              mode="widthFix"
+              class="h-full w-full"
+              mode="aspectFit"
             />
           </view>
           <!-- 左上角TOP标签 -->

+ 4 - 4
src/pages/myOrders/myOrders.vue

@@ -101,12 +101,12 @@ onLoad(() => {
           <wd-text size="26rpx" type="primary" :text="orderStatusEnumData.find((i:any) => i.code === item.status)?.name" />
         </view>
       </template>
-      <view class="flex items-center gap-24rpx">
-        <view class="h-140rpx w-140rpx shrink-0">
+      <view class="flex justify-center gap-24rpx">
+        <view class="h-140rpx w-140rpx shrink-0 text-center">
           <image
             :src="item?.orderInfoVO?.[0]?.image"
-            class="w-full"
-            mode="widthFix"
+            class="h-full w-full"
+            mode="aspectFit"
           />
         </view>
         <view class="flex-1">

+ 2 - 2
src/pages/myOrders/orderDetail.vue

@@ -247,8 +247,8 @@ function handleDialogClose() {
           <view class="h-140rpx w-140rpx shrink-0">
             <image
               :src="detail?.orderInfoVO?.[0]?.image"
-              class="w-full"
-              mode="widthFix"
+              class="h-full w-full"
+              mode="aspectFit"
             />
           </view>
           <view class="flex-1">

+ 1 - 0
src/pages/productDetail/checkOut.vue

@@ -159,6 +159,7 @@ function handleDialogClose() {
         <image
           :src="orderDetail.image"
           class="h-160rpx w-160rpx shrink-0"
+          mode="aspectFit"
         />
         <view class="flex-1">
           <view class="line-clamp-2 text-28rpx">

+ 1 - 0
src/pages/productDetail/productDetail.vue

@@ -507,6 +507,7 @@ onShow(async () => {
         <image
           :src="matchedAttrValue.image || detail?.image"
           class="h-160rpx w-160rpx shrink-0"
+          mode="aspectFit"
         />
         <view class="flex-1">
           <view class="line-clamp-2 mb-32rpx text-28rpx">