|
@@ -2,7 +2,8 @@
|
|
<!-- <template v-if="isMo">
|
|
<!-- <template v-if="isMo">
|
|
<NoMobile />
|
|
<NoMobile />
|
|
</template> -->
|
|
</template> -->
|
|
- <div >
|
|
|
|
|
|
+ <div>
|
|
|
|
+ <Opening @done="onOpeningDone" />
|
|
<Logo :id="currentSceneId" />
|
|
<Logo :id="currentSceneId" />
|
|
<RightMenu @toggle-menu="handleNavi" @change-scene="handleChangeScene" />
|
|
<RightMenu @toggle-menu="handleNavi" @change-scene="handleChangeScene" />
|
|
<Container :url="currentScene"></Container>
|
|
<Container :url="currentScene"></Container>
|
|
@@ -15,12 +16,14 @@ import Logo from './components/Logo.vue';
|
|
import RightMenu from './components/RightMenu.vue';
|
|
import RightMenu from './components/RightMenu.vue';
|
|
import Container from './components/Container.vue';
|
|
import Container from './components/Container.vue';
|
|
import NavigationBar from './components/NavigationBar.vue';
|
|
import NavigationBar from './components/NavigationBar.vue';
|
|
|
|
+import Opening from './components/Opening.vue';
|
|
// import NoMobile from './components/Nomobile.vue';
|
|
// import NoMobile from './components/Nomobile.vue';
|
|
import MobileDetect from 'mobile-detect';
|
|
import MobileDetect from 'mobile-detect';
|
|
|
|
|
|
import config from './config.json'
|
|
import config from './config.json'
|
|
const data = ref([])
|
|
const data = ref([])
|
|
const isMo = ref(false)
|
|
const isMo = ref(false)
|
|
|
|
+const isOpening = ref(false)
|
|
const md = new MobileDetect(window.navigator.userAgent);
|
|
const md = new MobileDetect(window.navigator.userAgent);
|
|
data.value = config
|
|
data.value = config
|
|
provide('data', data)
|
|
provide('data', data)
|
|
@@ -33,12 +36,16 @@ const handleNavi = () => {
|
|
navi.value = !navi.value
|
|
navi.value = !navi.value
|
|
console.log('navi', navi.value)
|
|
console.log('navi', navi.value)
|
|
}
|
|
}
|
|
|
|
+const onOpeningDone = () => {
|
|
|
|
+ isOpening.value = true
|
|
|
|
+
|
|
|
|
+}
|
|
|
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
if (md.mobile()) {
|
|
if (md.mobile()) {
|
|
- console.log('isMo')
|
|
|
|
|
|
+ // console.log('isMo')
|
|
isMo.value = true
|
|
isMo.value = true
|
|
- document.body.classList.add('isMo')
|
|
|
|
|
|
+ document.body.classList.add('isMo')
|
|
// return
|
|
// return
|
|
}
|
|
}
|
|
|
|
|