12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193 |
- <template>
- <div class="more-content">
- <div
- ref="scrollTarget"
- v-touch:swipe.left="onSwipeLeft"
- v-touch:swipe.right="onswipeRight"
- class="scroll-target"
- >
- <img
- class="bg"
- :style="{
- left: bgLeft + 'px'
- }"
- src="@/assets/images/fade-chapter-wood/bg-more-content.jpg"
- alt=""
- draggable="false"
- >
- <div
- class="layer-4"
- :style="{
- left: layer4Left + 'px',
- }"
- >
- <img
- class="bamboo-4_01"
- src="@/assets/images/fade-chapter-wood/4_01.png"
- alt=""
- draggable="false"
- >
- <img
- class="bamboo-4_02"
- src="@/assets/images/fade-chapter-wood/4_02.png"
- alt=""
- draggable="false"
- >
- <!-- <img
- class="bamboo-4_03"
- src="@/assets/images/fade-chapter-wood/4_03.png"
- alt=""
- draggable="false"
- > -->
- <!-- <img
- class="bamboo-4_04"
- src="@/assets/images/fade-chapter-wood/4_04.png"
- alt=""
- draggable="false"
- > -->
- <img
- class="bamboo-4_05"
- src="@/assets/images/fade-chapter-wood/4_05.png"
- alt=""
- draggable="false"
- >
- <img
- class="bamboo-4_06"
- src="@/assets/images/fade-chapter-wood/4_06.png"
- alt=""
- draggable="false"
- >
- <img
- class="bamboo-4_07"
- src="@/assets/images/fade-chapter-wood/4_07.png"
- alt=""
- draggable="false"
- >
- <img
- class="bamboo-4_08"
- src="@/assets/images/fade-chapter-wood/4_08.png"
- alt=""
- draggable="false"
- >
- <img
- class="bamboo-4_09"
- src="@/assets/images/fade-chapter-wood/4_09.png"
- alt=""
- draggable="false"
- >
- <img
- class="bamboo-4_10"
- src="@/assets/images/fade-chapter-wood/4_10.png"
- alt=""
- draggable="false"
- >
- <img
- class="bamboo-4_11"
- src="@/assets/images/fade-chapter-wood/4_11.png"
- alt=""
- draggable="false"
- >
- <img
- class="bamboo-4_12"
- src="@/assets/images/fade-chapter-wood/4_12.png"
- alt=""
- draggable="false"
- >
- </div>
- <div
- class="layer-3"
- :style="{
- left: layer3Left + 'px',
- }"
- >
- <img
- class="bamboo-3_01"
- src="@/assets/images/fade-chapter-wood/3_01.png"
- alt=""
- draggable="false"
- >
- <img
- class="bamboo-3_02"
- src="@/assets/images/fade-chapter-wood/3_02.png"
- alt=""
- draggable="false"
- >
- <img
- class="bamboo-3_03"
- src="@/assets/images/fade-chapter-wood/3_03.png"
- alt=""
- draggable="false"
- >
- <img
- class="bamboo-3_04"
- src="@/assets/images/fade-chapter-wood/3_04.png"
- alt=""
- draggable="false"
- >
- </div>
- <div
- class="layer-2"
- :style="{
- left: layer2Left + 'px',
- }"
- >
- <img
- class="bamboo-2_01"
- src="@/assets/images/fade-chapter-wood/2_01.png"
- alt=""
- draggable="false"
- >
- <img
- class="bamboo-2_03"
- src="@/assets/images/fade-chapter-wood/2_03.png"
- alt=""
- draggable="false"
- >
- <img
- class="bamboo-2_02"
- src="@/assets/images/fade-chapter-wood/2_02.png"
- alt=""
- draggable="false"
- >
- <!-- <img
- class="bamboo-2_03"
- src="@/assets/images/fade-chapter-wood/2_03.png"
- alt=""
- draggable="false"
- > -->
- <img
- class="bamboo-2_04"
- src="@/assets/images/fade-chapter-wood/2_04.png"
- alt=""
- draggable="false"
- >
- <img
- class="bamboo-2_04-1"
- src="@/assets/images/fade-chapter-wood/2_04-1.png"
- alt=""
- draggable="false"
- >
- <img
- class="bamboo-2_05"
- src="@/assets/images/fade-chapter-wood/2_05.png"
- alt=""
- draggable="false"
- >
- </div>
- <div
- class="layer-1"
- :style="{
- left: layer1Left + 'px',
- }"
- >
- <img
- class="bamboo-1_01"
- src="@/assets/images/fade-chapter-wood/1_01.png"
- alt=""
- draggable="false"
- >
- <HotspotComp
- class="hotspot"
- @click="router.push({
- name: 'BambooHot',
- })"
- />
- <div class="shuang-gou-she-se-group">
- <button
- class="watch-detail animation-show-long-hide"
- @click="onClickShuangGouEntry"
- >
- 查看详情
- </button>
- <div class="group-title">
- 双钩设色
- <img
- class="deco"
- src="@/assets/images/more-content-deco.png"
- alt=""
- draggable="false"
- >
- </div>
- </div>
- <img
- class="bamboo-1_02"
- src="@/assets/images/fade-chapter-wood/1_02.png"
- alt=""
- draggable="false"
- >
- <div class="mo-zhu-group">
- <div class="button-group">
- <button
- class="poem animation-show-long-hide"
- @click="onClickEntryAtMoZhu('PoemList')"
- >
- 人文
- </button>
- <button
- class="animation-show-long-hide"
- @click="onClickEntryAtMoZhu('PaintingList')"
- >
- 画作
- </button>
- <button
- class="animation-show-long-hide"
- @click="onClickEntryAtMoZhu('BambooBook')"
- >
- 竹谱
- </button>
- </div>
- <div class="group-title">
- 墨竹
- <img
- class="deco"
- src="@/assets/images/more-content-deco.png"
- alt=""
- draggable="false"
- >
- </div>
- </div>
- <img
- class="bamboo-1_03"
- src="@/assets/images/fade-chapter-wood/1_03.png"
- alt=""
- draggable="false"
- >
- <img
- class="bamboo-1_04"
- src="@/assets/images/fade-chapter-wood/1_04.png"
- alt=""
- draggable="false"
- >
- <div class="wei-ye-group">
- <img
- src="@/assets/images/wu-jing-cang.png"
- alt=""
- >
- <div
- class="game-box"
- @click="() => { isShowGamePage = true }"
- >
- 画作创作
- </div>
- <div
- class="online-box"
- @click="() => { isShowScenePage = true }"
- >
- 线上展厅
- </div>
- </div>
- <img
- class="bamboo-1_05"
- src="@/assets/images/fade-chapter-wood/1_05.png"
- alt=""
- draggable="false"
- >
- </div>
- </div>
- <PaginationComp
- class="pagination"
- :total="3"
- :idx="currentAnchorIdx"
- />
- <BtnBack
- @click="router.push({
- name: 'HomeView',
- })"
- />
- <OperationTip
- class="operation-tip"
- :direction="'h'"
- :text="'下一章'"
- :is-show="isShowOperationTip"
- :color="'green'"
- />
- <Transition name="fade-in">
- <video
- v-if="isShowVideoFadeAtShuangGou"
- ref="videoFadeAtShuangGouEl"
- class="fade-to-other-page"
- src="@/assets/videos/fade-at-shuang-gou.mp4"
- playsinline
- webkit-playsinline="true"
- x5-video-player-type="h5"
- @ended="router.push({
- name: 'ShuanggouDetail',
- })"
- />
- </Transition>
- <Transition name="fade-in">
- <video
- v-if="isShowVideoFadeAtMoZhu"
- ref="videoFadeAtMoZhuEl"
- class="fade-to-other-page"
- src="@/assets/videos/fade-at-mo-zhu.mp4"
- playsinline
- webkit-playsinline="true"
- x5-video-player-type="h5"
- />
- </Transition>
- <Transition name="fade-in">
- <video
- v-if="isShowVideoFadeAtPage3"
- ref="videoFadeAtPage3El"
- class="fade-to-other-page"
- src="@/assets/videos/fade-from-more-content-to-game.mp4"
- playsinline
- webkit-playsinline="true"
- x5-video-player-type="h5"
- />
- </Transition>
- <!-- 游戏页面 -->
- <div
- v-if="isShowGamePage"
- class="game-box"
- >
- <iframe
- id="gameIframe"
- :src="`./game/index.html`"
- />
- <!-- edit弹框 -->
- <div
- v-if="isShowToastFromGame"
- class="edit-box"
- >
- <!-- <input :v-model="inputValue"> -->
- <!-- <div class="text" >{{ inputValue }}</div>
- <div class="text">{{ }}</div> -->
- <!-- <textarea
- v-model="inputText"
- rows="2"
- maxlength="15"
- @input="onInput"
- /> -->
- <div class="input-box">
- <input
- ref="input1Ref"
- v-model="input1"
- @input="handleInput1"
- @keyup="checkInput1"
- >
- <input
- ref="input2Ref"
- v-model="input2"
- :readonly="input1.length < 7"
- @input="handleInput2"
- @keyup="checkInput2"
- >
- <div class="tips">
- 请输入内容
- </div>
- </div>
- <div
- class="cencel-btn"
- @click="isShowToastFromGame =false"
- >
- 取消
- </div>
- <div
- class="yes-btn"
- @click="saveTitle"
- >
- 保存
- </div>
- </div>
- </div>
- <!-- 线上展厅 -->
- <div
- v-if="isShowScenePage"
- class="scene-box"
- >
- <BtnBack
- class="scene-back"
- @click="isShowScenePage = false"
- />
- <iframe
- src="https://www.4dkankan.com/spg.html?m=KJ-et2X3su4ofm"
- frameborder="0"
- />
- </div>
- </div>
- </template>
- <script setup>
- import { ref, computed, watch, onMounted, onBeforeUnmount, inject, nextTick } from "vue"
- import { useRoute, useRouter } from "vue-router"
- import { useStore } from "vuex"
- import PoemList from '@/views/PoemList.vue'
- import paintingList from '@/views/PaintingList.vue'
- import useSmoothSwipe from '@/useFunctions/useSmoothSwipe.js'
- import { useWindowSize } from '@vueuse/core'
- import OperationTip from "@/components/OperationTip.vue"
- import useSizeAdapt from "@/useFunctions/useSizeAdapt.js"
- import PaginationComp from "@/components/PaginationComp.vue"
- const route = useRoute()
- const router = useRouter()
- const store = useStore()
- const $env = inject('$env')
- const isShowGamePage = ref(false)
- const isShowScenePage = ref(false)
- const isShowToastFromGame = ref(false)
- const input1 = ref('')
- const input2 = ref('')
- const input1Ref = ref(null)
- const input2Ref = ref(null)
- const handleInput1 = () => {
- console.log('第一个框得内容', input1.value)
- if (input1.value.length >= 7) {
- input1.value = input1.value.slice(0, 7) // 限制输入长度
- input2Ref.value.focus() // 聚焦到第二个输入框
- }
- }
- const checkInput1 = (event) => {
- if (event.key === 'Backspace' && input1.value.length === 0) {
- input2.value = '' // 清空第二个输入框
- input1Ref.value.focus() // 聚焦回到第一个输入框
- }
- }
- const handleInput2 = () => {
- // 这里可以添加类似的逻辑,但通常不需要,因为我们假设第二个输入框不会自动跳转回去
- if (input2.value.length >= 7) {
- input2.value = input2.value.slice(0, 7)
- }
- }
- const checkInput2 = (event) => {
- if (event.key === 'Backspace' && input2.value.length === 0) {
- input1Ref.value.focus() // 如果需要从第二个输入框清空后聚焦回第一个输入框
- }
- }
- const saveTitle = () => {
- var iframe = document.getElementById('gameIframe')
- var iframeWindow = iframe.contentWindow || window.frames['yourIframeId']
- if (iframeWindow) {
- iframeWindow.saveTitle(input1.value.length >= 7 ? input1.value + '\n' + input2.value : input1.value )
- isShowToastFromGame.value = false
- }
- }
- onMounted(() => {
- window.closeGame = () => {
- isShowGamePage.value = false
- }
- window.isShowToastFromGame = () =>{
- isShowToastFromGame.value = true
- }
- })
- const {
- windowSizeInCssForRef,
- windowSizeWhenDesignForRef,
- } = useSizeAdapt()
- const windowWidthDesign = 1560
- const windowHeightDesign = 844
- const scrollTarget = ref(null)
- const { width: windowWidth, height: windowHeight } = useWindowSize()
- const time = ref()
- onMounted(() => {
- // windowWidth.value = document.documentElement.clientWidth
- // windowHeight.value = document.documentElement.clientHeight
- window.addEventListener(
- "resize",
- () => {
- //@ts-ignore
- clearTimeout(time.value)
- //@ts-ignore
- time.value = window.setTimeout(() => {
- // 根元素
- const dom = document.querySelector("#app")
- if (dom && document.documentElement.clientWidth < 1000) {
- dom.style.height = document.documentElement.clientHeight + "px"
- dom.style.width = document.documentElement.clientWidth + "px"
- }
- }, 100)
- },
- true
- )
- })
- const maxTranslateLength = computed(() => {
- return windowHeight.value * windowWidthDesign / windowHeightDesign
- })
- const { onSwipeLeft, onswipeRight, haveSwipedThisTime, translateLength, currentAnchorIdx, goingToAnchorIdx } = useSmoothSwipe({
- scrollTargetRef: scrollTarget,
- maxTranslateLength,
- viewportWidth: windowWidth,
- anchorPosList: [
- maxTranslateLength.value * 236 / windowWidthDesign - windowWidth.value / 2,
- maxTranslateLength.value * 967 / windowWidthDesign - windowWidth.value / 2,
- maxTranslateLength.value * 1840 / windowWidthDesign - windowWidth.value / 2,
- // maxTranslateLength.value - windowWidth.value
- ],
- initialAnchorIdx: Number(route.query.anchorIdx) || 0
- })
- const bgInitialLeft = -30
- const bgLeft = ref(bgInitialLeft)
- const bgSpeedFactor = 0.8 * 0.8 * 0.8 * 0.8
- watch(translateLength, (v) => {
- bgLeft.value = bgInitialLeft - v * bgSpeedFactor
- }, {
- immediate: true,
- })
- const layer4SpeedFactor = 0.8 * 0.8 * 0.8
- const layer4InitialLeft = 0
- const layer4Left = ref(layer4InitialLeft)
- watch(translateLength, (v) => {
- layer4Left.value = layer4InitialLeft - v * layer4SpeedFactor
- }, {
- immediate: true,
- })
- const layer3SpeedFactor = 0.8 * 0.8
- const layer3InitialLeft = 0
- const layer3Left = ref(layer3InitialLeft)
- watch(translateLength, (v) => {
- layer3Left.value = layer3InitialLeft - v * layer3SpeedFactor
- }, {
- immediate: true,
- })
- const layer2SpeedFactor = 0.8
- const layer2InitialLeft = 0
- const layer2Left = ref(layer2InitialLeft)
- watch(translateLength, (v) => {
- layer2Left.value = layer2InitialLeft - v * layer2SpeedFactor
- }, {
- immediate: true,
- })
- const layer1InitialLeft = 0
- const layer1Left = ref(layer1InitialLeft)
- watch(translateLength, (v) => {
- layer1Left.value = layer1InitialLeft - v
- }, {
- immediate: true,
- })
- const isShowOperationTip = ref(true)
- const unwatch = watch(translateLength, (v) => {
- isShowOperationTip.value = false
- unwatch()
- // if (Math.abs(v - (scrollerEl.value.scrollHeight - scrollerEl.value.clientHeight)) <= 1) {
- // router.push({
- // name: 'MoreContent',
- // })
- // }
- })
- const videoFadeAtShuangGouEl = ref(null)
- const isShowVideoFadeAtShuangGou = ref(false)
- function onClickShuangGouEntry() {
- isShowVideoFadeAtShuangGou.value = true
- nextTick(() => {
- videoFadeAtShuangGouEl.value.play()
- })
- }
- const videoFadeAtMoZhuEl = ref(null)
- const isShowVideoFadeAtMoZhu = ref(false)
- function onClickEntryAtMoZhu(pathName) {
- isShowVideoFadeAtMoZhu.value = true
- nextTick(() => {
- videoFadeAtMoZhuEl.value.addEventListener('ended', () => {
- router.push({
- name: pathName,
- })
- })
- videoFadeAtMoZhuEl.value.play()
- })
- }
- const videoFadeAtPage3El = ref(null)
- const isShowVideoFadeAtPage3 = ref(false)
- // function onClickEntryAtMoZhu(pathName) {
- // isShowVideoFadeAtMoZhu.value = true
- // nextTick(() => {
- // videoFadeAtMoZhuEl.value.addEventListener('ended', () => {
- // router.push({
- // name: pathName,
- // })
- // })
- // videoFadeAtMoZhuEl.value.play()
- // })
- // }
- watch(goingToAnchorIdx, (v) => {
- if (v === 2) {
- // 跳转到尾页
- // setTimeout(() => {
- // isShowVideoFadeAtPage3.value = true
- // nextTick(() => {
- // videoFadeAtPage3El.value.addEventListener('ended', () => {
- // router.push({
- // name: 'Game',
- // })
- // })
- // videoFadeAtPage3El.value.play()
- // })
- // }, 850)
- }
- })
- </script>
- <style lang="less" scoped>
- .button-common-style {
- font-family: KaiTi, KaiTi;
- font-weight: 400;
- font-size: calc(16px * v-bind('windowHeight') / v-bind('windowHeightDesign'));
- writing-mode: vertical-lr;
- letter-spacing: 0.2em;
- white-space: pre;
- color: #B8AE7A;
- }
- .group-title-common-style {
- font-family: KingHwa_OldSong, KingHwa_OldSong;
- font-weight: 400;
- font-size: calc(48px * v-bind('windowHeight') / v-bind('windowHeightDesign'));
- color: #474747;
- writing-mode: vertical-lr;
- letter-spacing: 0.2em;
- white-space: pre;
- }
- .more-content {
- position: absolute;
- left: 0;
- top: 0;
- width: 100%;
- height: 100%;
- user-select: none;
- >.scroll-target {
- height: 100%;
- width: 100%;
- display: flex;
- gap: 100px;
- overflow: hidden;
- >img.bg {
- position: absolute;
- height: 100%;
- }
- >.layer-4 {
- position: absolute;
- height: 100%;
- >.bamboo-4_01 {
- position: absolute;
- left: calc(0 * v-bind('layer4SpeedFactor') * v-bind('windowHeight') / v-bind('windowHeightDesign'));
- bottom: 0;
- height: calc(300px * v-bind('windowHeight') / v-bind('windowHeightDesign'));
- }
- >.bamboo-4_02 {
- position: absolute;
- bottom: 0;
- left: calc(120px * v-bind('windowHeight') / v-bind('windowHeightDesign'));
- height: calc(380px * v-bind('windowHeight') / v-bind('windowHeightDesign'));
- }
- >.bamboo-4_03 {
- position: absolute;
- bottom: 0;
- left: calc(880px * v-bind('layer4SpeedFactor') * v-bind('windowHeight') / v-bind('windowHeightDesign'));
- height: calc(518px * v-bind('windowHeight') / v-bind('windowHeightDesign'));
- }
- >.bamboo-4_04 {
- position: absolute;
- bottom: 0;
- left: calc(870px * v-bind('windowHeight') / v-bind('windowHeightDesign'));
- height: 100%;
- }
- >.bamboo-4_05 {
- position: absolute;
- bottom: 0;
- left: calc(450px * v-bind('layer4SpeedFactor') * v-bind('windowHeight') / v-bind('windowHeightDesign'));
- height: 100%;
- }
- >.bamboo-4_06 {
- position: absolute;
- bottom: 0;
- left: calc(520px * v-bind('layer4SpeedFactor') * v-bind('windowHeight') / v-bind('windowHeightDesign'));
- height: 100%;
- }
- >.bamboo-4_07 {
- position: absolute;
- bottom: 0;
- left: calc(1000px * v-bind('layer4SpeedFactor') * v-bind('windowHeight') / v-bind('windowHeightDesign'));
- height: 100%;
- }
- >.bamboo-4_08 {
- position: absolute;
- bottom: 0;
- height: calc(380px * v-bind('windowHeight') / v-bind('windowHeightDesign'));
- left: calc(1553px * v-bind('layer4SpeedFactor') * v-bind('windowHeight') / v-bind('windowHeightDesign'));
- }
- >.bamboo-4_09 {
- position: absolute;
- bottom: 0;
- left: calc(1345px * v-bind('layer4SpeedFactor') * v-bind('windowHeight') / v-bind('windowHeightDesign'));
- height: 100%;
- }
- >.bamboo-4_10 {
- position: absolute;
- bottom: 0;
- left: calc(1403px * v-bind('layer4SpeedFactor') * v-bind('windowHeight') / v-bind('windowHeightDesign'));
- height: 100%;
- }
- >.bamboo-4_11 {
- position: absolute;
- bottom: 0;
- left: calc(1403px * v-bind('layer4SpeedFactor') * v-bind('windowHeight') / v-bind('windowHeightDesign'));
- height: 100%;
- }
- >.bamboo-4_12 {
- position: absolute;
- bottom: 0;
- left: calc(1403px * v-bind('layer4SpeedFactor') * v-bind('windowHeight') / v-bind('windowHeightDesign'));
- height: 100%;
- }
- }
- >.layer-3 {
- position: absolute;
- height: 100%;
- >.bamboo-3_01 {
- position: absolute;
- top: 0;
- height: 100%;
- left: calc(393px * v-bind('layer3SpeedFactor') * v-bind('windowHeight') / v-bind('windowHeightDesign'));
- }
- >.bamboo-3_02 {
- position: absolute;
- top: 0;
- height: 100%;
- left: calc(880px * v-bind('windowHeight') / v-bind('windowHeightDesign'));
- }
- >.bamboo-3_03 {
- position: absolute;
- top: 0;
- height: 100%;
- left: calc(1290px * v-bind('windowHeight') / v-bind('windowHeightDesign'));
- }
- >.bamboo-3_04 {
- position: absolute;
- top: 0;
- height: 100%;
- left: calc(867px * v-bind('windowHeight') / v-bind('windowHeightDesign'));
- }
- }
- >.layer-2 {
- position: absolute;
- height: 100%;
- >.bamboo-2_01 {
- position: absolute;
- top: 0;
- height: 100%;
- left: calc(0px * v-bind('layer2SpeedFactor') * v-bind('windowHeight') / v-bind('windowHeightDesign'));
- }
- >.bamboo-2_03 {
- position: absolute;
- top: 0;
- height: 100%;
- left: calc(420px * v-bind('layer2SpeedFactor') * v-bind('windowHeight') / v-bind('windowHeightDesign'));
- }
- >.bamboo-2_02 {
- position: absolute;
- top: 0;
- height: 100%;
- left: calc(920px * v-bind('layer2SpeedFactor') * v-bind('windowHeight') / v-bind('windowHeightDesign'));
- }
- // >.bamboo-2_03{
- // position: absolute;
- // top: 0;
- // height: 100%;
- // left: calc(920px * v-bind('layer2SpeedFactor') * v-bind('windowHeight') / v-bind('windowHeightDesign'));
- // }
- >.bamboo-2_04 {
- position: absolute;
- top: 0;
- height: 100%;
- left: calc(1281px * v-bind('layer2SpeedFactor') * v-bind('windowHeight') / v-bind('windowHeightDesign'));
- }
- >.bamboo-2_04-1 {
- position: absolute;
- top: 0;
- height: 100%;
- left: calc(1863px * v-bind('layer2SpeedFactor') * v-bind('windowHeight') / v-bind('windowHeightDesign'));
- }
- >.bamboo-2_05 {
- position: absolute;
- top: 0;
- height: 100%;
- left: calc(997px * v-bind('windowHeight') / v-bind('windowHeightDesign'));
- }
- }
- >.layer-1 {
- position: absolute;
- height: 100%;
- >.bamboo-1_01 {
- position: absolute;
- top: 0;
- height: 100%;
- left: 0;
- }
- >.hotspot {
- position: absolute;
- top: calc(385px * v-bind('windowHeight') / v-bind('windowHeightDesign'));
- left: calc(71px * v-bind('windowHeight') / v-bind('windowHeightDesign'));
- }
- >.shuang-gou-she-se-group {
- position: absolute;
- top: calc(245px * v-bind('windowHeight') / v-bind('windowHeightDesign'));
- left: calc(216px * v-bind('windowHeight') / v-bind('windowHeightDesign'));
- >button.watch-detail {
- position: absolute;
- top: calc(182px * v-bind('windowHeight') / v-bind('windowHeightDesign'));
- left: 0;
- background-image: url(@/assets/images/fade-chapter-btn-bg-big.png);
- background-size: contain;
- background-repeat: no-repeat;
- background-position: center center;
- padding-top: calc(3px / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
- .button-common-style();
- }
- >div.group-title {
- position: absolute;
- top: 0;
- left: calc(41px * v-bind('windowHeight') / v-bind('windowHeightDesign'));
- ;
- .group-title-common-style();
- >img.deco {
- position: absolute;
- bottom: 0.9em;
- right: -0.05em;
- width: calc(16 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
- height: calc(16 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
- }
- }
- }
- >.bamboo-1_02 {
- position: absolute;
- top: 0;
- height: 100%;
- left: calc(352px * v-bind('windowHeight') / v-bind('windowHeightDesign'));
- }
- >.mo-zhu-group {
- position: absolute;
- top: calc(245px * v-bind('windowHeight') / v-bind('windowHeightDesign'));
- left: calc(936px * v-bind('windowHeight') / v-bind('windowHeightDesign'));
- >.button-group {
- position: absolute;
- top: calc(75px * v-bind('windowHeight') / v-bind('windowHeightDesign'));
- left: 0;
- display: flex;
- flex-direction: column;
- gap: calc(20 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
- >button {
- .button-common-style();
- background-image: url(@/assets/images/fade-chapter-btn-bg-small.png);
- background-size: contain;
- background-repeat: no-repeat;
- background-position: center center;
- padding-top: calc(3px / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
- }
- }
- >div.group-title {
- position: absolute;
- top: 0;
- left: calc(41px * v-bind('windowHeight') / v-bind('windowHeightDesign'));
- ;
- .group-title-common-style();
- >img.deco {
- position: absolute;
- bottom: 0.9em;
- right: 0.1em;
- width: calc(16 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
- height: calc(16 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
- }
- }
- }
- >.wei-ye-group {
- position: absolute;
- top: calc(170px * v-bind('windowHeight') / v-bind('windowHeightDesign'));
- left: calc(1776px * v-bind('windowHeight') / v-bind('windowHeightDesign'));
- font-family: 'KingHwa_OldSong';
- color: white;
- z-index: 2;
- width: calc(200 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
- // background: green;
- >.game-box {
- width: calc(200 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
- background: url(@/assets/images/game-bg.png);
- background-size: 100% 100%;
- padding: calc(70 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
- white-space: nowrap;
- display: flex;
- justify-content: center;
- align-items: center;
- margin-top: calc(-10 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
- margin-left: calc(-60 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
- font-size: calc(20 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
- }
- >.online-box {
- width: calc(200 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
- background: url(@/assets/images/online-scene-bg.png);
- background-size: 100% 100%;
- padding: calc(70 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
- white-space: nowrap;
- display: flex;
- justify-content: center;
- align-items: center;
- margin-top: calc(-10 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
- margin-left: calc(40 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
- font-size: calc(20 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
- }
- }
- >.bamboo-1_03 {
- position: absolute;
- top: 0;
- height: 100%;
- left: calc(960px * v-bind('windowHeight') / v-bind('windowHeightDesign'));
- }
- >.bamboo-1_04 {
- position: absolute;
- top: 0;
- height: 100%;
- left: calc(1336px * v-bind('windowHeight') / v-bind('windowHeightDesign'));
- }
- >.bamboo-1_05 {
- position: absolute;
- top: 0;
- height: 100%;
- left: calc(1891px * v-bind('windowHeight') / v-bind('windowHeightDesign'));
- }
- }
- }
- >.pagination {
- position: absolute;
- left: 50%;
- transform: translateX(-50%);
- bottom: calc(22 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
- }
- >.operation-tip {
- position: absolute;
- right: calc(44 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
- bottom: calc(74 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
- }
- >.fade-to-other-page {
- position: absolute;
- left: 0;
- top: 0;
- width: 100%;
- height: 100%;
- object-fit: cover;
- object-position: top;
- }
- >.game-box {
- width: 100%;
- height: 100%;
- position: fixed;
- top: 0;
- left: 0;
- z-index: 100;
- >iframe {
- width: 100%;
- height: 100%;
- position: absolute;
- top: 0;
- left: 0;
- }
- .edit-box {
- width: 125%;
- height: 35vh;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- background: url(@/assets/images/game-tip.png);
- background-size: 100% 100%;
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- z-index: 2;
- font-family: 'KaiTi';
- >.input-box {
- width: 50%;
- display: flex;
- flex-direction: column;
- margin-bottom: 10%;
- margin-right: 5%;
- >input {
- width: 100%;
- height: 45px;
- background: none;
- border: none;
- font-size: 20px;
- white-space: pre-wrap;
- color: white;
- border-bottom: 1px solid rgba(255, 255, 255, 0.548);
- font-family: 'KaiTi';
- letter-spacing: 2px;
- }
- .tips {
- font-family: 'KaiTi';
- font-size: 14px;
- margin-top: calc(5 /v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
- color: rgba(255, 255, 255, 0.418);
- }
- }
- >textarea {
- width: 34%;
- height: 40%;
- background: none;
- border: none;
- font-size: 20px;
- white-space: pre-wrap;
- }
- >.cencel-btn {
- // width: calc(70 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
- // height: calc(30 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
- background: url(@/assets/images/game-tip-cancel.png);
- background-size: 100% 100%;
- display: flex;
- justify-content: center;
- align-items: center;
- color: #FFFFFF;
- position: absolute;
- left: 30%;
- bottom: calc(60 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
- padding: 5px 10px;
- font-family: 'KaiTi';
- }
- >.yes-btn {
- // width: calc(70 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
- // height: calc(30 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
- background: url(@/assets/images/game-tip-yes.png);
- background-size: 100% 100%;
- display: flex;
- justify-content: center;
- align-items: center;
- color: #F4E09D;
- position: absolute;
- right: 38%;
- bottom: calc(60 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
- padding: 5px 10px;
- font-family: 'KaiTi';
- }
- }
- }
- >.scene-box {
- width: 100%;
- height: 100%;
- position: fixed;
- position: fixed;
- top: 0;
- left: 0;
- z-index: 100;
- >.scene-back {
- position: absolute;
- left: 20px;
- top: 25px;
- transform: scale(1.2);
- z-index: 2;
- }
- >iframe {
- width: 100%;
- height: 100%;
- position: absolute;
- top: 0;
- left: 0;
- }
- }
- }
- </style>
|