You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
121 lines
3.7 KiB
121 lines
3.7 KiB
<template>
|
|
<div class="w-full bg-white pb-20 mb-3 hidden-sm-and-down">
|
|
<div class="text-center flex flex-col items-center py-15 relative ">
|
|
<div class="sub-title">
|
|
<p class="text-gray-200 text-5xl font-bold dark:text-gray-700 py-0 line-height-5">
|
|
{{ comments }}
|
|
</p>
|
|
</div>
|
|
<h2 class="text-3xl font-bold tracking-tight text-[#FF6E0CFF] lg:text-5xl">
|
|
{{ title }}
|
|
</h2>
|
|
</div>
|
|
<div class="xl:w-screen-xl m-auto text-xl scale" v-if="config && show">
|
|
<div class="carousel py-3 text-center" v-if="config?.IndexVideoCenter">
|
|
<video id="my-video" class="video-js vjs-default-skin" controls preload="auto" width="900" height="510"
|
|
:poster="config?.IndexVideoImg" data-setup="{}">
|
|
<source :src="config?.IndexVideoCenter" type="video/mp4">
|
|
<p class="vjs-no-js">
|
|
To view this video please enable JavaScript, and consider upgrading to a web browser that
|
|
<a :href="config?.IndexVideoCenter" target="_blank">supports HTML5 video</a>
|
|
</p>
|
|
</video>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="w-full bg-white pb-20 mb-3 hidden-sm-and-up">
|
|
<div class="text-center flex flex-col items-center py-15 relative ">
|
|
<div class="sub-title">
|
|
<p class="text-gray-200 text-6xl font-bold dark:text-gray-700 py-0 line-height-5">
|
|
{{ comments }}
|
|
</p>
|
|
</div>
|
|
<h2 class="text-3xl font-bold tracking-tight text-[#FF6E0CFF] lg:text-5xl">
|
|
{{ title }}
|
|
</h2>
|
|
</div>
|
|
<div class="xl:w-screen-xl m-auto text-xl scale" v-if="config && show">
|
|
<div class="hidden-sm-and-down carousel py-3 text-center" v-if="config?.IndexVideoCenter">
|
|
<video id="my-video" class="video-js vjs-default-skin" controls preload="auto" width="900" height="510"
|
|
:poster="config?.IndexVideoImg" data-setup="{}">
|
|
<source :src="config?.IndexVideoCenter" type="video/mp4">
|
|
<p class="vjs-no-js">
|
|
To view this video please enable JavaScript, and consider upgrading to a web browser that
|
|
<a :href="config?.IndexVideoCenter" target="_blank">supports HTML5 video</a>
|
|
</p>
|
|
</video>
|
|
</div>
|
|
<div class="hidden-sm-and-up carousel text-center" v-if="config?.IndexVideoCenter">
|
|
<video id="my-video" class="video-js vjs-default-skin" controls preload="auto" width="350" height="210"
|
|
:poster="config?.IndexVideoImg" data-setup="{}">
|
|
<source :src="config?.IndexVideoCenter" type="video/mp4">
|
|
<p class="vjs-no-js">
|
|
To view this video please enable JavaScript, and consider upgrading to a web browser that
|
|
<a :href="config?.IndexVideoCenter" target="_blank">supports HTML5 video</a>
|
|
</p>
|
|
</video>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
|
|
const props = withDefaults(
|
|
defineProps<{
|
|
config?: any;
|
|
list?: any[];
|
|
disabled?: boolean;
|
|
title?: string;
|
|
comments?: string;
|
|
scrollTop: number;
|
|
}>(),
|
|
{
|
|
title: '卡片标题',
|
|
comments: '卡片描述'
|
|
}
|
|
);
|
|
|
|
const emit = defineEmits<{
|
|
(e: 'done'): void;
|
|
}>();
|
|
|
|
const indexVideo = ref();
|
|
const indexVideoImg = ref();
|
|
|
|
// 请求数据
|
|
const reload = async () => {
|
|
|
|
}
|
|
|
|
const show = ref(false)
|
|
watch(
|
|
() => props.scrollTop,
|
|
() => {
|
|
if (props.scrollTop >= 1500) show.value = true
|
|
},
|
|
|
|
{immediate: true}
|
|
);
|
|
|
|
reload();
|
|
</script>
|
|
|
|
<style lang="less" scoped>
|
|
.scale{
|
|
animation: scale-ani;
|
|
animation-duration: 0.5s;
|
|
animation-fill-mode: forwards;
|
|
}
|
|
|
|
@keyframes scale-ani {
|
|
from{
|
|
transform: scale(1.5);
|
|
opacity: 0;
|
|
}
|
|
to{
|
|
transform: scale(1);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
</style>
|