|
@@ -0,0 +1,88 @@
|
|
|
|
+<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">
|
|
|
|
+
|
|
|
|
+ </div>
|
|
|
|
+ <div class="screen">3</div>
|
|
|
|
+ <div class="screen">4</div>
|
|
|
|
+ <div class="screen">5</div>
|
|
|
|
+ <div class="screen">6</div>
|
|
|
|
+ </div>
|
|
|
|
+</template>
|
|
|
|
+<script setup>
|
|
|
|
+// import { onMounted, reactive } from "vue";
|
|
|
|
+import { reactive, ref } from "vue";
|
|
|
|
+// import { isIpad, isIpod, isIphone } from "../../utils/isTerminal";
|
|
|
|
+/**
|
|
|
|
+ * window.$originData.orginParames.title 页面标题
|
|
|
|
+ * window.$originData.orginParames.parameters 固定参数值
|
|
|
|
+ * window.$originData.urlParames url参数
|
|
|
|
+ */
|
|
|
|
+console.log(window.$originData);
|
|
|
|
+let first_text = ['"大美中国·多彩丝路"', "2023丝路春晚 联名限定"];
|
|
|
|
+const showFirst = ref(true);
|
|
|
|
+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);
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+</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;
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ font-weight: 400;
|
|
|
|
+ .screen {
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 100%;
|
|
|
|
+ }
|
|
|
|
+ .first {
|
|
|
|
+ background-color: #000000;
|
|
|
|
+ position: relative;
|
|
|
|
+ transition: all 5s;
|
|
|
|
+ opacity: 1;
|
|
|
|
+ .first_text {
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: 50%;
|
|
|
|
+ left: 50%;
|
|
|
|
+ width: 100%;
|
|
|
|
+ transform: translate(-50%, -50%);
|
|
|
|
+ color: #ffffff;
|
|
|
|
+ text-align: center;
|
|
|
|
+ letter-spacing: 0.2rem;
|
|
|
|
+ font-size: 1.2rem;
|
|
|
|
+ font-family: Lato, serif;
|
|
|
|
+ text-transform: uppercase;
|
|
|
|
+ p {
|
|
|
|
+ margin-top: 5px;
|
|
|
|
+ span {
|
|
|
|
+ animation: rainbow 50s alternate infinite forwards;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+@keyframes rainbow {
|
|
|
|
+ @for $i from 0 through 20 {
|
|
|
|
+ #{percentage($i * 0.05)} {
|
|
|
|
+ color: hsl(random(360%), 75, 75);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+</style>
|