|
@@ -851,7 +851,7 @@ export default {
|
|
|
pdfUrl:
|
|
|
"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E4%B8%8A%E8%AF%BE%E8%AF%BE%E4%BB%B6---%E4%BA%94%E4%B8%8Bintroduce%20a%20festival%20%28Final%20%29%281%291661829428281.pdf",
|
|
|
pptImgUrl: "",
|
|
|
- ppage: 2,
|
|
|
+ ppage: 0,
|
|
|
full: false,
|
|
|
pageTotal: 0,
|
|
|
howTools: 0,
|
|
@@ -1627,6 +1627,12 @@ export default {
|
|
|
this.isBlock = 7;
|
|
|
},
|
|
|
playVideo() {
|
|
|
+ if (
|
|
|
+ this.playerO[0] &&
|
|
|
+ this.videoList[0].src == this.playerO[0].sources[0].src
|
|
|
+ ) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
var d = JSON.parse(JSON.stringify(this.playerOptions));
|
|
|
// for (var i = 0; i < this.videoList.length; i++) {
|
|
|
d.sources[0].src = this.videoList[0].src;
|
|
@@ -1742,6 +1748,7 @@ export default {
|
|
|
this.tools[this.ppage - 1].file.length
|
|
|
) {
|
|
|
} else {
|
|
|
+ this.playerO = {}
|
|
|
this.videoBlock = 0;
|
|
|
}
|
|
|
}
|
|
@@ -1931,7 +1938,7 @@ export default {
|
|
|
} catch (error) {
|
|
|
_res = res.data[0][0].page;
|
|
|
}
|
|
|
- this.setPptData(_res)
|
|
|
+ this.setPptData(_res);
|
|
|
}
|
|
|
console.log(res);
|
|
|
})
|
|
@@ -1940,7 +1947,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
setPptData(res) {
|
|
|
- let _res = res
|
|
|
+ let _res = res;
|
|
|
this.handle = _res;
|
|
|
if (
|
|
|
_res.type == 2 &&
|
|
@@ -1955,9 +1962,9 @@ export default {
|
|
|
let a = this.$refs.zVideo;
|
|
|
|
|
|
if (handle.isPlay == 1) {
|
|
|
- a.player.play();
|
|
|
+ this.$refs.zVideo.player.play();
|
|
|
} else if (handle.isPlay == 2) {
|
|
|
- a.player.pause();
|
|
|
+ this.$refs.zVideo.player.pause();
|
|
|
}
|
|
|
} else if (this.$refs.zVideo) {
|
|
|
this.$refs.zVideo.player.pause();
|
|
@@ -2031,7 +2038,9 @@ export default {
|
|
|
e.data.info.docId == _this.cid
|
|
|
) {
|
|
|
// _this.data[e.data.info.id] = e.data.info.content;
|
|
|
- this.setPptData(e.data.info.content)
|
|
|
+ setTimeout(() => {
|
|
|
+ _this.setPptData(e.data.info.content);
|
|
|
+ }, 50);
|
|
|
}
|
|
|
_this.$forceUpdate();
|
|
|
});
|