登录界面优化

This commit is contained in:
2026-06-18 15:10:50 +08:00
parent d7461853cf
commit 8041f5734b
16 changed files with 1844 additions and 151 deletions
+144 -32
View File
@@ -2,45 +2,108 @@
// 登录
.login {
display: flex;
flex-direction: column;
width: 100vw;
height: 100vh;
background-color: $u-bg-white;
background: #f0f2f5;
overflow: hidden;
.sys-name {
font-size: 48rpx;
font-weight: 700;
color: #333333;
position: absolute;
top: 300rpx;
width: 100%;
text-align: center;
// 顶部区域:背景图 + Logo + 标题
.login-header {
flex-shrink: 0;
&__bg {
display: block;
width: 100%;
height: auto;
}
}
// 表单卡片
.login-card {
flex: 1;
position: relative;
z-index: 1;
margin: -40rpx 32rpx 0;
background: #ffffff;
border-radius: 24rpx 24rpx 0 0;
padding: 48rpx 40rpx 0;
box-shadow: 0 -4rpx 24rpx rgba(0, 0, 0, 0.08);
&__brand {
display: flex;
align-items: center;
justify-content: center;
gap: 24rpx;
margin-bottom: 40rpx;
}
.login-logo {
display: block;
width: 100rpx;
height: 100rpx;
flex-shrink: 0;
}
.sys-name {
font-size: 36rpx;
font-weight: 700;
color: #1a1a2e;
letter-spacing: 2rpx;
}
}
.login-form {
position: absolute;
bottom: 240rpx;
right: 60rpx;
left: 60rpx;
:deep(.u-form-item) {
margin-bottom: 24rpx;
}
:deep(.u-form-item__body) {
padding: 18rpx 28rpx;
background: #f5f6f8;
border-radius: 14rpx;
border: 1rpx solid transparent;
transition: border-color 0.25s;
}
:deep(.u-input__input) {
font-size: 30rpx;
color: #1a1a2e;
&::placeholder {
color: #b0bec5;
}
}
:deep(.u-button--primary) {
height: 92rpx;
background: linear-gradient(135deg, #2979ff, #5a9aff);
border-radius: 14rpx;
font-size: 32rpx;
font-weight: 600;
letter-spacing: 2rpx;
box-shadow: 0 6rpx 24rpx rgba(41, 121, 255, 0.35);
border: none;
&::after {
border: none;
}
&:active {
opacity: 0.9;
transform: scale(0.98);
}
}
}
}
// 首页
.home {
&-navbar{
padding-top: 40px;
height: 85px;
background-color: var(--u-type-primary);
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
display: flex;
flex-direction: column;
height: 100vh;
&-title {
font-size: 32rpx;
color: #ffffff;
position: relative;
}
}
.u-border-bottom:after {
border: none;
}
@@ -61,11 +124,12 @@
height: 85px;
background-color: $u-type-primary;
padding: 40px 20rpx 0;
flex-shrink: 0;
&-title {
flex: 1;
text-align: center;
font-size: 28rpx;
font-size: 14px;
color: #ffffff;
}
@@ -84,6 +148,7 @@
justify-content: flex-start;
align-items: center;
padding: 0 20rpx;
flex-shrink: 0;
}
&-icon {
@@ -102,6 +167,13 @@
margin-left: 60rpx;
}
&-scroll {
flex: 1;
overflow-y: auto;
height: 0;
padding-bottom: 10px;
}
&-hj {
margin: 20rpx;
background: #fff;
@@ -299,14 +371,15 @@
}
.edit-grid {
width: 100%;
overflow-y: scroll;
flex: 1;
min-height: 0;
overflow: hidden;
display: grid;
grid-template-columns: repeat(4, calc(25% - 20rpx));
gap: 20rpx;
padding: 24rpx 0;
min-height: 0;
padding: 24rpx 0 160rpx;
box-sizing: border-box;
align-content: flex-start;
}
.edit-item {
@@ -327,6 +400,10 @@
border: 2rpx solid $u-type-primary;
}
&.hidden {
display: none;
}
.icon-box {
width: 96rpx;
height: 96rpx;
@@ -361,6 +438,41 @@
}
}
// 搜索框
.edit-search {
display: flex;
align-items: center;
gap: 12rpx;
margin: 16rpx 0 8rpx;
padding: 18rpx 24rpx;
background: #f5f6f8;
border-radius: 12rpx;
&__input {
flex: 1;
font-size: 26rpx;
color: #333;
background: transparent;
border: none;
outline: none;
&::placeholder {
color: #b0bec5;
}
}
}
// 空状态
.edit-empty {
grid-column: 1 / -1;
display: flex;
align-items: center;
justify-content: center;
padding: 60rpx 0;
font-size: 26rpx;
color: #999;
}
.edit-btns {
display: flex;
gap: 24rpx;
+11 -3
View File
@@ -1,8 +1,8 @@
@font-face {
font-family: "nbd-icon"; /* Project id 5193086 */
src: url('//at.alicdn.com/t/c/font_5193086_dyc00qt3bz.woff2?t=1781056075220') format('woff2'),
url('//at.alicdn.com/t/c/font_5193086_dyc00qt3bz.woff?t=1781056075220') format('woff'),
url('//at.alicdn.com/t/c/font_5193086_dyc00qt3bz.ttf?t=1781056075220') format('truetype');
src: url('//at.alicdn.com/t/c/font_5193086_0r8nbjxfoygi.woff2?t=1781694668587') format('woff2'),
url('//at.alicdn.com/t/c/font_5193086_0r8nbjxfoygi.woff?t=1781694668587') format('woff'),
url('//at.alicdn.com/t/c/font_5193086_0r8nbjxfoygi.ttf?t=1781694668587') format('truetype');
}
.nbd-icon {
@@ -13,6 +13,14 @@
-moz-osx-font-smoothing: grayscale;
}
.nbd-icon-zudui:before {
content: "\e619";
}
.nbd-icon-xialiaochoujianjilu:before {
content: "\e609";
}
.nbd-icon-a-facheguanli:before {
content: "\e683";
}