浏览代码

fix: 移除轮播图容器的内边距并设置正确高度

ylong 3 天之前
父节点
当前提交
5ab9343728
共有 1 个文件被更改,包括 3 次插入9 次删除
  1. 3 9
      src/views/salesOps/decoration/index.vue

+ 3 - 9
src/views/salesOps/decoration/index.vue

@@ -143,18 +143,12 @@
                     <!-- 4. Carousel & Hot Sales -->
                     <div class="flex mt-2 px-2 gap-2">
                         <div
-                            class="w-1/2 bg-white rounded p-2 h-32 flex items-center justify-center bg-gray-200 overflow-hidden relative">
+                            class="w-1/2 bg-white rounded h-32 flex items-center justify-center bg-gray-200 overflow-hidden relative">
                             <template v-if="hasLeftBannerData">
-                                <el-carousel indicator-position="none" arrow="never" :interval="3000"
+                                <el-carousel indicator-position="none" arrow="never" :interval="3000" height="100%"
                                     class="w-full h-full">
                                     <el-carousel-item v-for="(item, index) in leftBannerData" :key="index">
                                         <el-image :src="item.imgUrl" class="w-full h-full object-cover rounded">
-                                            <template #error>
-                                                <div
-                                                    class="w-full h-full bg-gray-300 flex items-center justify-center text-xs text-gray-500">
-                                                    图裂了
-                                                </div>
-                                            </template>
                                         </el-image>
                                     </el-carousel-item>
                                 </el-carousel>
@@ -162,7 +156,7 @@
                             <span v-else class="text-gray-500">左轮播</span>
                         </div>
                         <div
-                            class="w-1/2 bg-white rounded p-2 h-32 flex items-center justify-center bg-gray-200 overflow-hidden relative">
+                            class="w-1/2 bg-white rounded h-32 flex items-center justify-center bg-gray-200 overflow-hidden relative">
                             <template v-if="hasRightBannerData">
                                 <div
                                     class="w-full h-full bg-gradient-to-b from-[#FFE0D7] to-[#FFF5F2] rounded p-2 flex flex-col">