代码优化

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,19 +279,16 @@ 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" <el-image
style="height: 100%" style="width: 100%; height: 100%; cursor: pointer"
v-show="item.delFlag == 0" :src="item.slidePicture"
> fit="cover"
<el-image @click="onClickSwiper(item)"
style="width: 100%; height: 100%; cursor: pointer" />
:src="item.slidePicture" </el-carousel-item>
fit="cover" </template>
@click="onClickSwiper(item)"
/>
</el-carousel-item>
</el-carousel> </el-carousel>
</div> </div>
</div> </div>