fix: 修改布局UI
All checks were successful
构建并部署前端到生产环境 / build-and-deploy (push) Successful in 2m21s

This commit is contained in:
sexygoat
2026-04-16 09:54:55 +08:00
parent 727c4126dd
commit c6246c023d
10 changed files with 151 additions and 319 deletions

View File

@@ -95,7 +95,8 @@
page { page {
color: var(--text-primary); color: var(--text-primary);
background-color: var(--bg-secondary); background: linear-gradient(180deg, #F0F4FF 0%, #E8F0FE 50%, #F2F2F7 100%);
min-height: 100vh;
} }
.container { .container {
@@ -105,6 +106,8 @@
padding: 30rpx 20rpx; padding: 30rpx 20rpx;
max-width: 750rpx; max-width: 750rpx;
margin: 0 auto; margin: 0 auto;
width: 100%;
box-sizing: border-box;
} }
.card { .card {

View File

@@ -17,7 +17,8 @@
</view> </view>
<view class="info-row flex-row-sb"> <view class="info-row flex-row-sb">
<view class="info-label"> <view class="info-label">
<view class="subtitle">到期时间{{ deviceInfo.expireDate }}</view> <view class="subtitle" v-if="isDevice">IMEI{{ deviceInfo.imei || '-' }}</view>
<view class="subtitle" v-else>手机号{{ deviceInfo.bound_phone || '-' }}</view>
</view> </view>
<view class="info-values flex-row-g20"> <view class="info-values flex-row-g20">
<view class="tag-apple tag-primary">{{ statusText }}</view> <view class="tag-apple tag-primary">{{ statusText }}</view>
@@ -47,6 +48,7 @@
const props = defineProps({ const props = defineProps({
deviceInfo: { type: Object, default: () => ({}) }, deviceInfo: { type: Object, default: () => ({}) },
isRealName: { type: Boolean, default: false }, isRealName: { type: Boolean, default: false },
isDevice: { type: Boolean, default: true },
opratorList: { type: Array, default: () => [] } opratorList: { type: Array, default: () => [] }
}); });

View File

@@ -8,8 +8,7 @@
<view class="flex-row-g20"> <view class="flex-row-g20">
<view class="title">{{ currentCardNo || '-' }}</view> <view class="title">{{ currentCardNo || '-' }}</view>
</view> </view>
<view class="caption" v-if="isDevice">IMEI{{ deviceInfo.imei || '-' }}</view> <view class="caption">到期时间{{ deviceInfo.expireDate || '-' }}</view>
<view class="caption" v-else>手机号{{ deviceInfo.bound_phone || '-' }}</view>
</view> </view>
<view v-if="isDevice" class="tag-apple" :class="onlineStatus === '在线' ? 'tag-success' : 'tag-warning'"> <view v-if="isDevice" class="tag-apple" :class="onlineStatus === '在线' ? 'tag-success' : 'tag-warning'">
{{ onlineStatus }} {{ onlineStatus }}

View File

@@ -84,7 +84,7 @@
], ],
"globalStyle": { "globalStyle": {
"navigationBarTextStyle": "black", "navigationBarTextStyle": "black",
"navigationBarTitleText": "信息查询", "navigationBarTitleText": "卡管客户端",
"navigationBarBackgroundColor": "#F8F8F8", "navigationBarBackgroundColor": "#F8F8F8",
"backgroundColor": "#F8F8F8" "backgroundColor": "#F8F8F8"
}, },

View File

@@ -137,6 +137,10 @@
.page { .page {
min-height: 100vh; min-height: 100vh;
background: var(--bg-secondary); background: var(--bg-secondary);
max-width: 750rpx;
margin: 0 auto;
width: 100%;
box-sizing: border-box;
} }
.custom-navbar { .custom-navbar {

View File

@@ -4,7 +4,7 @@
:isDevice="userInfo.isDevice" :networkStatus="deviceInfo.network_status" /> :isDevice="userInfo.isDevice" :networkStatus="deviceInfo.network_status" />
<DeviceStatusCard v-if="userInfo.isDevice" :deviceInfo="deviceInfo" :isRealName="isRealName" <DeviceStatusCard v-if="userInfo.isDevice" :deviceInfo="deviceInfo" :isRealName="isRealName"
@authentication="enterDetail('authentication')" /> :isDevice="userInfo.isDevice" @authentication="enterDetail('authentication')" />
<!-- <VoiceCard v-if="!userInfo.isDevice" :voiceStats="voiceStats" :dateRangeText="dateRangeText" <!-- <VoiceCard v-if="!userInfo.isDevice" :voiceStats="voiceStats" :dateRangeText="dateRangeText"
@openDatePicker="openDateRangePicker" /> --> @openDatePicker="openDateRangePicker" /> -->

View File

@@ -1,63 +1,59 @@
<template> <template>
<view class="login-page"> <view class="login-page">
<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-wrapper">
<view class="content"> <view class="content">
<view class="header"> <view class="header">
<view class="main-title">登录</view> <view class="main-title">欢迎登录</view>
<view class="sub-title">请输入标识进行登录</view> <view class="sub-title">请输入标识进行登录</view>
</view> </view>
<view class="form-section"> <view class="form-section">
<view class="input-wrap" :class="{ focus: inputFocus }"> <view class="input-wrap" :class="{ focus: inputFocus }">
<input <input
v-model="identifier" v-model="identifier"
class="input" class="input"
placeholder="请输入标识" placeholder="请输入标识"
placeholder-class="placeholder" placeholder-class="placeholder"
@focus="inputFocus = true" @focus="inputFocus = true"
@blur="inputFocus = false" @blur="handleBlur"
@input="showError = false" @input="showError = false"
/> />
</view> <image
<text v-if="showError" class="error">请输入标识</text> v-if="identifier && inputFocus"
</view> class="clear-icon"
src="/static/clear.png"
<view class="btn-section"> mode="aspectFit"
<button @mousedown.prevent="clearInput"
class="btn-login" @touchstart.prevent="clearInput"
:class="{ disabled: !identifier || loading || !agreed }" ></image>
:disabled="!identifier || loading || !agreed" </view>
@tap="handleLogin" <text v-if="showError" class="error">请输入标识</text>
> </view>
<view v-if="loading" class="loading">
<view class="dot"/> <view class="btn-section">
<view class="dot"/> <button
<view class="dot"/> class="btn-login"
:class="{ disabled: !identifier || loading || !agreed }"
:disabled="!identifier || loading || !agreed"
@tap="handleLogin"
>
<view v-if="loading" class="loading">
<view class="dot"/>
<view class="dot"/>
<view class="dot"/>
</view>
<text v-else>登录</text>
</button>
</view>
<view class="agreement">
<view class="agreement-text">
<text class="text">登录即表示同意</text>
<text class="link">用户协议</text>
<text class="text"></text>
<text class="link">隐私政策</text>
</view> </view>
<text v-else>登录</text>
</button>
</view>
<view class="agreement">
<view class="agreement-text">
<text class="text">登录即表示同意</text>
<text class="link">用户协议</text>
<text class="text"></text>
<text class="link">隐私政策</text>
</view> </view>
</view>
</view> </view>
</view> </view>
</view> </view>
@@ -93,6 +89,20 @@
window.location.href = url; window.location.href = url;
}; };
const clearInput = () => {
identifier.value = '';
showError.value = false;
// 保持焦点状态
inputFocus.value = true;
};
const handleBlur = () => {
// 延迟失焦,给清除按钮点击留出时间
setTimeout(() => {
inputFocus.value = false;
}, 200);
};
const handleLogin = () => { const handleLogin = () => {
if (!identifier.value) { if (!identifier.value) {
showError.value = true; showError.value = true;
@@ -198,335 +208,143 @@
<style lang="scss" scoped> <style lang="scss" scoped>
.login-page { .login-page {
position: relative;
display: flex; display: flex;
flex-direction: column; align-items: center;
background: linear-gradient(135deg, #005cbf 0%, #007aff 50%, #4da6ff 100%); justify-content: center;
min-height: 100vh; min-height: 100vh;
} background: var(--bg-secondary);
max-width: 750rpx;
.overlay { margin: 0 auto;
position: absolute; width: 100%;
top: 0; padding: 40rpx;
left: 0; box-sizing: border-box;
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 { .content-wrapper {
position: relative; width: 100%;
max-width: 600rpx;
}
.content {
background: var(--bg-primary);
border-radius: var(--radius-large);
padding: 60rpx 40rpx; padding: 60rpx 40rpx;
z-index: 1; box-shadow: var(--shadow-medium);
} }
.header { .header {
margin-bottom: 80rpx; text-align: center;
margin-bottom: 60rpx;
} }
.main-title { .main-title {
font-size: 56rpx; font-size: 48rpx;
font-weight: 700; font-weight: 700;
color: #FFFFFF; color: var(--text-primary);
line-height: 1.3; line-height: 1.3;
margin-bottom: 24rpx; margin-bottom: 16rpx;
letter-spacing: 0.5rpx; letter-spacing: -0.5rpx;
text-shadow: 0 2rpx 8rpx rgba(64, 40, 128, 0.3);
} }
.sub-title { .sub-title {
font-size: 28rpx; font-size: 26rpx;
color: rgba(255, 255, 255, 0.9); color: var(--text-tertiary);
line-height: 1.5; line-height: 1.5;
letter-spacing: 0.5rpx;
text-shadow: 0 1rpx 4rpx rgba(64, 40, 128, 0.2);
} }
.form-section { .form-section {
margin-bottom: 60rpx; margin-bottom: 48rpx;
} }
.input-wrap { .input-wrap {
display: flex; display: flex;
align-items: center; align-items: center;
background: rgba(255, 255, 255, 0.95); gap: 16rpx;
border-radius: 20rpx; background: var(--bg-secondary);
padding: 32rpx 40rpx; border: 2rpx solid var(--border-color);
transition: all 0.3s; border-radius: var(--radius-medium);
box-shadow: 0 4rpx 16rpx rgba(64, 40, 128, 0.1); padding: 28rpx 32rpx;
transition: all 0.3s ease;
} }
.input-wrap.focus { .input-wrap.focus {
background: rgba(255, 255, 255, 1); background: var(--bg-primary);
box-shadow: 0 4rpx 20rpx rgba(64, 40, 128, 0.2); border-color: var(--primary);
box-shadow: 0 0 0 4rpx rgba(10, 132, 255, 0.1);
} }
.input { .input {
flex: 1; flex: 1;
font-size: 32rpx; font-size: 30rpx;
color: #1A1A1A; color: var(--text-primary);
background: transparent; background: transparent;
} }
.placeholder { .placeholder {
color: #C4C4C4; color: var(--text-quaternary);
}
.clear-icon {
width: 32rpx;
height: 32rpx;
opacity: 0.4;
transition: opacity 0.3s ease;
cursor: pointer;
flex-shrink: 0;
}
.clear-icon:active {
opacity: 0.6;
} }
.error { .error {
font-size: 24rpx; font-size: 24rpx;
color: #EF4444; color: var(--danger);
margin-top: 16rpx; margin-top: 16rpx;
padding-left: 8rpx; padding-left: 8rpx;
} }
.btn-section { .btn-section {
margin-bottom: 60rpx; margin-bottom: 48rpx;
} }
.btn-login { .btn-login {
width: 100%; width: 100%;
height: 108rpx; height: 96rpx;
background: rgba(255, 255, 255, 0.25); background: var(--primary);
backdrop-filter: blur(10px); border: none;
border: 2rpx solid rgba(255, 255, 255, 0.4); border-radius: var(--radius-medium);
border-radius: 20rpx; font-size: 32rpx;
font-size: 36rpx;
font-weight: 600; font-weight: 600;
color: #FFFFFF; color: var(--text-inverse);
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
transition: all 0.3s; transition: all 0.3s ease;
box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.15); box-shadow: 0 4rpx 12rpx rgba(10, 132, 255, 0.2);
} }
.btn-login.disabled { .btn-login.disabled {
background: rgba(255, 255, 255, 0.3); background: var(--gray-300);
color: rgba(255, 255, 255, 0.7); color: var(--text-quaternary);
border: 2rpx solid rgba(255, 255, 255, 0.2);
box-shadow: none; box-shadow: none;
} }
.btn-login:active:not(.disabled) { .btn-login:active:not(.disabled) {
opacity: 0.8; transform: translateY(2rpx);
box-shadow: 0 2rpx 8rpx rgba(10, 132, 255, 0.2);
} }
.loading { .loading {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 8rpx; gap: 12rpx;
} }
.dot { .dot {
width: 10rpx; width: 12rpx;
height: 10rpx; height: 12rpx;
background: #FFFFFF; background: var(--text-inverse);
border-radius: 50%; border-radius: 50%;
animation: load 1.4s infinite ease-in-out both; animation: load 1.4s infinite ease-in-out both;
} }
@@ -563,14 +381,13 @@
} }
.text { .text {
color: rgba(255, 255, 255, 0.8); color: var(--text-tertiary);
white-space: nowrap; white-space: nowrap;
} }
.link { .link {
color: #FFFFFF; color: var(--primary);
font-weight: 500; font-weight: 500;
white-space: nowrap; white-space: nowrap;
text-decoration: underline;
} }
</style> </style>

View File

@@ -720,6 +720,9 @@
flex-direction: column; flex-direction: column;
padding: 20rpx; padding: 20rpx;
box-sizing: border-box; box-sizing: border-box;
max-width: 750rpx;
margin: 0 auto;
width: 100%;
} }
.wallet-card { .wallet-card {

View File

@@ -292,6 +292,10 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
background: #f5f6f7; background: #f5f6f7;
max-width: 750rpx;
margin: 0 auto;
width: 100%;
box-sizing: border-box;
} }
.filter-tabs { .filter-tabs {

BIN
static/clear.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB