|
@@ -10,11 +10,21 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="screen">
|
|
<div class="screen">
|
|
- <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'" />
|
|
|
|
|
|
+ <transition name="fade">
|
|
|
|
+ <second v-if="page === 'second'" @changePage="changePage" />
|
|
|
|
+ </transition>
|
|
|
|
+ <transition name="fade">
|
|
|
|
+ <third v-if="page === 'third'" @changePage="changePage" />
|
|
|
|
+ </transition>
|
|
|
|
+ <transition name="fade">
|
|
|
|
+ <fourth v-if="page === 'fourth'" @changePage="changePage" />
|
|
|
|
+ </transition>
|
|
|
|
+ <transition name="fade">
|
|
|
|
+ <five v-if="page === 'five'" @changePage="changePage" />
|
|
|
|
+ </transition>
|
|
|
|
+ <transition name="fade">
|
|
|
|
+ <sex v-if="page === 'sex'" />
|
|
|
|
+ </transition>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -26,7 +36,7 @@ import five from "./pages/five.vue";
|
|
import sex from "./pages/sex.vue";
|
|
import sex from "./pages/sex.vue";
|
|
|
|
|
|
// import { onMounted, reactive } from "vue";
|
|
// import { onMounted, reactive } from "vue";
|
|
-import { ref, reactive } from "vue";
|
|
|
|
|
|
+import { ref } from "vue";
|
|
// import { isIpad, isIpod, isIphone } from "../../utils/isTerminal";
|
|
// import { isIpad, isIpod, isIphone } from "../../utils/isTerminal";
|
|
/**
|
|
/**
|
|
* window.$originData.orginParames.title 页面标题
|
|
* window.$originData.orginParames.title 页面标题
|
|
@@ -34,16 +44,16 @@ import { ref, reactive } from "vue";
|
|
* window.$originData.urlParames url参数
|
|
* window.$originData.urlParames url参数
|
|
*/
|
|
*/
|
|
console.log(window.$originData);
|
|
console.log(window.$originData);
|
|
-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 = "second";
|
|
|
|
-}, 5000);
|
|
|
|
|
|
+const page = ref("second");
|
|
|
|
+// 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 = "second";
|
|
|
|
+// }, 5000);
|
|
|
|
|
|
function changePage(type) {
|
|
function changePage(type) {
|
|
page.value = type;
|
|
page.value = type;
|
|
@@ -58,8 +68,24 @@ function changePage(type) {
|
|
.screen {
|
|
.screen {
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
height: 100%;
|
|
|
|
+ background-color: #000000;
|
|
> div {
|
|
> div {
|
|
height: 100%;
|
|
height: 100%;
|
|
|
|
+ width: 100%;
|
|
|
|
+ transition: all 2s;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .fade-enter-from,
|
|
|
|
+ .fade-leave-to {
|
|
|
|
+ opacity: 0;
|
|
|
|
+ }
|
|
|
|
+ .fade-enter-active,
|
|
|
|
+ .fade-leave-active {
|
|
|
|
+ transition: opacity 1s ease;
|
|
|
|
+ }
|
|
|
|
+ .fade-enter-to,
|
|
|
|
+ .fade-leave-from {
|
|
|
|
+ opacity: 1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.first {
|
|
.first {
|