szr190 2 hafta önce
ebeveyn
işleme
58bf238195

+ 1 - 1
src/base/base.scss

@@ -103,7 +103,7 @@
103 103
         align-items: center;
104 104
         justify-content: center;
105 105
         margin-bottom: 22rpx;
106
-        margin-right: 48rpx;
106
+        margin-right: 20rpx;
107 107
         &:nth-child(3n) {
108 108
           margin-right: 0;
109 109
         }

+ 5 - 1
src/base/shop/details.vue

@@ -21,7 +21,11 @@
21 21
           <u-empty text="暂无简介" />
22 22
         </view>
23 23
         <view class="common-card-title u-margin-top-30">精品推荐</view>
24
-        <view class="common-card-list" v-if="content.facilities?.length > 0">
24
+        <view
25
+          class="common-card-list"
26
+          :class="content.facilities && content.facilities.length > 2 ? 'u-row-between' : ''"
27
+          v-if="content.facilities?.length > 0"
28
+        >
25 29
           <view class="card-list-item" v-for="(item, index) in content.facilities" :key="index">
26 30
             <view class="item-img-wrap">
27 31
               <image :src="pathPre + item.img" mode="aspectFill" />

+ 5 - 1
src/base/shop/detailsShop.vue

@@ -21,7 +21,11 @@
21 21
           <u-empty text="暂无简介" />
22 22
         </view>
23 23
         <view class="common-card-title u-margin-top-30">精品推荐</view>
24
-        <view class="common-card-list" v-if="content.facilities?.length > 0">
24
+        <view
25
+          class="common-card-list"
26
+          :class="content.facilities && content.facilities.length > 2 ? 'u-row-between' : ''"
27
+          v-if="content.facilities?.length > 0"
28
+        >
25 29
           <view class="card-list-item" v-for="(item, index) in content.facilities" :key="index">
26 30
             <view class="item-img-wrap">
27 31
               <image :src="pathPre + item.img" mode="aspectFill" />