|
|
|
@ -1,10 +1,28 @@
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
|
import { ref } from "vue";
|
|
|
|
|
import Login from "./components/Login.vue";
|
|
|
|
|
import Forget from "./components/Forget.vue";
|
|
|
|
|
|
|
|
|
|
import { onMounted, nextTick, ref, onDeactivated } from "vue";
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
nextTick(() => {
|
|
|
|
|
initRem();
|
|
|
|
|
});
|
|
|
|
|
window.addEventListener("resize", () => {
|
|
|
|
|
initRem();
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
onDeactivated(()=>{
|
|
|
|
|
window.removeEventListener('resize',()=>{
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
const show = ref(false);
|
|
|
|
|
const ifLogin = ref(true);
|
|
|
|
|
const initRem = () => {
|
|
|
|
|
const designWidth = 1440;
|
|
|
|
|
const rempPx = 16;
|
|
|
|
|
const scale = window.innerWidth / designWidth;
|
|
|
|
|
document.documentElement.style.fontSize = scale * rempPx + "px";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
function showLogin() {
|
|
|
|
|
show.value = true;
|
|
|
|
@ -86,7 +104,7 @@ function close() {
|
|
|
|
|
background-image: url("../../assets/images/login/bg.png");
|
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
|
background-size: cover;
|
|
|
|
|
height: 100vh;
|
|
|
|
|
height: 56.25rem;
|
|
|
|
|
|
|
|
|
|
.f-c-c {
|
|
|
|
|
display: flex;
|
|
|
|
@ -111,77 +129,77 @@ function close() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.img-logo {
|
|
|
|
|
width: 121px;
|
|
|
|
|
height: 35px;
|
|
|
|
|
width: 7.5625rem;
|
|
|
|
|
height: 2.1875rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.img-ai {
|
|
|
|
|
width: 97px;
|
|
|
|
|
height: 90px;
|
|
|
|
|
width: 6.0625rem;
|
|
|
|
|
height: 5.625rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.img-item {
|
|
|
|
|
width: 53px;
|
|
|
|
|
height: 52px;
|
|
|
|
|
margin-left: -10px;
|
|
|
|
|
width: 3.3125rem;
|
|
|
|
|
height: 3.25rem;
|
|
|
|
|
margin-left: -0.625rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.img-task {
|
|
|
|
|
width: 138px;
|
|
|
|
|
height: 54px;
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
width: 8.625rem;
|
|
|
|
|
height: 3.375rem;
|
|
|
|
|
border-radius: 0.375rem;
|
|
|
|
|
background-image: url("../../assets/images/login/img-task.png");
|
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
|
background-size: cover;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
font-size: 0.875rem;
|
|
|
|
|
font-family: HarmonyOS Sans SC, HarmonyOS Sans SC-Regular;
|
|
|
|
|
font-weight: Regular;
|
|
|
|
|
text-align: left;
|
|
|
|
|
color: #666666;
|
|
|
|
|
margin-left: -10px;
|
|
|
|
|
margin-top: -10px;
|
|
|
|
|
padding-top: 10px;
|
|
|
|
|
margin-left: -0.625rem;
|
|
|
|
|
margin-top: -1rem;
|
|
|
|
|
padding-top: 0.625rem;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.img-ip {
|
|
|
|
|
width: 80px;
|
|
|
|
|
height: 80px;
|
|
|
|
|
width: 5rem;
|
|
|
|
|
height: 5rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.img-text {
|
|
|
|
|
width: 600px;
|
|
|
|
|
height: 65px;
|
|
|
|
|
margin-top: 43px;
|
|
|
|
|
width: 37.5rem;
|
|
|
|
|
height: 4.0625rem;
|
|
|
|
|
margin-top: 2.6875rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.img-icon-1 {
|
|
|
|
|
width: 54px;
|
|
|
|
|
height: 54px;
|
|
|
|
|
width: 3.375rem;
|
|
|
|
|
height: 3.375rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.img-icon-2 {
|
|
|
|
|
width: 54px;
|
|
|
|
|
height: 54px;
|
|
|
|
|
margin-left: 830px;
|
|
|
|
|
width: 3.375rem;
|
|
|
|
|
height: 3.375rem;
|
|
|
|
|
margin-left: 51.875rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.content {
|
|
|
|
|
width: 1300px;
|
|
|
|
|
width: 81.25rem;
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
padding-top: 27px;
|
|
|
|
|
padding-top: 1.6875rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.header {
|
|
|
|
|
margin-bottom: 44px;
|
|
|
|
|
margin-bottom: 2.75rem;
|
|
|
|
|
|
|
|
|
|
.btn-login {
|
|
|
|
|
width: 76px;
|
|
|
|
|
height: 40px;
|
|
|
|
|
width: 4.75rem;
|
|
|
|
|
height: 2.5rem;
|
|
|
|
|
border: 1px solid #666666;
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
border-radius: 0.5rem;
|
|
|
|
|
font-size: 1rem;
|
|
|
|
|
font-family: PingFang SC, PingFang SC-Regular;
|
|
|
|
|
font-weight: Regular;
|
|
|
|
|
color: #333333;
|
|
|
|
@ -190,103 +208,89 @@ function close() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.img-wrap {
|
|
|
|
|
padding-left: 174px;
|
|
|
|
|
padding-left: 10.875rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.center-text {
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
width: 776px;
|
|
|
|
|
width: 48.5rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.text {
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
font-size: 1.25rem;
|
|
|
|
|
font-family: PingFang SC, PingFang SC-Regular;
|
|
|
|
|
font-weight: Regular;
|
|
|
|
|
text-align: center;
|
|
|
|
|
color: #666666;
|
|
|
|
|
line-height: 28px;
|
|
|
|
|
margin-top: 32px;
|
|
|
|
|
line-height: 1.75rem;
|
|
|
|
|
margin-top: 2rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.btn-login-2 {
|
|
|
|
|
width: 138px;
|
|
|
|
|
height: 44px;
|
|
|
|
|
width: 8.625rem;
|
|
|
|
|
height: 2.75rem;
|
|
|
|
|
background: linear-gradient(136deg, #3258e8, #786efc 100%);
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
border-radius: 0.5rem;
|
|
|
|
|
box-shadow: 0px 2px 6px 0px rgba(116, 153, 253, 0.3);
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
font-size: 1rem;
|
|
|
|
|
font-family: PingFang SC, PingFang SC-Medium;
|
|
|
|
|
font-weight: Medium;
|
|
|
|
|
text-align: left;
|
|
|
|
|
color: #ffffff;
|
|
|
|
|
line-height: 22px;
|
|
|
|
|
line-height: 1.375rem;
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.item-wrap {
|
|
|
|
|
margin-top: 78px;
|
|
|
|
|
width: 76.375rem;
|
|
|
|
|
margin: 4.875rem auto 0;
|
|
|
|
|
.item {
|
|
|
|
|
width: 258px;
|
|
|
|
|
height: 132px;
|
|
|
|
|
// width: 16.125rem;
|
|
|
|
|
// height: 8.25rem;
|
|
|
|
|
width: 14.875rem;
|
|
|
|
|
height: 7rem;
|
|
|
|
|
background-image: url("../../assets/images/login/item-bg.png");
|
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
|
background-size: cover;
|
|
|
|
|
position: relative;
|
|
|
|
|
padding-top: 50px;
|
|
|
|
|
padding-left: 28px;
|
|
|
|
|
padding-top: 3.125rem;
|
|
|
|
|
padding-left: 1.75rem;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.item-img {
|
|
|
|
|
width: 66px;
|
|
|
|
|
height: 76px;
|
|
|
|
|
width: 4.125rem;
|
|
|
|
|
height: 4.75rem;
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: -15px;
|
|
|
|
|
left: 20px;
|
|
|
|
|
top: -0.9375rem;
|
|
|
|
|
left: 1.25rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.title {
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
font-size: 1rem;
|
|
|
|
|
font-family: PingFang SC, PingFang SC-Medium;
|
|
|
|
|
font-weight: Medium;
|
|
|
|
|
color: #333333;
|
|
|
|
|
line-height: 22px;
|
|
|
|
|
margin-bottom: 8px;
|
|
|
|
|
line-height: 1.375rem;
|
|
|
|
|
margin-bottom: 0.5rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.subtitle {
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
font-size: 0.75rem;
|
|
|
|
|
font-family: PingFang SC, PingFang SC-Regular;
|
|
|
|
|
font-weight: Regular;
|
|
|
|
|
color: #666666;
|
|
|
|
|
line-height: 17px;
|
|
|
|
|
line-height: 1.0625rem;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media screen and (min-width: 1440px) {
|
|
|
|
|
.item-footer {
|
|
|
|
|
max-width: 970px;
|
|
|
|
|
max-height: 119px;
|
|
|
|
|
width: 50%;
|
|
|
|
|
height: 10vh;
|
|
|
|
|
position: fixed;
|
|
|
|
|
left: 50%;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
margin-left: -485px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@media screen and (min-width:1440) {
|
|
|
|
|
.item-footer {
|
|
|
|
|
max-width: 970px;
|
|
|
|
|
max-height: 119px;
|
|
|
|
|
width: 50%;
|
|
|
|
|
height: 10vh;
|
|
|
|
|
position: fixed;
|
|
|
|
|
left: 60%;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
margin-left: -485px;
|
|
|
|
|
}
|
|
|
|
|
.item-footer {
|
|
|
|
|
width: 60.625rem;
|
|
|
|
|
height: 7.4375rem;
|
|
|
|
|
position: fixed;
|
|
|
|
|
left: 44.5rem;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
margin-left: -30.3125rem;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|