代码优化

This commit is contained in:
BianLzhaoMin 2025-01-16 09:56:57 +08:00
parent 84cc080530
commit c2e96f8deb
1 changed files with 10 additions and 13 deletions

View File

@ -279,12 +279,8 @@ getSwiperListData()
<!-- 轮播图 --> <!-- 轮播图 -->
<div class="swiper-img"> <div class="swiper-img">
<el-carousel :interval="5000" arrow="always" style="height: 100%"> <el-carousel :interval="5000" arrow="always" style="height: 100%">
<el-carousel-item <template v-for="(item, index) in swiperList" :key="index">
v-for="(item, index) in swiperList" <el-carousel-item style="height: 100%" v-if="item.delFlag == 0">
:key="index"
style="height: 100%"
v-show="item.delFlag == 0"
>
<el-image <el-image
style="width: 100%; height: 100%; cursor: pointer" style="width: 100%; height: 100%; cursor: pointer"
:src="item.slidePicture" :src="item.slidePicture"
@ -292,6 +288,7 @@ getSwiperListData()
@click="onClickSwiper(item)" @click="onClickSwiper(item)"
/> />
</el-carousel-item> </el-carousel-item>
</template>
</el-carousel> </el-carousel>
</div> </div>
</div> </div>