2026-03-04 14:25:41 +08:00

65 lines
1.8 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<a-spin :loading="loading" tip="加载中..." style="width: 100%">
<div class="container">
<div class="login">
<LoginBanner v-if="isPc" />
<div class="login_box">
<div class="login_title">欢迎登录电单车管理系统</div>
<div class="login_title_desc">高效管理电单车运营实时掌握车辆动态</div>
<div class="login_title_desc">智能调度助力城市绿色出行</div>
<LoginForm @isLoading="state => (loading = state)" />
</div>
</div>
</div>
</a-spin>
</template>
<script setup lang="ts">
import LoginBanner from "@/views/login/components/login-banner.vue";
import LoginForm from "@/views/login/components/login-form.vue";
import { useDevicesSize } from "@/hooks/useDevicesSize";
const { isPc } = useDevicesSize();
const loading = ref(false);
</script>
<style lang="scss" scoped>
.container {
position: relative;
height: 100vh;
overflow: hidden;
.login {
position: absolute;
top: 50%;
left: 50%;
display: flex;
align-items: center;
max-width: 1000px;
height: 500px;
box-shadow: 0 0 8px 1px $color-fill-2;
transform: translate(-50%, -50%);
.login_box {
position: relative;
box-sizing: border-box;
width: 350px;
height: 100%;
padding: 40px 30px 30px;
.login_title {
margin-bottom: $margin-text;
font-size: $font-size-title-2;
color: $color-text-1;
}
.login_title_desc {
font-size: $font-size-body-1;
color: $color-text-3;
}
.author {
position: absolute;
bottom: 30px;
font-size: $font-size-body-1;
color: $color-text-4;
}
}
}
}
</style>