Просмотр исходного кода

fix: 商品图样式问题修复

liangan 4 недель назад
Родитель
Сommit
edf4cebe0b
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      src/pages/mine/myFavorite.vue
  2. 1 1
      src/pages/search/search.vue

+ 1 - 1
src/pages/mine/myFavorite.vue

@@ -47,7 +47,7 @@ async function queryList(pageNo: number, pageSize: number) {
     <template v-if="dataList.length">
       <view class="px-24rpx py-24rpx">
         <view class="grid grid-cols-2 gap-22rpx">
-          <product v-for="(item, index) in dataList" :key="index" :height="340" :item="item" @item-click="toPage('/pages/productDetail/productDetail', { productId: item.productId })" />
+          <product v-for="(item, index) in dataList" :key="index" width="100%" :height="340" :item="item" @item-click="toPage('/pages/productDetail/productDetail', { productId: item.productId })" />
         </view>
       </view>
     </template>

+ 1 - 1
src/pages/search/search.vue

@@ -136,7 +136,7 @@ onLoad(() => {
     </template>
     <view class="px-24rpx pb-24rpx">
       <view class="grid grid-cols-2 gap-22rpx">
-        <product v-for="(item, index) in dataList" :key="index" :height="340" :item="item" />
+        <product v-for="(item, index) in dataList" :key="index" width="100%" :height="340" :item="item" />
       </view>
     </view>
   </z-paging>