|
@@ -1,12 +1,9 @@
|
|
<template>
|
|
<template>
|
|
<div
|
|
<div
|
|
- v-show="isReady"
|
|
|
|
:class="`more-content`"
|
|
:class="`more-content`"
|
|
>
|
|
>
|
|
<div
|
|
<div
|
|
ref="scrollTarget"
|
|
ref="scrollTarget"
|
|
- v-touch:swipe.left="onSwipeLeft"
|
|
|
|
- v-touch:swipe.right="onswipeRight"
|
|
|
|
class="scroll-target"
|
|
class="scroll-target"
|
|
>
|
|
>
|
|
<img
|
|
<img
|
|
@@ -301,14 +298,6 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <ProgressBar
|
|
|
|
- class="pagination"
|
|
|
|
- :totle-unit="4"
|
|
|
|
- :type="1"
|
|
|
|
- :cur-percentage="currentAnchorIdx"
|
|
|
|
- color-ac="#7B916B"
|
|
|
|
- color="#7B916B60"
|
|
|
|
- />
|
|
|
|
<BtnBack @click="router.replace('/?back=1')" />
|
|
<BtnBack @click="router.replace('/?back=1')" />
|
|
|
|
|
|
<OperationTip
|
|
<OperationTip
|
|
@@ -383,20 +372,10 @@ const route = useRoute()
|
|
const router = useRouter()
|
|
const router = useRouter()
|
|
const store = useStore()
|
|
const store = useStore()
|
|
|
|
|
|
-
|
|
|
|
-// 点击线上展厅
|
|
|
|
-const OpenScene = () => {
|
|
|
|
- const musicDom = document.getElementById("bg-music")
|
|
|
|
- musicDom.pause()
|
|
|
|
- router.replace('/scene')
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
const { windowSizeInCssForRef, windowSizeWhenDesignForRef } = useSizeAdapt()
|
|
const { windowSizeInCssForRef, windowSizeWhenDesignForRef } = useSizeAdapt()
|
|
|
|
|
|
-const windowWidthDesign = 1560
|
|
|
|
-const windowHeightDesign = 844
|
|
|
|
|
|
+const windowWidthDesign = 4674
|
|
|
|
+const windowHeightDesign = 1080
|
|
|
|
|
|
const scrollTarget = ref(null)
|
|
const scrollTarget = ref(null)
|
|
const { width: windowWidth, height: windowHeight } = useWindowSize()
|
|
const { width: windowWidth, height: windowHeight } = useWindowSize()
|
|
@@ -411,26 +390,11 @@ const positionNumInit = computed(() => {
|
|
})
|
|
})
|
|
|
|
|
|
const {
|
|
const {
|
|
- onSwipeLeft,
|
|
|
|
- onswipeRight,
|
|
|
|
translateLength,
|
|
translateLength,
|
|
- currentAnchorIdx,
|
|
|
|
} = useSmoothSwipe({
|
|
} = useSmoothSwipe({
|
|
scrollTargetRef: scrollTarget,
|
|
scrollTargetRef: scrollTarget,
|
|
maxTranslateLength,
|
|
maxTranslateLength,
|
|
viewportWidth: windowWidth,
|
|
viewportWidth: windowWidth,
|
|
- anchorPosList: [
|
|
|
|
- (maxTranslateLength.value * positionNumInit.value) / windowWidthDesign -
|
|
|
|
- windowWidth.value / 2,
|
|
|
|
- (maxTranslateLength.value * 800) / windowWidthDesign -
|
|
|
|
- windowWidth.value / 2,
|
|
|
|
- (maxTranslateLength.value * 1320) / windowWidthDesign -
|
|
|
|
- windowWidth.value / 2,
|
|
|
|
- (maxTranslateLength.value * 1840) / windowWidthDesign -
|
|
|
|
- windowWidth.value / 2,
|
|
|
|
- // maxTranslateLength.value - windowWidth.value
|
|
|
|
- ],
|
|
|
|
- initialAnchorIdx: Number(route.query.anchorIdx) || 0,
|
|
|
|
})
|
|
})
|
|
|
|
|
|
// 背景位移
|
|
// 背景位移
|
|
@@ -471,8 +435,6 @@ watch(
|
|
}
|
|
}
|
|
)
|
|
)
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
const videoFadeAtShuangGouEl = ref(null)
|
|
const videoFadeAtShuangGouEl = ref(null)
|
|
const isShowVideoFadeAtShuangGou = ref(false)
|
|
const isShowVideoFadeAtShuangGou = ref(false)
|
|
function onClickShuangGouEntry() {
|
|
function onClickShuangGouEntry() {
|
|
@@ -505,37 +467,12 @@ function onClickEntryAtMoZhu(pathName) {
|
|
const videoFadeAtPage3El = ref(null)
|
|
const videoFadeAtPage3El = ref(null)
|
|
const isShowVideoFadeAtPage3 = ref(false)
|
|
const isShowVideoFadeAtPage3 = ref(false)
|
|
|
|
|
|
-const isReady = ref(true)
|
|
|
|
-
|
|
|
|
-onBeforeMount(() => {
|
|
|
|
- // 第一个页面跳转 要白屏渐进 其他页面不用
|
|
|
|
- if (route.query.anchorIdx) {
|
|
|
|
- if (route.query.anchorIdx == 0) isReady.value = false
|
|
|
|
- } else isReady.value = false
|
|
|
|
-
|
|
|
|
- // window.addEventListener("resize", () => {
|
|
|
|
- // window.setTimeout(() => {
|
|
|
|
- // // 根元素
|
|
|
|
- // const dom = document.querySelector("#app")
|
|
|
|
- // if (dom && document.documentElement.clientWidth < 1000) {
|
|
|
|
- // windowWidth.value = document.documentElement.clientWidth
|
|
|
|
- // windowHeight.value = document.documentElement.clientHeight
|
|
|
|
- // }
|
|
|
|
- // }, 100)
|
|
|
|
- // })
|
|
|
|
- if (!isReady.value) {
|
|
|
|
- setTimeout(() => {
|
|
|
|
- isReady.value = true
|
|
|
|
- }, 300)
|
|
|
|
- }
|
|
|
|
-})
|
|
|
|
-
|
|
|
|
-// onMounted(() => {
|
|
|
|
-// window.dispatchEvent(new Event("resize"))
|
|
|
|
-// windowWidth.value = window.windowWidth
|
|
|
|
-// windowHeight.value = window.windowHeight
|
|
|
|
-
|
|
|
|
-// })
|
|
|
|
|
|
+// 点击线上展厅
|
|
|
|
+const OpenScene = () => {
|
|
|
|
+ const musicDom = document.getElementById("bg-music")
|
|
|
|
+ musicDom.pause()
|
|
|
|
+ router.replace('/scene')
|
|
|
|
+}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="less" scoped>
|
|
<style lang="less" scoped>
|