代码优化
This commit is contained in:
parent
84cc080530
commit
c2e96f8deb
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue