|
@@ -112,25 +112,27 @@
|
|
width="940px"
|
|
width="940px"
|
|
append-to-body
|
|
append-to-body
|
|
:visible.sync="workVisible"
|
|
:visible.sync="workVisible"
|
|
|
|
+ v-if="workVisible"
|
|
|
|
|
|
>
|
|
>
|
|
<!-- activeUrl -->
|
|
<!-- activeUrl -->
|
|
<div class="sliderWrap">
|
|
<div class="sliderWrap">
|
|
|
|
+ {{activeRow.urlList.length}}
|
|
<div class="swiperWrap">
|
|
<div class="swiperWrap">
|
|
<swiper
|
|
<swiper
|
|
- v-if="activeRow"
|
|
|
|
ref="mySwiper"
|
|
ref="mySwiper"
|
|
:options="swiperOptions"
|
|
:options="swiperOptions"
|
|
:auto-update="true"
|
|
:auto-update="true"
|
|
:auto-destroy="false"
|
|
:auto-destroy="false"
|
|
- :delete-instance-on-destroy="true"
|
|
|
|
- :cleanup-styles-on-destroy="true"
|
|
|
|
|
|
+ :delete-instance-on-destroy="false"
|
|
|
|
+ :cleanup-styles-on-destroy="false"
|
|
>
|
|
>
|
|
<swiper-slide
|
|
<swiper-slide
|
|
class="swiper-no-swiping"
|
|
class="swiper-no-swiping"
|
|
v-for="(item, index) in activeRow.urlList"
|
|
v-for="(item, index) in activeRow.urlList"
|
|
:key="index"
|
|
:key="index"
|
|
>
|
|
>
|
|
|
|
+ {{activeIndex +'--'+index}}
|
|
<!-- -->
|
|
<!-- -->
|
|
<div class="videoWrap" v-if="activeIndex == index">
|
|
<div class="videoWrap" v-if="activeIndex == index">
|
|
<video
|
|
<video
|
|
@@ -256,6 +258,7 @@ export default {
|
|
// autoHeight: true,
|
|
// autoHeight: true,
|
|
observer: true, //修改swiper自己或子元素时,自动初始化swiper
|
|
observer: true, //修改swiper自己或子元素时,自动初始化swiper
|
|
observeParents: true, //修改swiper的父元素时,自动初始化swiper
|
|
observeParents: true, //修改swiper的父元素时,自动初始化swiper
|
|
|
|
+ observeSlideChildren:true,
|
|
speed: 300,
|
|
speed: 300,
|
|
loop: true,
|
|
loop: true,
|
|
pagination: ".swiper-pagination",
|
|
pagination: ".swiper-pagination",
|
|
@@ -265,6 +268,7 @@ export default {
|
|
},
|
|
},
|
|
on: {
|
|
on: {
|
|
slideChange: (val) => {
|
|
slideChange: (val) => {
|
|
|
|
+ console.log('掉用slideChange')
|
|
this.activeIndex = val.realIndex;
|
|
this.activeIndex = val.realIndex;
|
|
},
|
|
},
|
|
},
|
|
},
|
|
@@ -347,14 +351,17 @@ export default {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.activeCommit = res.data.rows;
|
|
this.activeCommit = res.data.rows;
|
|
this.activeIndex= 0;
|
|
this.activeIndex= 0;
|
|
|
|
+
|
|
this.workVisible = true;
|
|
this.workVisible = true;
|
|
|
|
+
|
|
|
|
+
|
|
// item.up = false
|
|
// item.up = false
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
closeWorkVisible() {
|
|
closeWorkVisible() {
|
|
this.activeUrl = "";
|
|
this.activeUrl = "";
|
|
- this.activeIndex= -1;
|
|
|
|
|
|
+ // this.activeIndex= -1;
|
|
},
|
|
},
|
|
prev(val) {
|
|
prev(val) {
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
@@ -363,7 +370,7 @@ export default {
|
|
},
|
|
},
|
|
next(val) {
|
|
next(val) {
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
- console.log(this.swiper.slideNext());
|
|
|
|
|
|
+ console.log(this.swiper.slideNext,this.swiper.slideNext());
|
|
this.swiper.slideNext();
|
|
this.swiper.slideNext();
|
|
});
|
|
});
|
|
},
|
|
},
|