|
@@ -38,13 +38,15 @@ export default {
|
|
docY: "",
|
|
docY: "",
|
|
isShow: false,
|
|
isShow: false,
|
|
showVideo: false,
|
|
showVideo: false,
|
|
- isResizing:false
|
|
|
|
|
|
+ isResizing:false,
|
|
|
|
+ src:""
|
|
};
|
|
};
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
this.initSize();
|
|
this.initSize();
|
|
// this.y = 130;
|
|
// this.y = 130;
|
|
window.addEventListener("resize", this.resizeWindow);
|
|
window.addEventListener("resize", this.resizeWindow);
|
|
|
|
+ this.url = this.$route.query.url;
|
|
this.isShow = true;
|
|
this.isShow = true;
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -79,7 +81,7 @@ export default {
|
|
return this.h - 30 + "px";
|
|
return this.h - 30 + "px";
|
|
},
|
|
},
|
|
videoSrc(){
|
|
videoSrc(){
|
|
- return this.$route.query.url
|
|
|
|
|
|
+ return this.src
|
|
}
|
|
}
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
@@ -88,6 +90,7 @@ export default {
|
|
this.$nextTick((res) => {
|
|
this.$nextTick((res) => {
|
|
let outFrame = this.$refs.iframe;
|
|
let outFrame = this.$refs.iframe;
|
|
let outFrameWindow = this.$refs.iframe.contentWindow;
|
|
let outFrameWindow = this.$refs.iframe.contentWindow;
|
|
|
|
+ console.log(outFrame)
|
|
setTimeout((res) => {
|
|
setTimeout((res) => {
|
|
let rightFrame = outFrameWindow.document.querySelector(
|
|
let rightFrame = outFrameWindow.document.querySelector(
|
|
"#mainFrame"
|
|
"#mainFrame"
|
|
@@ -108,10 +111,6 @@ export default {
|
|
);
|
|
);
|
|
this.src = e.path[i].getAttribute("title");
|
|
this.src = e.path[i].getAttribute("title");
|
|
this.showVideo = true;
|
|
this.showVideo = true;
|
|
- this.$nextTick((res) => {
|
|
|
|
- this.isShow = false;
|
|
|
|
- });
|
|
|
|
-
|
|
|
|
// this.isShow = false;
|
|
// this.isShow = false;
|
|
break;
|
|
break;
|
|
}
|
|
}
|