搭建页面骨架,写账号管理和设备管理
This commit is contained in:
@@ -1,25 +1,6 @@
|
||||
<template>
|
||||
<div class="login">
|
||||
<div class="login-shell">
|
||||
<section class="login-brand">
|
||||
<span class="brand-pill">Plus UI Workspace</span>
|
||||
<h1 class="brand-title">企业级后台管理系统</h1>
|
||||
<p class="brand-desc">
|
||||
真正面向企业级的应用框架 组件化 模块化 轻耦合 高扩展 针对企业痛点 业界一流技术栈
|
||||
<br />
|
||||
重写 RuoYi-Vue 所有功能 集成 Sa-Token、Mybatis-Plus、WarmFlow、SpringDoc、Hutool、OSS 定期同步。
|
||||
</p>
|
||||
<div class="brand-highlights">
|
||||
<span v-for="item in highlights" :key="item" class="highlight-chip">{{ item }}</span>
|
||||
</div>
|
||||
<div class="brand-metrics">
|
||||
<article v-for="item in quickStats" :key="item.label" class="metric-card">
|
||||
<strong>{{ item.value }}</strong>
|
||||
<span>{{ item.label }}</span>
|
||||
</article>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<el-form ref="loginRef" :model="loginForm" :rules="loginRules" class="login-form">
|
||||
<div class="title-box">
|
||||
<div>
|
||||
@@ -77,7 +58,7 @@
|
||||
</router-link>
|
||||
</div>
|
||||
|
||||
<div class="social-panel">
|
||||
<!-- <div class="social-panel">
|
||||
<span class="social-label">第三方登录</span>
|
||||
<div class="social-actions">
|
||||
<el-button circle :title="$t('login.social.wechat')" @click="doSocialLogin('wechat')">
|
||||
@@ -96,7 +77,7 @@
|
||||
<svg-icon icon-class="github" />
|
||||
</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
<el-form-item class="submit-row">
|
||||
<el-button :loading="loading" size="large" type="primary" class="submit-button" @click.prevent="handleLogin">
|
||||
@@ -124,19 +105,13 @@ import { useUserStore } from '@/store/modules/user';
|
||||
|
||||
const title = import.meta.env.VITE_APP_TITLE;
|
||||
const currentYear = new Date().getFullYear();
|
||||
const quickStats = [
|
||||
{ label: '细粒度权限管理', value: '动态权限控制' },
|
||||
{ label: '主流技术栈', value: '全栈技术集成' },
|
||||
{ label: 'UI样式', value: '卡片式' }
|
||||
];
|
||||
const highlights = ['技术栈全面升级', '动态菜单', '多主题布局', '深浅色主题'];
|
||||
const userStore = useUserStore();
|
||||
const router = useRouter();
|
||||
const { t } = useI18n();
|
||||
|
||||
const loginForm = ref<LoginData>({
|
||||
username: 'admin',
|
||||
password: 'admin123',
|
||||
username: '',
|
||||
password: '',
|
||||
rememberMe: false,
|
||||
code: '',
|
||||
uuid: ''
|
||||
@@ -226,8 +201,9 @@ const getLoginData = () => {
|
||||
const rememberMe = localStorage.getItem('rememberMe');
|
||||
localStorage.removeItem('password');
|
||||
loginForm.value = {
|
||||
username: username === null ? String(loginForm.value.username) : username,
|
||||
password: username === null ? String(loginForm.value.password) : '',
|
||||
// 仅回填勾选“记住密码”时保存的用户名,密码一律不回填
|
||||
username: username === null ? '' : username,
|
||||
password: '',
|
||||
rememberMe: rememberMe === 'true'
|
||||
} as LoginData;
|
||||
};
|
||||
@@ -264,102 +240,18 @@ onMounted(() => {
|
||||
.login-shell {
|
||||
width: min(1180px, 100%);
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1.05fr) minmax(360px, 440px);
|
||||
grid-template-columns: minmax(0, 440px);
|
||||
justify-content: center;
|
||||
gap: 26px;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.login-brand,
|
||||
.login-form {
|
||||
width: 100%;
|
||||
border-radius: 28px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.14);
|
||||
box-shadow: 0 30px 80px rgba(2, 8, 23, 0.32);
|
||||
backdrop-filter: blur(18px);
|
||||
}
|
||||
|
||||
.login-brand {
|
||||
padding: 42px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
color: #eef4ff;
|
||||
background:
|
||||
linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
|
||||
linear-gradient(135deg, rgba(53, 109, 255, 0.32), rgba(15, 23, 42, 0.24));
|
||||
}
|
||||
|
||||
.brand-pill {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
width: fit-content;
|
||||
padding: 8px 14px;
|
||||
border-radius: 999px;
|
||||
background: rgba(255, 255, 255, 0.12);
|
||||
color: rgba(255, 255, 255, 0.9);
|
||||
font-size: 12px;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.brand-title {
|
||||
margin: 22px 0 14px;
|
||||
font-size: clamp(34px, 4vw, 52px);
|
||||
line-height: 1.08;
|
||||
letter-spacing: -0.03em;
|
||||
}
|
||||
|
||||
.brand-desc {
|
||||
margin: 0;
|
||||
max-width: 580px;
|
||||
color: rgba(226, 232, 240, 0.88);
|
||||
font-size: 15px;
|
||||
line-height: 1.8;
|
||||
}
|
||||
|
||||
.brand-highlights {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px;
|
||||
margin: 28px 0 34px;
|
||||
}
|
||||
|
||||
.highlight-chip {
|
||||
padding: 9px 14px;
|
||||
border-radius: 999px;
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
border: 1px solid rgba(255, 255, 255, 0.12);
|
||||
color: #f8fbff;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.brand-metrics {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.metric-card {
|
||||
padding: 18px 16px;
|
||||
border-radius: 20px;
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
|
||||
strong {
|
||||
font-size: 24px;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
span {
|
||||
color: rgba(226, 232, 240, 0.72);
|
||||
font-size: 13px;
|
||||
}
|
||||
}
|
||||
|
||||
.login-form {
|
||||
width: 100%;
|
||||
padding: 34px 30px 26px;
|
||||
z-index: 1;
|
||||
background: var(--app-surface-bg);
|
||||
@@ -536,25 +428,9 @@ onMounted(() => {
|
||||
.login {
|
||||
padding: 24px 14px 80px;
|
||||
}
|
||||
|
||||
.login-shell {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.login-brand {
|
||||
padding: 28px 24px;
|
||||
}
|
||||
|
||||
.brand-metrics {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.login-brand {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.login-form {
|
||||
padding: 26px 18px 20px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user