12 changed files with 129 additions and 29 deletions
-
1index.html
-
BINlogo.ico
-
BINsrc/assets/img/intro/a.m4v
-
BINsrc/assets/img/intro/bg.jpg
-
BINsrc/assets/img/intro/close.png
-
BINsrc/assets/img/intro/play.png
-
2src/common/utils.js
-
2src/components/TopNav/index.vue
-
23src/components/Video/index.vue
-
91src/views/Index/components/IntroVideo/index.vue
-
2src/views/Index/components/Recruit/index.vue
-
37src/views/Index/index.vue
After Width: 64 | Height: 64 | Size: 2.6 KiB |
After Width: 6720 | Height: 4480 | Size: 11 MiB |
After Width: 200 | Height: 200 | Size: 2.8 KiB |
After Width: 100 | Height: 100 | Size: 709 B |
@ -0,0 +1,91 @@ |
|||
<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 videoUrl="/src/assets/img/intro/a.m4v" :autoPlay="true" /> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
|
|||
<script setup> |
|||
import Play from '@/assets/img/intro/play.png' |
|||
import Close from '@/assets/img/intro/close.png' |
|||
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> |
|||
.intro_video_container { |
|||
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: 50vw; |
|||
height: auto; |
|||
position: relative; |
|||
.close { |
|||
position: absolute; |
|||
right: -50px; |
|||
top: -50px; |
|||
width: 30px; |
|||
height: 30px; |
|||
cursor: pointer; |
|||
.img_c { |
|||
width: 30px; |
|||
height: 30px; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
</style> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue