三维内容整理
This commit is contained in:
parent
aad7616a31
commit
11361687b8
52
src/App.vue
52
src/App.vue
|
@ -59,7 +59,7 @@
|
|||
<el-dropdown-item @click="selectHomeN($event)">C03</el-dropdown-item> -->
|
||||
</el-dropdown-menu>
|
||||
</el-dropdown>
|
||||
<img v-else :src="s.num % 2 != 0 ? s.selectImg : s.img" alt="" />
|
||||
<img v-else :src="i==index ? s.selectImg : s.img" alt="" />
|
||||
</li>
|
||||
</ul>
|
||||
</header>
|
||||
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue