代码优化
This commit is contained in:
parent
84cc080530
commit
c2e96f8deb
|
|
@ -279,19 +279,16 @@ getSwiperListData()
|
|||
<!-- 轮播图 -->
|
||||
<div class="swiper-img">
|
||||
<el-carousel :interval="5000" arrow="always" style="height: 100%">
|
||||
<el-carousel-item
|
||||
v-for="(item, index) in swiperList"
|
||||
:key="index"
|
||||
style="height: 100%"
|
||||
v-show="item.delFlag == 0"
|
||||
>
|
||||
<el-image
|
||||
style="width: 100%; height: 100%; cursor: pointer"
|
||||
:src="item.slidePicture"
|
||||
fit="cover"
|
||||
@click="onClickSwiper(item)"
|
||||
/>
|
||||
</el-carousel-item>
|
||||
<template v-for="(item, index) in swiperList" :key="index">
|
||||
<el-carousel-item style="height: 100%" v-if="item.delFlag == 0">
|
||||
<el-image
|
||||
style="width: 100%; height: 100%; cursor: pointer"
|
||||
:src="item.slidePicture"
|
||||
fit="cover"
|
||||
@click="onClickSwiper(item)"
|
||||
/>
|
||||
</el-carousel-item>
|
||||
</template>
|
||||
</el-carousel>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue