|
@@ -18,7 +18,7 @@
|
|
@dragstop="resizestop"
|
|
@dragstop="resizestop"
|
|
:preventActiveBehavior="true"
|
|
:preventActiveBehavior="true"
|
|
>
|
|
>
|
|
- <div class="wall" ></div>
|
|
|
|
|
|
+ <div class="wall"></div>
|
|
<div class="showBtnList">
|
|
<div class="showBtnList">
|
|
<el-popover placement="bottom" trigger="hover">
|
|
<el-popover placement="bottom" trigger="hover">
|
|
<div class="popover-container" style="text-align: center">
|
|
<div class="popover-container" style="text-align: center">
|
|
@@ -120,6 +120,7 @@ export default {
|
|
this.setBtnStatus(this.$route);
|
|
this.setBtnStatus(this.$route);
|
|
// document.onfullscreenchange = this.resizeI;
|
|
// document.onfullscreenchange = this.resizeI;
|
|
window.addEventListener("resize", this.resizeWindow);
|
|
window.addEventListener("resize", this.resizeWindow);
|
|
|
|
+ // document.querySelector(".app-main").addEventListener("resize",this.resizeMain)
|
|
},
|
|
},
|
|
beforeDestroy() {},
|
|
beforeDestroy() {},
|
|
methods: {
|
|
methods: {
|
|
@@ -153,6 +154,13 @@ export default {
|
|
if (!this.fullscreen) {
|
|
if (!this.fullscreen) {
|
|
this.h = Math.abs(e.height);
|
|
this.h = Math.abs(e.height);
|
|
this.w = Math.abs(e.width);
|
|
this.w = Math.abs(e.width);
|
|
|
|
+ if (e.top < 135) {
|
|
|
|
+ this.y = 135;
|
|
|
|
+ this.isShow = false;
|
|
|
|
+ this.$nextTick((res) => {
|
|
|
|
+ this.isShow = true;
|
|
|
|
+ });
|
|
|
|
+ }
|
|
}
|
|
}
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
this.isResizing = false;
|
|
this.isResizing = false;
|
|
@@ -160,12 +168,10 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
onResizing(e) {
|
|
onResizing(e) {
|
|
- // console.log(e)
|
|
|
|
this.isResizing = true;
|
|
this.isResizing = true;
|
|
- this.x = e.left
|
|
|
|
- this.y = e.top
|
|
|
|
|
|
+ this.x = e.left;
|
|
|
|
+ this.y = e.top;
|
|
if (e.top < 135) {
|
|
if (e.top < 135) {
|
|
- // console.log('来了')
|
|
|
|
this.y = 135;
|
|
this.y = 135;
|
|
// document.documentElement.querySelector("#instructions").style.top =
|
|
// document.documentElement.querySelector("#instructions").style.top =
|
|
// "135px";
|
|
// "135px";
|
|
@@ -189,15 +195,18 @@ export default {
|
|
fullPageBook() {
|
|
fullPageBook() {
|
|
this.isShow = false;
|
|
this.isShow = false;
|
|
this.$nextTick((res) => {
|
|
this.$nextTick((res) => {
|
|
- const bodyEle = document.querySelector(".app-main");
|
|
|
|
this.h = this.docY - this.y;
|
|
this.h = this.docY - this.y;
|
|
- // document.querySelector('#instructions .content-container').style.width = this.w+'px'
|
|
|
|
|
|
+ const bodyEle = document.querySelector(".app-main");
|
|
this.w = bodyEle.clientWidth;
|
|
this.w = bodyEle.clientWidth;
|
|
this.x = 210;
|
|
this.x = 210;
|
|
this.y = 135;
|
|
this.y = 135;
|
|
this.isShow = true;
|
|
this.isShow = true;
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ // resizeMain(){
|
|
|
|
+ // // const bodyEle = document.querySelector(".app-main");
|
|
|
|
+ // // this.w =
|
|
|
|
+ // },
|
|
async showInstructions() {
|
|
async showInstructions() {
|
|
this.initSize();
|
|
this.initSize();
|
|
if (!this.isShow) {
|
|
if (!this.isShow) {
|
|
@@ -273,8 +282,6 @@ export default {
|
|
console.log(this.isShowBtn);
|
|
console.log(this.isShowBtn);
|
|
this.$emit("checkShow", this.isShowBtn);
|
|
this.$emit("checkShow", this.isShowBtn);
|
|
},
|
|
},
|
|
- showFullPage() {},
|
|
|
|
- resetVideo() {},
|
|
|
|
gotoIns() {
|
|
gotoIns() {
|
|
let str = this.url.replace("&c=1", "");
|
|
let str = this.url.replace("&c=1", "");
|
|
this.$router.push({
|
|
this.$router.push({
|
|
@@ -298,6 +305,12 @@ export default {
|
|
|
|
|
|
fullscreen() {
|
|
fullscreen() {
|
|
const bodyEle = document.querySelector(".app-main");
|
|
const bodyEle = document.querySelector(".app-main");
|
|
|
|
+ console.log(
|
|
|
|
+ this.h == this.docY - this.y,
|
|
|
|
+ this.w == bodyEle.clientWidth,
|
|
|
|
+ this.x == 210,
|
|
|
|
+ this.y == 135
|
|
|
|
+ );
|
|
// this.h = this.docY - this.y;
|
|
// this.h = this.docY - this.y;
|
|
return (
|
|
return (
|
|
this.h == this.docY - this.y &&
|
|
this.h == this.docY - this.y &&
|