<template> <div class="doorPage"> <!-- 头部 --> <div class="doorHead"> <div class="header-name">开封市海绵综合管理平台</div> </div> <!-- 装饰框 --> <div class="zsDiv zsBottom"></div> <!-- 登录框 --> <div class="middle"> <div :class="['loginPages ']"> <LoginPage v-if="showLogin"></LoginPage> </div> </div> <!-- 底部二维码 --> <!-- <div class="doorFooter"> <div class="footCon"> <div class="part"> <img src="https://www.pgyer.com/app/qrcode/bp0qZc" alt="安卓APP扫码" /> <p>安卓APP下载</p> </div> <div class="part"> <img src="https://www.pgyer.com/app/qrcode/bp0qZc" alt="微信公众号关注" /> <p>微信公众号关注</p> </div> </div> </div> --> </div> </template> <script setup name="系统首页"> import LoginPage from './login.vue'; const { proxy } = getCurrentInstance(); const week = ref(['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六']); const dateTime = ref(proxy.moment(new Date()).format('YYYY年MM月DD日 ') + week.value[new Date().getDay()]); const showLogin = ref(true); onMounted(() => {}); </script> <style lang="scss" scoped> .doorPage { width: 100%; height: 100%; position: relative; background: url('@/assets/images/login/bg_img.png') no-repeat; background-size: 100% 100%; .doorHead { width: 100%; height: 80px; background: url('@/assets/images/login/top.png') no-repeat; background-size: 100% 100%; display: flex; align-items: center; justify-content: center; .header-name { font-size: 30px; font-family: YouSheBiaoTiHei; font-weight: 300; color: #ffffff; } } .zsDiv { position: absolute; pointer-events: none; &.zsBottom { width: calc(100% - 20px); height: 25px; bottom: 10px; left: 10px; background: url('@/assets/images/login/Bottom.png') no-repeat center; background-size: 100% 100%; z-index: 11; // background: red; } } .middle { width: 100%; height: calc(100vh - 250px); // background: red; .loginPages { position: absolute; top: 20%; right: 38%; z-index: 100; } } .doorFooter { width: 100%; height: 160px; // background: yellow; display: flex; justify-content: center; .footCon { width: 50%; display: flex; justify-content: space-evenly; align-items: center; color: #fff; font-family: PingFang SC; font-size: 14px; font-style: normal; font-weight: 400; // background: red; .part { img { width: 90px; height: 90px; border-radius: 10px; } p { text-align: center; margin-top: 6px; } } } } } </style>