|
@@ -2,8 +2,8 @@
|
|
|
<div>
|
|
|
<Logo />
|
|
|
<RightMenu @toggle-menu="handleNavi" />
|
|
|
- <Container></Container>
|
|
|
- <NavigationBar @change-scene="handleChangeScene"/>
|
|
|
+ <Container :url="currentScene"></Container>
|
|
|
+ <NavigationBar :show="navi" @change-scene="handleChangeScene" />
|
|
|
</div>
|
|
|
</template>
|
|
|
<script setup>
|
|
@@ -14,20 +14,20 @@ import Container from './components/Container.vue';
|
|
|
import NavigationBar from './components/NavigationBar.vue';
|
|
|
import config from './config.json'
|
|
|
const data = ref([])
|
|
|
-console.log('config', config)
|
|
|
+
|
|
|
data.value = config
|
|
|
provide('data', data)
|
|
|
|
|
|
-
|
|
|
const navi = ref(false)
|
|
|
+const currentScene = ref('https://houseoss.4dkankan.com/uic/UICcode/hp1/tour.html')
|
|
|
const handleNavi = () => {
|
|
|
navi.value = !navi.value
|
|
|
console.log('navi', navi.value)
|
|
|
}
|
|
|
|
|
|
const handleChangeScene = (item) => {
|
|
|
-
|
|
|
console.log('handleChangeScene', item)
|
|
|
+ currentScene.value = item.url
|
|
|
}
|
|
|
|
|
|
|