This commit is contained in:
@@ -1,10 +1,23 @@
|
||||
<template>
|
||||
<view class="login-page">
|
||||
<view class="content">
|
||||
<view class="header">
|
||||
<view class="main-title">登录</view>
|
||||
<view class="sub-title">请输入标识进行登录</view>
|
||||
</view>
|
||||
<view class="overlay"></view>
|
||||
<view class="animated-bg">
|
||||
<view class="circle circle-1"></view>
|
||||
<view class="circle circle-2"></view>
|
||||
<view class="circle circle-3"></view>
|
||||
<view class="circle circle-4"></view>
|
||||
<view class="circle circle-5"></view>
|
||||
<view class="shape shape-triangle"></view>
|
||||
<view class="shape shape-square"></view>
|
||||
<view class="shape shape-pentagon"></view>
|
||||
<view class="shape shape-hexagon"></view>
|
||||
</view>
|
||||
<view class="content-wrapper">
|
||||
<view class="content">
|
||||
<view class="header">
|
||||
<view class="main-title">登录</view>
|
||||
<view class="sub-title">请输入标识进行登录</view>
|
||||
</view>
|
||||
|
||||
<view class="form-section">
|
||||
<view class="input-wrap" :class="{ focus: inputFocus }">
|
||||
@@ -45,6 +58,7 @@
|
||||
<text class="link">《隐私政策》</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -184,15 +198,232 @@
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.login-page {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background: #FFFFFF;
|
||||
background: linear-gradient(135deg, #005cbf 0%, #007aff 50%, #4da6ff 100%);
|
||||
min-height: 100vh;
|
||||
padding: 60rpx 40rpx;
|
||||
}
|
||||
|
||||
.content {
|
||||
width: 100%;
|
||||
.overlay {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
|
||||
radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.animated-bg {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
overflow: hidden;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.circle {
|
||||
position: absolute;
|
||||
border-radius: 50%;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
backdrop-filter: blur(2px);
|
||||
}
|
||||
|
||||
.circle-1 {
|
||||
width: 300rpx;
|
||||
height: 300rpx;
|
||||
top: 10%;
|
||||
left: -100rpx;
|
||||
animation: float1 20s infinite ease-in-out;
|
||||
}
|
||||
|
||||
.circle-2 {
|
||||
width: 200rpx;
|
||||
height: 200rpx;
|
||||
top: 60%;
|
||||
right: -50rpx;
|
||||
animation: float2 15s infinite ease-in-out;
|
||||
}
|
||||
|
||||
.circle-3 {
|
||||
width: 150rpx;
|
||||
height: 150rpx;
|
||||
top: 30%;
|
||||
right: 20%;
|
||||
animation: float3 18s infinite ease-in-out;
|
||||
}
|
||||
|
||||
.circle-4 {
|
||||
width: 250rpx;
|
||||
height: 250rpx;
|
||||
bottom: 10%;
|
||||
left: 10%;
|
||||
animation: float4 22s infinite ease-in-out;
|
||||
}
|
||||
|
||||
.circle-5 {
|
||||
width: 180rpx;
|
||||
height: 180rpx;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
animation: float5 16s infinite ease-in-out;
|
||||
}
|
||||
|
||||
@keyframes float1 {
|
||||
0%, 100% {
|
||||
transform: translate(0, 0) scale(1);
|
||||
opacity: 0.3;
|
||||
}
|
||||
50% {
|
||||
transform: translate(100rpx, -80rpx) scale(1.2);
|
||||
opacity: 0.5;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes float2 {
|
||||
0%, 100% {
|
||||
transform: translate(0, 0) scale(1);
|
||||
opacity: 0.2;
|
||||
}
|
||||
50% {
|
||||
transform: translate(-80rpx, 100rpx) scale(1.3);
|
||||
opacity: 0.4;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes float3 {
|
||||
0%, 100% {
|
||||
transform: translate(0, 0) scale(1);
|
||||
opacity: 0.25;
|
||||
}
|
||||
50% {
|
||||
transform: translate(-60rpx, -60rpx) scale(1.1);
|
||||
opacity: 0.45;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes float4 {
|
||||
0%, 100% {
|
||||
transform: translate(0, 0) scale(1);
|
||||
opacity: 0.3;
|
||||
}
|
||||
50% {
|
||||
transform: translate(120rpx, -100rpx) scale(1.15);
|
||||
opacity: 0.5;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes float5 {
|
||||
0%, 100% {
|
||||
transform: translate(-50%, -50%) scale(1);
|
||||
opacity: 0.2;
|
||||
}
|
||||
50% {
|
||||
transform: translate(calc(-50% + 80rpx), calc(-50% + 80rpx)) scale(1.25);
|
||||
opacity: 0.4;
|
||||
}
|
||||
}
|
||||
|
||||
.shape {
|
||||
position: absolute;
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
backdrop-filter: blur(1px);
|
||||
}
|
||||
|
||||
.shape-triangle {
|
||||
width: 0;
|
||||
height: 0;
|
||||
background: transparent;
|
||||
border-left: 80rpx solid transparent;
|
||||
border-right: 80rpx solid transparent;
|
||||
border-bottom: 140rpx solid rgba(255, 255, 255, 0.1);
|
||||
top: 15%;
|
||||
right: 15%;
|
||||
animation: rotate1 25s infinite linear;
|
||||
}
|
||||
|
||||
.shape-square {
|
||||
width: 120rpx;
|
||||
height: 120rpx;
|
||||
top: 70%;
|
||||
left: 5%;
|
||||
transform: rotate(45deg);
|
||||
animation: float-rotate 20s infinite ease-in-out;
|
||||
}
|
||||
|
||||
.shape-pentagon {
|
||||
width: 100rpx;
|
||||
height: 100rpx;
|
||||
clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
|
||||
top: 40%;
|
||||
left: 80%;
|
||||
animation: pulse 18s infinite ease-in-out;
|
||||
}
|
||||
|
||||
.shape-hexagon {
|
||||
width: 90rpx;
|
||||
height: 90rpx;
|
||||
clip-path: polygon(30% 0%, 70% 0%, 100% 50%, 70% 100%, 30% 100%, 0% 50%);
|
||||
bottom: 25%;
|
||||
right: 25%;
|
||||
animation: float-spin 22s infinite ease-in-out;
|
||||
}
|
||||
|
||||
@keyframes rotate1 {
|
||||
0% {
|
||||
transform: rotate(0deg);
|
||||
opacity: 0.15;
|
||||
}
|
||||
50% {
|
||||
opacity: 0.25;
|
||||
}
|
||||
100% {
|
||||
transform: rotate(360deg);
|
||||
opacity: 0.15;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes float-rotate {
|
||||
0%, 100% {
|
||||
transform: translate(0, 0) rotate(45deg);
|
||||
opacity: 0.2;
|
||||
}
|
||||
50% {
|
||||
transform: translate(80rpx, -60rpx) rotate(225deg);
|
||||
opacity: 0.35;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes pulse {
|
||||
0%, 100% {
|
||||
transform: scale(1);
|
||||
opacity: 0.2;
|
||||
}
|
||||
50% {
|
||||
transform: scale(1.3);
|
||||
opacity: 0.4;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes float-spin {
|
||||
0%, 100% {
|
||||
transform: translate(0, 0) rotate(0deg);
|
||||
opacity: 0.25;
|
||||
}
|
||||
50% {
|
||||
transform: translate(-70rpx, 90rpx) rotate(180deg);
|
||||
opacity: 0.4;
|
||||
}
|
||||
}
|
||||
|
||||
.content-wrapper {
|
||||
position: relative;
|
||||
padding: 60rpx 40rpx;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.header {
|
||||
@@ -202,17 +433,19 @@
|
||||
.main-title {
|
||||
font-size: 56rpx;
|
||||
font-weight: 700;
|
||||
color: #1A1A1A;
|
||||
color: #FFFFFF;
|
||||
line-height: 1.3;
|
||||
margin-bottom: 24rpx;
|
||||
letter-spacing: 0.5rpx;
|
||||
text-shadow: 0 2rpx 8rpx rgba(64, 40, 128, 0.3);
|
||||
}
|
||||
|
||||
.sub-title {
|
||||
font-size: 28rpx;
|
||||
color: #9CA3AF;
|
||||
color: rgba(255, 255, 255, 0.9);
|
||||
line-height: 1.5;
|
||||
letter-spacing: 0.5rpx;
|
||||
text-shadow: 0 1rpx 4rpx rgba(64, 40, 128, 0.2);
|
||||
}
|
||||
|
||||
.form-section {
|
||||
@@ -222,14 +455,16 @@
|
||||
.input-wrap {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background: #f7f7f7;
|
||||
background: rgba(255, 255, 255, 0.95);
|
||||
border-radius: 20rpx;
|
||||
padding: 32rpx 40rpx;
|
||||
transition: all 0.3s;
|
||||
box-shadow: 0 4rpx 16rpx rgba(64, 40, 128, 0.1);
|
||||
}
|
||||
|
||||
.input-wrap.focus {
|
||||
background: #f7f7f7;
|
||||
background: rgba(255, 255, 255, 1);
|
||||
box-shadow: 0 4rpx 20rpx rgba(64, 40, 128, 0.2);
|
||||
}
|
||||
|
||||
.input {
|
||||
@@ -257,21 +492,23 @@
|
||||
.btn-login {
|
||||
width: 100%;
|
||||
height: 108rpx;
|
||||
background: $uni-color-primary;
|
||||
background: #FFFFFF;
|
||||
border: none;
|
||||
border-radius: 20rpx;
|
||||
font-size: 36rpx;
|
||||
font-weight: 600;
|
||||
color: #FFFFFF;
|
||||
color: $uni-color-primary;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: all 0.3s;
|
||||
box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
|
||||
.btn-login.disabled {
|
||||
background: #E5E7EB;
|
||||
color: #9CA3AF;
|
||||
background: rgba(255, 255, 255, 0.4);
|
||||
color: rgba(255, 255, 255, 0.7);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.btn-login:active:not(.disabled) {
|
||||
@@ -324,12 +561,14 @@
|
||||
}
|
||||
|
||||
.text {
|
||||
color: #9CA3AF;
|
||||
color: rgba(255, 255, 255, 0.8);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.link {
|
||||
color: #2563EB;
|
||||
color: #FFFFFF;
|
||||
font-weight: 500;
|
||||
white-space: nowrap;
|
||||
text-decoration: underline;
|
||||
}
|
||||
</style>
|
||||
|
||||
BIN
static/login.jpg
Normal file
BIN
static/login.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 502 KiB |
Reference in New Issue
Block a user