From 11361687b8b6a4d9a66a8ed23da723527a3d0edd Mon Sep 17 00:00:00 2001 From: luoshiwen <1140456899@qq.com> Date: Wed, 12 Apr 2023 15:22:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=89=E7=BB=B4=E5=86=85=E5=AE=B9=E6=95=B4?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 52 ++++++++++++++++++++++++++-------------------------- 1 file changed, 26 insertions(+), 26 deletions(-) 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);