Files
Yi.Admin/Yi.BBS.Vue3/src/layout/LoginLayout.vue

103 lines
1.8 KiB
Vue
Raw Normal View History

2023-03-15 13:53:34 +08:00
<template>
2023-03-17 00:30:26 +08:00
<div class="body-div" id="body">
2023-03-16 20:26:29 +08:00
<div class="left">
2023-03-17 00:30:26 +08:00
<video class="videoBG" controls autoplay playsinline loop disablepictureinpicture poster="/loginBg.png">
2023-03-16 20:26:29 +08:00
<source src="/loginBg.mp4" type="video/mp4">
您的浏览器不支持 video 标签
</video>
</div>
2023-03-17 00:30:26 +08:00
<div class="right">
2023-03-16 20:26:29 +08:00
<RouterView />
</div>
</div>
2023-03-16 19:46:21 +08:00
2023-03-15 13:53:34 +08:00
</template>
2023-03-17 00:30:26 +08:00
<script setup>
import { onMounted } from 'vue';
const screenSize=()=>{
var screenHeight=document.documentElementclientHeight;
var screenWidth=document.documentElement.clientWidth;
var body=document.getElementById('body');
body.style.width=screenWidth+"px";
body.style.height=screenHeight+"px";
}
onMounted(()=>{
screenSize();
window.onresize = () => (() => {
screenSize();
})();
})
</script>
2023-03-16 20:26:29 +08:00
<style scoped>
.left
{
width: 100%;
2023-03-17 00:30:26 +08:00
background-color:#00020E
2023-03-16 20:26:29 +08:00
}
.right
{
max-width: 520px;
width:40% ;
background-color: blue;
}
.body-div
{
display: flex;
justify-content: space-between;
width: 100%;
2023-03-17 00:30:26 +08:00
2023-03-16 20:26:29 +08:00
}
.videoBG
{
2023-03-17 00:30:26 +08:00
width:100% ;
2023-03-16 20:26:29 +08:00
}
video::-webkit-media-controls-fullscreen-button {
display: none;
}
video::-webkit-media-controls-play-button {
display: none;
}
video::-webkit-media-controls-timeline {
display: none;
}
video::-webkit-media-controls-current-time-display{
display: none;
}
video::-webkit-media-controls-time-remaining-display {
display: none;
}
video::-webkit-media-controls-mute-button {
display: none;
}
video::-webkit-media-controls-toggle-closed-captions-button {
display: none;
}
video::-webkit-media-controls-volume-slider {
display: none;
}
2023-03-15 13:53:34 +08:00
2023-03-16 20:26:29 +08:00
video::-webkit-media-controls-enclosure{
display: none;
}
</style>