|
@@ -1,36 +1,32 @@
|
|
|
<template>
|
|
|
<div class="SilkRoadSpringFestivalGala">
|
|
|
- <div class="screen first" v-if="showFirst">
|
|
|
- <div class="first_text">
|
|
|
- <p v-for="v in first_text_view" :key="v">
|
|
|
- <span v-for="val in v" v-text="val" :key="val"></span>
|
|
|
- </p>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="screen second">
|
|
|
- <div class="star">
|
|
|
- <img src="@/assets/img/star.png" class="starimg" />
|
|
|
- </div>
|
|
|
- <div class="swiper" @click="swiperClick = !swiperClick">
|
|
|
- <div
|
|
|
- class="clickEle"
|
|
|
- :style="swiperClick ? 'margin-left: 2.1em;' : ''"
|
|
|
- ></div>
|
|
|
+ <div class="screen" v-if="page == 'first'">
|
|
|
+ <div class="first">
|
|
|
+ <div class="first_text">
|
|
|
+ <p v-for="v in first_text_view" :key="v">
|
|
|
+ <span v-for="val in v" v-text="val" :key="val"></span>
|
|
|
+ </p>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="screen">
|
|
|
- <third />``
|
|
|
+ <second v-if="page == 'second'" @changePage="changePage" />
|
|
|
+ <third v-if="page == 'third'" @changePage="changePage" />
|
|
|
+ <fourth v-if="page == 'fourth'" @changePage="changePage" />
|
|
|
+ <five v-if="page == 'five'" @changePage="changePage" />
|
|
|
+ <sex v-if="page === 'sex'" />
|
|
|
</div>
|
|
|
- <div class="screen">4</div>
|
|
|
- <div class="screen">5</div>
|
|
|
- <div class="screen">6</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script setup>
|
|
|
import third from "./pages/third.vue";
|
|
|
+import second from "./pages/second.vue";
|
|
|
+import fourth from "./pages/fourth.vue";
|
|
|
+import five from "./pages/five.vue";
|
|
|
+import sex from "./pages/sex.vue";
|
|
|
|
|
|
// import { onMounted, reactive } from "vue";
|
|
|
-import { ref } from "vue";
|
|
|
+import { ref, reactive } from "vue";
|
|
|
// import { isIpad, isIpod, isIphone } from "../../utils/isTerminal";
|
|
|
/**
|
|
|
* window.$originData.orginParames.title 页面标题
|
|
@@ -38,20 +34,22 @@ import { ref } from "vue";
|
|
|
* window.$originData.urlParames url参数
|
|
|
*/
|
|
|
console.log(window.$originData);
|
|
|
-// let first_text = ['"大美中国·多彩丝路"', "2023丝路春晚 联名限定"];
|
|
|
-const showFirst = ref(false);
|
|
|
-const swiperClick = ref(false);
|
|
|
-// for (let i = 0; i < first_text.length; i++) {
|
|
|
-// first_text[i] = first_text[i].split("");
|
|
|
-// }
|
|
|
-// const first_text_view = reactive(first_text);
|
|
|
-// let time = setTimeout(() => {
|
|
|
-// clearTimeout(time);
|
|
|
-// showFirst.value = false;
|
|
|
-// }, 5000);
|
|
|
+const page = ref("first");
|
|
|
+let first_text = ['"大美中国·多彩丝路"', "2023丝路春晚 联名限定"];
|
|
|
+for (let i = 0; i < first_text.length; i++) {
|
|
|
+ first_text[i] = first_text[i].split("");
|
|
|
+}
|
|
|
+const first_text_view = reactive(first_text);
|
|
|
+let time = setTimeout(() => {
|
|
|
+ clearTimeout(time);
|
|
|
+ page.value = "sex";
|
|
|
+}, 5000);
|
|
|
+
|
|
|
+function changePage(type) {
|
|
|
+ page.value = type;
|
|
|
+}
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
-@import url(https://cxzx.smcic.net/topic/tool/css/swiper-bundle8.4.4.min.css);
|
|
|
.SilkRoadSpringFestivalGala {
|
|
|
width: 100vw;
|
|
|
height: 100vh;
|
|
@@ -60,6 +58,9 @@ const swiperClick = ref(false);
|
|
|
.screen {
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
+ > div {
|
|
|
+ height: 100%;
|
|
|
+ }
|
|
|
}
|
|
|
.first {
|
|
|
background-color: #000000;
|
|
@@ -86,49 +87,6 @@ const swiperClick = ref(false);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- .second {
|
|
|
- position: relative;
|
|
|
- background-image: url("../../assets/img/silubg.jpg");
|
|
|
- background-size: 100% 100%;
|
|
|
- .star {
|
|
|
- position: absolute;
|
|
|
- top: 50%;
|
|
|
- right: 10vw;
|
|
|
- width: 60px;
|
|
|
- height: 60px;
|
|
|
- z-index: 1;
|
|
|
- .starimg {
|
|
|
- animation: star 3s infinite;
|
|
|
- width: 15px;
|
|
|
- height: 15px;
|
|
|
- position: absolute;
|
|
|
- top: 50%;
|
|
|
- left: 50%;
|
|
|
- transform: translate(-50%, -50%);
|
|
|
- }
|
|
|
- }
|
|
|
- .swiper {
|
|
|
- width: 4em;
|
|
|
- height: 2em;
|
|
|
- bottom: 13vh;
|
|
|
- left: 50%;
|
|
|
- transform: translateX(-50%);
|
|
|
- border-radius: 2em;
|
|
|
- line-height: 2em;
|
|
|
- position: absolute;
|
|
|
- border: 2px solid #ffffff;
|
|
|
- background-image: linear-gradient(to right, #ffffff, #ffffff00);
|
|
|
- .clickEle {
|
|
|
- background-color: #ffffff;
|
|
|
- border-radius: 50%;
|
|
|
- transition: all 0.5s;
|
|
|
- height: 1.8em;
|
|
|
- width: 1.8em;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
}
|
|
|
|
|
|
@keyframes rainbow {
|