fix(ui): 修复登录和并发请求并统一页面展示

调整登录流程和请求处理,统一各中心的表格交互、主题样式和页面展示。
This commit is contained in:
zhanjunhao
2026-11-19 18:58:46 +08:00
parent 9b6eb1c7c4
commit 7908ed53a3
128 changed files with 4672 additions and 5391 deletions
@@ -0,0 +1,352 @@
/* Copyright (C) 2025 QuantumNous */
.promotion-modal.ant-modal {
--pm-surface: var(--surface-card);
--pm-muted: var(--surface-bg-base);
--pm-text: var(--text-primary);
--pm-secondary: var(--text-secondary);
--pm-border: var(--border-subtle);
--pm-accent: var(--brand-primary);
--pm-soft: var(--brand-primary-soft);
--pm-qr-surface: #fff;
max-width: calc(100vw - 32px);
padding-block: 24px;
}
.promotion-modal .ant-modal-container {
padding: 28px 32px;
border-radius: 12px;
}
.promotion-modal .ant-modal-header {
margin-bottom: 12px;
}
.promotion-modal .ant-modal-title {
font-size: 20px;
line-height: 28px;
}
.promotion-modal .ant-modal-close {
top: 24px;
right: 24px;
}
.promotion-modal .ant-modal-body {
max-height: calc(100dvh - 160px);
overflow-y: auto;
overscroll-behavior: contain;
}
.promotion-tabs > .ant-tabs-nav {
margin-bottom: 24px;
}
.pm-tab-label {
display: inline-flex;
align-items: center;
gap: 8px;
}
.pm-link-layout {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
gap: 32px;
align-items: stretch;
}
.pm-invitation-card {
display: flex;
flex-direction: column;
align-items: center;
padding: 28px 20px;
border: 1px solid var(--pm-border);
border-radius: 12px;
background: var(--pm-muted);
text-align: center;
min-width: 0;
}
.pm-eyebrow {
margin-bottom: 12px;
color: var(--pm-accent);
font-size: 12px;
letter-spacing: 0.08em;
}
.pm-invitation-card h4.ant-typography {
margin: 0 0 8px;
font-size: 20px;
overflow-wrap: anywhere;
}
.pm-invitation-card .ant-typography {
max-width: 100%;
}
.pm-qrcode {
padding: 12px;
background: var(--pm-qr-surface);
border-radius: 12px;
margin: 8px 0 16px;
}
.pm-qrcode canvas,
.pm-poster-qr canvas {
display: block;
max-width: 100%;
height: auto;
}
.pm-benefits {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 8px 16px;
margin-top: 24px;
color: var(--pm-secondary);
font-size: 12px;
}
.pm-benefits span {
display: inline-flex;
align-items: center;
gap: 6px;
}
.pm-share-details {
display: flex;
flex-direction: column;
justify-content: center;
gap: 28px;
min-width: 0;
padding-block: 12px;
}
.pm-field {
display: flex;
flex-direction: column;
align-items: stretch;
gap: 12px;
min-width: 0;
}
.pm-field label {
color: var(--pm-text);
font-size: 14px;
font-weight: 600;
}
.pm-field > .ant-btn {
align-self: flex-start;
}
.pm-code-row {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 16px;
}
.promotion-modal .pm-code {
padding: 10px 16px;
color: var(--pm-accent);
background: var(--pm-soft);
border-radius: 8px;
font:
600 20px/28px Consolas,
monospace;
letter-spacing: 0.06em;
overflow-wrap: anywhere;
min-width: 0;
}
.promotion-modal .pm-share-hint {
margin: 0;
font-size: 13px;
line-height: 1.8;
}
.pm-rewards {
display: flex;
align-items: center;
gap: 14px;
width: 100%;
margin-top: 24px;
padding: 16px;
background: var(--pm-surface);
color: var(--pm-text);
border: 1px solid var(--pm-border);
border-radius: 10px;
font: inherit;
text-align: left;
cursor: pointer;
}
.pm-rewards:hover {
border-color: var(--pm-accent);
background: var(--pm-soft);
}
.pm-rewards-icon {
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
width: 40px;
height: 40px;
border-radius: 8px;
color: var(--pm-accent);
background: var(--pm-soft);
}
.pm-rewards-copy {
display: grid;
gap: 4px;
flex: 1;
min-width: 0;
}
.pm-rewards-copy strong {
font-size: 14px;
font-weight: 600;
}
.pm-rewards-copy > span {
color: var(--pm-secondary);
font-size: 12px;
}
.pm-rewards > svg {
flex-shrink: 0;
color: var(--pm-secondary);
}
.pm-poster-layout {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
gap: 32px;
align-items: center;
}
.pm-preview-stage {
display: flex;
justify-content: center;
padding: 20px;
border: 1px solid var(--pm-border);
border-radius: 12px;
background: var(--pm-muted);
min-width: 0;
}
.pm-poster {
display: flex;
flex-direction: column;
align-items: center;
width: 240px;
min-width: 0;
aspect-ratio: 375 / 667;
padding: 28px 16px 20px;
background: var(--pm-poster-background);
color: var(--pm-poster-ink);
border-radius: 8px;
text-align: center;
}
.pm-poster h2 {
margin: 0 0 8px;
font-size: 18px;
line-height: 1.5;
color: inherit;
}
.pm-poster p {
margin: 0;
font-size: 12px;
line-height: 1.6;
color: inherit;
}
.pm-poster h3 {
margin: 20px 0;
font-size: 16px;
line-height: 1.5;
color: inherit;
}
.pm-poster-qr {
padding: 8px;
background: var(--pm-qr-surface);
border-radius: 8px;
margin-bottom: 12px;
}
.pm-poster .pm-poster-code {
font-weight: 600;
margin-top: 8px;
overflow-wrap: anywhere;
}
.pm-poster .pm-poster-footer {
margin-top: auto;
padding-top: 20px;
font-size: 10px;
}
.pm-poster-options {
display: grid;
gap: 24px;
min-width: 0;
}
.pm-template-list {
display: grid;
gap: 8px;
}
.promotion-modal .pm-template-list .ant-radio-wrapper {
display: flex;
align-items: center;
margin: 0;
padding: 10px 12px;
border: 1px solid var(--pm-border);
border-radius: 8px;
}
.promotion-modal .pm-template-list .ant-radio-wrapper-checked {
border-color: var(--pm-accent);
background: var(--pm-soft);
}
.pm-template-label {
display: inline-flex;
align-items: center;
gap: 10px;
}
.pm-template-swatch {
display: block;
width: 24px;
height: 24px;
border-radius: 6px;
background: var(--pm-template-background);
}
.pm-poster-actions {
display: grid;
gap: 12px;
}
.pm-loading {
padding-block: 32px;
}
.promotion-modal :is(button, input):focus-visible {
outline: 2px solid var(--pm-accent);
outline-offset: 3px;
}
@media (max-width: 600px) {
.promotion-modal .ant-modal-container {
padding: 20px;
}
.promotion-modal .ant-modal-title {
font-size: 18px;
}
.promotion-modal .ant-modal-close {
top: 18px;
right: 16px;
}
.promotion-modal .ant-modal-body {
max-height: calc(100dvh - 136px);
}
.pm-link-layout,
.pm-poster-layout {
grid-template-columns: minmax(0, 1fr);
gap: 24px;
}
.pm-invitation-card {
padding: 20px 16px;
}
.pm-benefits {
margin-top: 16px;
}
.pm-share-details {
gap: 24px;
padding: 0;
}
.pm-field > .ant-btn {
width: 100%;
}
.pm-preview-stage {
padding: 16px;
}
.pm-template-list {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.promotion-modal .pm-template-list .ant-radio-wrapper {
padding: 8px;
}
.pm-template-label {
gap: 6px;
font-size: 12px;
}
.pm-template-swatch {
width: 18px;
height: 18px;
}
.pm-rewards {
padding: 12px;
}
}