|
@@ -0,0 +1,228 @@
|
|
|
+<template>
|
|
|
+ <dv-full-screen-container>
|
|
|
+ <div class="screen">
|
|
|
+ <div class="one">
|
|
|
+ <div class="left" style="left: 10%"></div>
|
|
|
+ <div class="center">
|
|
|
+ <span>{{ info.name }}</span>
|
|
|
+ <img :src="bg_1" alt="" class="ding_img" />
|
|
|
+ </div>
|
|
|
+ <div class="right" style="right: 10%">
|
|
|
+ <div class="head_2" id="showTime">{{ formattedTime }}</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="boxnav nav03">
|
|
|
+ <div class="listhead listhead1">
|
|
|
+ <span>字段名称</span>
|
|
|
+ <span>字段名称</span>
|
|
|
+ <span>字段名称</span>
|
|
|
+ <span>字段名称</span>
|
|
|
+ <span>字段名称</span>
|
|
|
+ <span>字段名称</span>
|
|
|
+ </div>
|
|
|
+ <Vue3SeamlessScroll class="scroll" :limitScrollNum="9" :list="list" :hover="true" :step="0.4" :wheel="true" :isWatch="true">
|
|
|
+ <div class="listnav listnav1 scrollDiv">
|
|
|
+ <ul>
|
|
|
+ <li v-for="(item, index) in list" :key="index">
|
|
|
+ <span>{{ item.num1 }}</span>
|
|
|
+ <span>{{ item.num2 }}</span>
|
|
|
+ <span>{{ item.num3 }}</span>
|
|
|
+ <span>{{ item.num4 }}</span>
|
|
|
+ <span>{{ item.num5 }}</span>
|
|
|
+ <span class="text-green">{{ item.num6 }}</span>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </Vue3SeamlessScroll>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </dv-full-screen-container>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script setup>
|
|
|
+import { Vue3SeamlessScroll } from 'vue3-seamless-scroll'
|
|
|
+// 图片引入
|
|
|
+import bg_1 from '/images/顶图.png'
|
|
|
+const info = ref({ name: '赛事名称' })
|
|
|
+// 时间
|
|
|
+const formattedTime = ref('')
|
|
|
+const list = ref([
|
|
|
+ { num1: '201910-01', num2: '2658/2658', num3: '2658/2658', num4: '2658/2658', num5: '2658/2658', num6: '100%' },
|
|
|
+ { num1: '201910-01', num2: '2658/2658', num3: '2658/2658', num4: '2658/2658', num5: '2658/2658', num6: '100%' },
|
|
|
+ { num1: '201910-01', num2: '2658/2658', num3: '2658/2658', num4: '2658/2658', num5: '2658/2658', num6: '100%' },
|
|
|
+ { num1: '201910-01', num2: '2658/2658', num3: '2658/2658', num4: '2658/2658', num5: '2658/2658', num6: '100%' },
|
|
|
+ { num1: '201910-01', num2: '2658/2658', num3: '2658/2658', num4: '2658/2658', num5: '2658/2658', num6: '100%' },
|
|
|
+ { num1: '201910-01', num2: '2658/2658', num3: '2658/2658', num4: '2658/2658', num5: '2658/2658', num6: '100%' },
|
|
|
+ { num1: '201910-01', num2: '2658/2658', num3: '2658/2658', num4: '2658/2658', num5: '2658/2658', num6: '100%' },
|
|
|
+ { num1: '201910-01', num2: '2658/2658', num3: '2658/2658', num4: '2658/2658', num5: '2658/2658', num6: '100%' },
|
|
|
+ { num1: '201910-01', num2: '2658/2658', num3: '2658/2658', num4: '2658/2658', num5: '2658/2658', num6: '100%' },
|
|
|
+ { num1: '201910-01', num2: '2658/2658', num3: '2658/2658', num4: '2658/2658', num5: '2658/2658', num6: '100%' },
|
|
|
+ { num1: '201910-01', num2: '2658/2658', num3: '2658/2658', num4: '2658/2658', num5: '2658/2658', num6: '100%' }
|
|
|
+])
|
|
|
+// 请求
|
|
|
+onMounted(async () => {
|
|
|
+ await updateTime()
|
|
|
+})
|
|
|
+// 创建一个函数来格式化时间并更新状态
|
|
|
+const updateTime = () => {
|
|
|
+ const now = new Date()
|
|
|
+ const options = {
|
|
|
+ year: 'numeric',
|
|
|
+ month: '2-digit',
|
|
|
+ day: '2-digit',
|
|
|
+ hour: '2-digit',
|
|
|
+ minute: '2-digit',
|
|
|
+ second: '2-digit',
|
|
|
+ hour12: false
|
|
|
+ }
|
|
|
+ formattedTime.value = now.toLocaleString('zh-CN', options)
|
|
|
+}
|
|
|
+
|
|
|
+const timer = setInterval(updateTime, 1000)
|
|
|
+
|
|
|
+onMounted(() => {
|
|
|
+ timer // 开始计时器
|
|
|
+})
|
|
|
+</script>
|
|
|
+<style scoped lang="scss">
|
|
|
+.screen {
|
|
|
+ position: relative;
|
|
|
+ background: url(/images/loginbg.gif);
|
|
|
+ background-size: 100% 100%;
|
|
|
+ width: 100%; /* 视口宽度 */
|
|
|
+ height: 100%; /* 视口高度 */
|
|
|
+ padding: 0px;
|
|
|
+ margin: 0px;
|
|
|
+ color: #fff;
|
|
|
+ font-family: '微软雅黑';
|
|
|
+ cursor: default; /* 将鼠标样式更改为箭头 */
|
|
|
+ .one {
|
|
|
+ position: relative;
|
|
|
+ .left {
|
|
|
+ display: flex;
|
|
|
+ position: absolute;
|
|
|
+ top: 20%;
|
|
|
+ height: 28px;
|
|
|
+ .button {
|
|
|
+ font-size: 0.7rem;
|
|
|
+ color: #3a86bf;
|
|
|
+ width: 115px;
|
|
|
+ height: 28px;
|
|
|
+ text-align: center;
|
|
|
+ line-height: 27px;
|
|
|
+ cursor: default;
|
|
|
+ }
|
|
|
+ .button_1 {
|
|
|
+ background: url('../assets/images/上tab默认1.png') no-repeat;
|
|
|
+ background-size: cover;
|
|
|
+ }
|
|
|
+ .button_2 {
|
|
|
+ background: url('../assets/images/上tab默认1.png') no-repeat;
|
|
|
+ background-size: cover;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .center {
|
|
|
+ .ding_img {
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
+ span {
|
|
|
+ position: absolute;
|
|
|
+ top: 25%;
|
|
|
+ left: 50%;
|
|
|
+ font-size: 2rem;
|
|
|
+ transform: translate(-50%, 0);
|
|
|
+ color: #b2e5fa;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .right {
|
|
|
+ display: flex;
|
|
|
+ position: absolute;
|
|
|
+ top: 20%;
|
|
|
+ height: 28px;
|
|
|
+ .head_2 {
|
|
|
+ position: absolute;
|
|
|
+ right: 10px;
|
|
|
+ top: 5px;
|
|
|
+ line-height: 20px;
|
|
|
+ color: rgba(255, 255, 255, 0.7);
|
|
|
+ font-size: 20px;
|
|
|
+ padding-right: 10px;
|
|
|
+ font-family: electronicFont;
|
|
|
+ width: 220px;
|
|
|
+ }
|
|
|
+ .button {
|
|
|
+ font-size: 0.7rem;
|
|
|
+ color: #3a86bf;
|
|
|
+ width: 115px;
|
|
|
+ height: 28px;
|
|
|
+ text-align: center;
|
|
|
+ line-height: 27px;
|
|
|
+ cursor: default;
|
|
|
+ }
|
|
|
+ .button_3 {
|
|
|
+ background: url('../assets/images/上tab选中2.png') no-repeat;
|
|
|
+ background-size: cover;
|
|
|
+ }
|
|
|
+ .button_4 {
|
|
|
+ background: url('../assets/images/上tab选中2.png') no-repeat;
|
|
|
+ background-size: cover;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .nav03 {
|
|
|
+ height: calc(100% - 5rem);
|
|
|
+ padding-top: 2rem;
|
|
|
+ .scroll {
|
|
|
+ overflow: hidden;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .listhead {
|
|
|
+ height: 5rem;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ }
|
|
|
+ .listnav {
|
|
|
+ height: calc(100% - 5rem);
|
|
|
+ }
|
|
|
+ .listnav ul {
|
|
|
+ margin: 0;
|
|
|
+ padding: 0;
|
|
|
+ }
|
|
|
+ .listnav ul li {
|
|
|
+ height: 100%;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ }
|
|
|
+ .listhead span,
|
|
|
+ .listnav li span {
|
|
|
+ width: 100%;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ display: flex;
|
|
|
+ height: 5rem;
|
|
|
+ }
|
|
|
+ .listhead1 span,
|
|
|
+ .listnav1 li span {
|
|
|
+ border: 1px solid #3486da;
|
|
|
+ }
|
|
|
+ .listnav ul li span {
|
|
|
+ font-size: 2rem;
|
|
|
+ }
|
|
|
+ .listnav2 ul li:nth-child(odd) {
|
|
|
+ background: #0c2854;
|
|
|
+ }
|
|
|
+ .listhead1 span {
|
|
|
+ background: #0c2854;
|
|
|
+ font-size: 2rem;
|
|
|
+ color: #3486da;
|
|
|
+ font-weight: bold;
|
|
|
+ }
|
|
|
+ .listhead2 span {
|
|
|
+ font-size: 2rem;
|
|
|
+ color: #3486da;
|
|
|
+ border-bottom: 1px solid #0c2854;
|
|
|
+ font-weight: bold;
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|