|
@@ -1,13 +1,30 @@
|
|
<template>
|
|
<template>
|
|
<div class="welcome" v-if="isShow">
|
|
<div class="welcome" v-if="isShow">
|
|
<video
|
|
<video
|
|
|
|
+ v-if="!isMobile"
|
|
class="myVideo"
|
|
class="myVideo"
|
|
src="../../assets/img/strat.mp4"
|
|
src="../../assets/img/strat.mp4"
|
|
autoplay
|
|
autoplay
|
|
muted
|
|
muted
|
|
></video>
|
|
></video>
|
|
- <div class="SeLanguage" :class="{active:languagShow}">
|
|
|
|
|
|
+ <div class="mobileBox" v-else>
|
|
|
|
+ <div class="videoPlay" v-if="videoPlay">
|
|
|
|
+ <video src="../../assets/img/strat.mp4" autoplay controls></video>
|
|
|
|
+ <i class="el-icon-close" @click="videoPlay = false"></i>
|
|
|
|
+ </div>
|
|
|
|
+ <img class="mobileBoxBg" src="../../assets/imgM/bgWe.png" alt="" />
|
|
|
|
+ <img
|
|
|
|
+ :style="`opacity: ${playImgOpa};`"
|
|
|
|
+ @click="videoPlay = true"
|
|
|
|
+ class="play"
|
|
|
|
+ src="../../assets/imgM/play_active.png"
|
|
|
|
+ alt=""
|
|
|
|
+ />
|
|
|
|
+ <div class="mobileBoxBtn" @click="languagShow = true">进入展馆</div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="SeLanguage" :class="{ active: languagShow }">
|
|
<div class="box">
|
|
<div class="box">
|
|
|
|
+ <i class="el-icon-close" v-if="isMobile" @click="languagShow = false"></i>
|
|
<div class="top">
|
|
<div class="top">
|
|
<p>请选择语言</p>
|
|
<p>请选择语言</p>
|
|
<p>Please select the language</p>
|
|
<p>Please select the language</p>
|
|
@@ -33,6 +50,9 @@ export default {
|
|
return {
|
|
return {
|
|
isShow: false,
|
|
isShow: false,
|
|
languagShow: false,
|
|
languagShow: false,
|
|
|
|
+ videoPlay: false,
|
|
|
|
+ playImgOpa: 1,
|
|
|
|
+ myTime: null,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -48,11 +68,26 @@ export default {
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
let dom = document.querySelector(".myVideo");
|
|
let dom = document.querySelector(".myVideo");
|
|
- dom.addEventListener("ended", () => {
|
|
|
|
- this.languagShow=true
|
|
|
|
- }, false);
|
|
|
|
|
|
+ if (dom) {
|
|
|
|
+ dom.addEventListener(
|
|
|
|
+ "ended",
|
|
|
|
+ () => {
|
|
|
|
+ this.languagShow = true;
|
|
|
|
+ },
|
|
|
|
+ false
|
|
|
|
+ );
|
|
|
|
+ }
|
|
}, 100);
|
|
}, 100);
|
|
});
|
|
});
|
|
|
|
+ // 移动端的play图片透明度变化
|
|
|
|
+ this.myTime = setInterval(() => {
|
|
|
|
+ console.log(123);
|
|
|
|
+ if (this.playImgOpa === 1) this.playImgOpa = 0.5;
|
|
|
|
+ else this.playImgOpa = 1;
|
|
|
|
+ }, 1500);
|
|
|
|
+ },
|
|
|
|
+ destroyed() {
|
|
|
|
+ clearInterval(this.myTime);
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
@@ -88,6 +123,13 @@ export default {
|
|
background-size: 100% 100%;
|
|
background-size: 100% 100%;
|
|
width: 994px;
|
|
width: 994px;
|
|
height: 685px;
|
|
height: 685px;
|
|
|
|
+ .el-icon-close {
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: 40px;
|
|
|
|
+ right: 20px;
|
|
|
|
+ font-size: 30px;
|
|
|
|
+ color: #165491;
|
|
|
|
+ }
|
|
.top {
|
|
.top {
|
|
p {
|
|
p {
|
|
font-weight: 700;
|
|
font-weight: 700;
|
|
@@ -162,38 +204,100 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- .active{
|
|
|
|
|
|
+ .active {
|
|
opacity: 1;
|
|
opacity: 1;
|
|
- pointer-events:initial
|
|
|
|
|
|
+ pointer-events: initial;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@media only screen and (max-width: 800px) {
|
|
@media only screen and (max-width: 800px) {
|
|
- .welcome{
|
|
|
|
- .SeLanguage{
|
|
|
|
- .box{
|
|
|
|
|
|
+ .welcome {
|
|
|
|
+ .mobileBox {
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 100%;
|
|
|
|
+ background-color: rgba(0, 0, 0, 0.5);
|
|
|
|
+ position: relative;
|
|
|
|
+ .videoPlay {
|
|
|
|
+ z-index: 10;
|
|
|
|
+ background-color: black;
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: 0;
|
|
|
|
+ left: 0;
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 100%;
|
|
|
|
+ & > video {
|
|
|
|
+ width: 100%;
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: 50%;
|
|
|
|
+ left: 5;
|
|
|
|
+ transform: translateY(-50%);
|
|
|
|
+ }
|
|
|
|
+ i {
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: 20px;
|
|
|
|
+ right: 20px;
|
|
|
|
+ font-size: 30px;
|
|
|
|
+ color: #fff;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ .mobileBoxBg {
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: 0;
|
|
|
|
+ left: 0;
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 100%;
|
|
|
|
+ z-index: -1;
|
|
|
|
+ object-fit: cover;
|
|
|
|
+ }
|
|
|
|
+ .play {
|
|
|
|
+ transition: opacity 1.5s;
|
|
|
|
+ width: 112px;
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: 50%;
|
|
|
|
+ left: 50%;
|
|
|
|
+ transform: translate(-50%, -50%);
|
|
|
|
+ }
|
|
|
|
+ .mobileBoxBtn {
|
|
|
|
+ line-height: 67px;
|
|
|
|
+ text-align: center;
|
|
|
|
+ padding-right: 30px;
|
|
|
|
+ font-size: 20px;
|
|
|
|
+ font-weight: 700;
|
|
|
|
+ color: #fff;
|
|
|
|
+ position: absolute;
|
|
|
|
+ left: 50%;
|
|
|
|
+ bottom: 50px;
|
|
|
|
+ transform: translateX(-50%);
|
|
|
|
+ width: 248px;
|
|
|
|
+ height: 67px;
|
|
|
|
+ background: url("../../assets/imgM/btnWe.png");
|
|
|
|
+ background-size: 100% 100%;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ .SeLanguage {
|
|
|
|
+ .box {
|
|
padding-top: 70px;
|
|
padding-top: 70px;
|
|
width: 90vw;
|
|
width: 90vw;
|
|
height: 534px;
|
|
height: 534px;
|
|
- background: url('../../assets/imgM/bgL.png');
|
|
|
|
|
|
+ background: url("../../assets/imgM/bgL.png");
|
|
background-size: 100% 100%;
|
|
background-size: 100% 100%;
|
|
- .top{
|
|
|
|
- &>p{
|
|
|
|
- font-size:24px;
|
|
|
|
- &:nth-of-type(2){
|
|
|
|
|
|
+ .top {
|
|
|
|
+ & > p {
|
|
|
|
+ font-size: 24px;
|
|
|
|
+ &:nth-of-type(2) {
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- .card{
|
|
|
|
|
|
+ .card {
|
|
margin-top: 20px;
|
|
margin-top: 20px;
|
|
width: 239px;
|
|
width: 239px;
|
|
display: block;
|
|
display: block;
|
|
- &>div{
|
|
|
|
|
|
+ & > div {
|
|
margin-bottom: 20px;
|
|
margin-bottom: 20px;
|
|
width: 239px;
|
|
width: 239px;
|
|
- height:162px;
|
|
|
|
- .card_ic{
|
|
|
|
|
|
+ height: 162px;
|
|
|
|
+ .card_ic {
|
|
height: 119px;
|
|
height: 119px;
|
|
}
|
|
}
|
|
.aaa {
|
|
.aaa {
|
|
@@ -204,7 +308,7 @@ export default {
|
|
background: url("../../assets/img/en2.png") no-repeat center
|
|
background: url("../../assets/img/en2.png") no-repeat center
|
|
center/59px 54px;
|
|
center/59px 54px;
|
|
}
|
|
}
|
|
- &>p{
|
|
|
|
|
|
+ & > p {
|
|
height: 43px;
|
|
height: 43px;
|
|
line-height: 43px;
|
|
line-height: 43px;
|
|
font-size: 14px;
|
|
font-size: 14px;
|