diff --git a/src/App.vue b/src/App.vue index 7a13428..82de09f 100644 --- a/src/App.vue +++ b/src/App.vue @@ -59,7 +59,7 @@ C03 --> - + @@ -162,33 +162,33 @@ export default { handleBtn(e, i) { console.log(this.$refs.drop1); this.navLiState = !this.navLiState - // if (this.index == i && this.navLiState) { - // this.index = null - // if (i == 1) { - // this.state = !this.state; - // // console.log(this.state); - // this.$refs.dome.contentWindow.updateScene(this.state); - // } else if (i == 3) { - // this.$refs.dome.contentWindow.outHome(); - // } else if (i == 4) { - // this.transport = !this.transport; - // this.$refs.dome.contentWindow.transport(this.transport); - // } else if (i == 5) { - // this.hide = !this.hide; - // this.$refs.dome.contentWindow.hide(this.hide); - // } - // return - // } - this.liImgs[i].num++ + if (this.index == i && this.navLiState) { + this.index = null + if (i == 1) { + this.state = !this.state; + // console.log(this.state); + this.$refs.dome.contentWindow.updateScene(this.state); + } else if (i == 3) { + this.$refs.dome.contentWindow.outHome(); + } else if (i == 4) { + this.transport = !this.transport; + this.$refs.dome.contentWindow.transport(this.transport); + } else if (i == 5) { + this.hide = !this.hide; + this.$refs.dome.contentWindow.hide(this.hide); + } + return + } + // this.liImgs[i].num++ this.index = i // 还原初始值 - // this.state = false - // this.transport = false - // this.hide = false - // this.$refs.dome.contentWindow.updateScene(false); - // // this.$refs.dome.contentWindow.outHome(); - // this.$refs.dome.contentWindow.transport(false); - // this.$refs.dome.contentWindow.hide(false); + this.state = false + this.transport = false + this.hide = false + this.$refs.dome.contentWindow.updateScene(false); + // this.$refs.dome.contentWindow.outHome(); + this.$refs.dome.contentWindow.transport(false); + this.$refs.dome.contentWindow.hide(false); if (i == 1) { this.state = !this.state; // console.log(this.state);