|
@@ -127,11 +127,12 @@
|
|
|
:cleanup-styles-on-destroy="true"
|
|
|
>
|
|
|
<swiper-slide
|
|
|
+ class="swiper-no-swiping"
|
|
|
v-for="(item, index) in activeRow.urlList"
|
|
|
:key="index"
|
|
|
>
|
|
|
- <!-- v-if="activeIndex == index" -->
|
|
|
- <div class="videoWrap">
|
|
|
+ <!-- -->
|
|
|
+ <div class="videoWrap" v-if="activeIndex == index">
|
|
|
<video
|
|
|
style="width: 480px"
|
|
|
:src="item"
|
|
@@ -251,6 +252,7 @@ export default {
|
|
|
activeRow: null,
|
|
|
activeIndex: 0,
|
|
|
swiperOptions: {
|
|
|
+ noSwiping : true,
|
|
|
// autoHeight: true,
|
|
|
observer: true, //修改swiper自己或子元素时,自动初始化swiper
|
|
|
observeParents: true, //修改swiper的父元素时,自动初始化swiper
|
|
@@ -263,7 +265,7 @@ export default {
|
|
|
},
|
|
|
on: {
|
|
|
slideChange: (val) => {
|
|
|
- // this.activeIndex = val.realIndex;
|
|
|
+ this.activeIndex = val.realIndex;
|
|
|
},
|
|
|
},
|
|
|
|