|
|
@ -1,37 +1,22 @@ |
|
|
|
<template> |
|
|
|
<div class="intro_video_container"> |
|
|
|
<div class="init_bg"> |
|
|
|
<div class="play_btn" @click="showDialog"> |
|
|
|
<img :src="Play" class="play" alt="" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="dialog_black" v-if="dialogVisible"> |
|
|
|
<div class="video_dialog"> |
|
|
|
<!-- <p class="close" @click="cancleDialog"> |
|
|
|
<img :src="Close" class="img_c" alt="" /> |
|
|
|
</p> --> |
|
|
|
<video controls style="width: 100%; height: 100%; object-fit: fill"> |
|
|
|
<source :src="Movie" /> |
|
|
|
</video> |
|
|
|
<!-- <Video :videoUrl="Movie" :autoPlay="true" /> --> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<video |
|
|
|
controls |
|
|
|
style="width: 100%; height: 100%; object-fit: fill" |
|
|
|
controlslist="nodownload" |
|
|
|
:loop="true" |
|
|
|
:poster="Play" |
|
|
|
:autoplay="true" |
|
|
|
:muted="true" |
|
|
|
> |
|
|
|
<source :src="Movie" /> |
|
|
|
</video> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script setup> |
|
|
|
import Play from '@/assets/img/intro/play.png' |
|
|
|
// import Close from '@/assets/img/intro/close.png' |
|
|
|
import Play from '@/assets/img/intro/bg.jpg' |
|
|
|
import Movie from '@/assets/a.m4v' |
|
|
|
import Video from 'cpns/Video' |
|
|
|
import { ref } from 'vue' |
|
|
|
const dialogVisible = ref(false) |
|
|
|
const showDialog = () => { |
|
|
|
dialogVisible.value = true |
|
|
|
} |
|
|
|
const cancleDialog = e => { |
|
|
|
dialogVisible.value = false |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
@ -39,57 +24,5 @@ const cancleDialog = e => { |
|
|
|
width: 100%; |
|
|
|
height: 100%; |
|
|
|
position: relative; |
|
|
|
background: url(../../../../assets/img/intro/bg.JPG) no-repeat; |
|
|
|
background-size: 100% 100%; |
|
|
|
.init_bg { |
|
|
|
width: 100%; |
|
|
|
height: 100%; |
|
|
|
position: absolute; |
|
|
|
top: 0; |
|
|
|
left: 0; |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
justify-content: center; |
|
|
|
background: rgb(0, 0, 0, 0.68); |
|
|
|
.play_btn { |
|
|
|
width: 100px; |
|
|
|
height: 100px; |
|
|
|
cursor: pointer; |
|
|
|
.play { |
|
|
|
width: 100px; |
|
|
|
height: 100px; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.dialog_black { |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
justify-content: center; |
|
|
|
position: absolute; |
|
|
|
background: rgba(0, 0, 0, 0.8); |
|
|
|
width: 100%; |
|
|
|
height: 100%; |
|
|
|
left: 0; |
|
|
|
right: 0; |
|
|
|
top: 0; |
|
|
|
.video_dialog { |
|
|
|
width: 100vw; |
|
|
|
height: auto; |
|
|
|
position: relative; |
|
|
|
.close { |
|
|
|
position: absolute; |
|
|
|
right: -50px; |
|
|
|
top: 0; |
|
|
|
width: 30px; |
|
|
|
height: 30px; |
|
|
|
cursor: pointer; |
|
|
|
.img_c { |
|
|
|
width: 30px; |
|
|
|
height: 30px; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</style> |