完善半自动履约凭证与客户重新授权流程

统一虎牙和微博账号级 CK 保存与导出;CK 失效后回到客户重新登录,后台支持重发授权;客户授权页改为统一深色布局并收敛开发迁移配置。
This commit is contained in:
yml
2026-11-14 00:13:00 +08:00
parent e1d16f3a53
commit 8a54c41476
29 changed files with 1788 additions and 827 deletions
+647 -12
View File
@@ -1436,25 +1436,660 @@
}
}
.customer-fulfillment-page {
.customer-auth-page {
--auth-accent: #ff8a00;
--auth-accent-hover: #ffa12f;
--auth-panel: #07142e;
--auth-panel-soft: #0d1d3d;
--auth-line: rgba(255, 255, 255, 0.11);
--auth-text: #f8fafc;
--auth-muted: #a6b0c3;
min-height: 100vh;
padding: clamp(18px, 3vw, 42px) clamp(14px, 4vw, 64px);
background:
radial-gradient(circle at 10% 0%, rgba(249, 115, 22, 0.14), transparent 30%),
linear-gradient(180deg, #fffaf5 0%, #f8fafc 45%, #f1f5f9 100%);
display: flex;
justify-content: center;
overflow-x: hidden;
padding: clamp(20px, 4vw, 48px) 16px;
color: var(--auth-text);
background: #202124;
}
.customer-fulfillment-page > * {
width: min(1080px, 100%);
margin-inline: auto;
.customer-auth-page.is-weibo {
--auth-accent: #ff5c9a;
--auth-accent-hover: #ff78aa;
}
.customer-fulfillment-centered {
.customer-auth-shell {
width: min(760px, 100%);
min-width: 0;
align-self: flex-start;
overflow: hidden;
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 8px;
background: var(--auth-panel);
box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}
.customer-auth-hero {
min-height: 176px;
display: flex;
align-items: center;
padding: 34px 38px;
background-image:
linear-gradient(
90deg,
rgba(3, 18, 55, 0.97) 0%,
rgba(5, 23, 65, 0.83) 48%,
rgba(7, 20, 43, 0.45) 100%
),
url('https://game.gtimg.cn/images/gp/web201908/inside_kv.jpg');
background-position: center;
background-size: cover;
}
.customer-auth-brand {
display: flex;
align-items: center;
gap: 18px;
min-width: 0;
}
.customer-auth-logo {
width: 62px;
height: 62px;
flex: none;
display: grid;
place-items: center;
border: 1px solid rgba(255, 255, 255, 0.22);
border-radius: 8px;
color: var(--auth-accent);
font-size: 34px;
background: rgba(3, 12, 34, 0.58);
box-shadow: inset 0 0 24px rgba(255, 138, 0, 0.06);
}
.customer-fulfillment-centered .ant-result,
.customer-fulfillment-centered .ant-spin-nested-loading {
width: min(720px, 100%);
.customer-auth-eyebrow {
display: block;
margin-bottom: 4px;
color: rgba(255, 255, 255, 0.78);
font-size: 15px;
font-weight: 500;
}
.customer-auth-brand h1 {
margin: 0;
color: #fff;
font-size: clamp(26px, 4.2vw, 38px);
line-height: 1.25;
font-weight: 700;
letter-spacing: 0;
overflow-wrap: anywhere;
}
.customer-auth-warning {
padding: 19px 24px;
color: #ff6975;
text-align: center;
font-size: 20px;
font-weight: 700;
background: #06122b;
border-bottom: 1px solid var(--auth-line);
}
.customer-auth-main {
min-width: 0;
color: var(--auth-text);
background: var(--auth-panel);
}
.customer-auth-content-stack {
min-width: 0;
display: flex;
flex-direction: column;
}
.customer-auth-task-switcher {
display: flex;
align-items: flex-start;
gap: 16px;
padding: 20px 24px;
border-bottom: 1px solid var(--auth-line);
}
.customer-auth-task-switcher > span {
flex: none;
padding-top: 5px;
color: var(--auth-muted);
font-size: 13px;
}
.customer-auth-task-switcher > div {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.customer-auth-task-switcher .ant-btn {
height: auto;
padding: 6px 10px;
color: #dce6f8;
white-space: normal;
text-align: left;
border-color: rgba(255, 255, 255, 0.16);
background: rgba(255, 255, 255, 0.04);
}
.customer-auth-task-switcher .ant-btn-primary {
color: #111827;
border-color: var(--auth-accent);
}
.customer-auth-facts {
min-width: 0;
padding: 0 26px;
}
.customer-auth-facts > div {
display: grid;
grid-template-columns: 132px minmax(0, 1fr);
align-items: center;
gap: 18px;
min-height: 74px;
padding: 16px 4px;
border-bottom: 1px solid var(--auth-line);
}
.customer-auth-facts > div > span {
color: #c0c8d8;
font-size: 16px;
}
.customer-auth-facts > div > strong {
min-width: 0;
justify-self: end;
color: #f8fafc;
font-size: 18px;
line-height: 1.5;
font-weight: 600;
text-align: right;
word-break: break-all;
overflow-wrap: anywhere;
}
.customer-auth-section {
min-width: 0;
padding: 28px 26px 30px;
border-bottom: 1px solid var(--auth-line);
}
.customer-auth-section-heading {
display: flex;
align-items: flex-start;
gap: 14px;
}
.customer-auth-section-icon {
width: 42px;
height: 42px;
flex: none;
display: grid;
place-items: center;
border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: 7px;
color: var(--auth-accent);
font-size: 22px;
background: rgba(255, 255, 255, 0.035);
}
.customer-auth-section-heading h2,
.customer-auth-state h2 {
margin: 0 0 8px;
color: #fff;
font-size: 23px;
line-height: 1.35;
font-weight: 700;
}
.customer-auth-section-heading p,
.customer-auth-state p,
.customer-auth-form-copy {
margin: 0;
color: var(--auth-muted);
font-size: 15px;
line-height: 1.75;
}
.customer-auth-tabs {
margin-top: 22px;
}
.customer-auth-tabs .ant-tabs-nav {
margin-bottom: 18px;
}
.customer-auth-tabs .ant-tabs-nav::before {
border-bottom-color: var(--auth-line);
}
.customer-auth-tabs .ant-tabs-tab {
padding: 12px 30px;
color: var(--auth-muted);
background: rgba(255, 255, 255, 0.025);
border: 1px solid var(--auth-line) !important;
border-radius: 4px 4px 0 0;
}
.customer-auth-tabs .ant-tabs-tab + .ant-tabs-tab {
margin-left: 4px;
}
.customer-auth-tabs .ant-tabs-tab.ant-tabs-tab-active {
border-color: rgba(255, 255, 255, 0.18) !important;
background: rgba(255, 255, 255, 0.09);
}
.customer-auth-tabs .ant-tabs-tab-btn {
color: inherit !important;
font-size: 16px;
}
.customer-auth-tabs .ant-tabs-ink-bar {
background: var(--auth-accent);
}
.customer-auth-form {
display: flex;
flex-direction: column;
gap: 14px;
padding-top: 18px;
}
.customer-auth-inline-input {
display: grid;
grid-template-columns: 104px minmax(0, 1fr) 126px;
overflow: hidden;
border: 1px solid rgba(148, 163, 184, 0.28);
border-radius: 5px;
background: rgba(6, 18, 43, 0.7);
}
.customer-auth-inline-input.is-code {
grid-template-columns: minmax(0, 1fr) 126px;
}
.customer-auth-inline-input > * {
min-width: 0;
}
.customer-auth-inline-input .ant-select-selector,
.customer-auth-inline-input .ant-input,
.customer-auth-inline-input .ant-input-affix-wrapper {
color: #f8fafc !important;
border: 0 !important;
border-radius: 0 !important;
background: rgba(6, 18, 43, 0.7) !important;
box-shadow: none !important;
}
.customer-auth-inline-input .ant-select-selector {
height: 48px !important;
padding-inline: 14px !important;
align-items: center;
}
.customer-auth-inline-input .ant-select-selection-item {
color: #f8fafc !important;
}
.customer-auth-inline-input .ant-input {
height: 48px;
padding-inline: 16px;
font-size: 15px;
}
.customer-auth-inline-input .ant-input::placeholder {
color: #7f8ca5;
}
.customer-auth-inline-input .ant-select,
.customer-auth-inline-input .ant-input {
border-right: 1px solid var(--auth-line) !important;
}
.customer-auth-inline-input .ant-btn {
height: 48px;
color: #fff;
border: 0;
border-radius: 0;
background: rgba(48, 75, 124, 0.55);
}
.customer-auth-inline-input .ant-btn-primary {
color: #111827;
background: var(--auth-accent);
}
.customer-auth-option-hint {
color: var(--auth-muted);
}
.customer-auth-note {
padding: 11px 14px;
color: #fbbf24;
font-size: 13px;
line-height: 1.6;
border: 1px solid rgba(251, 191, 36, 0.48);
border-radius: 4px;
background: rgba(251, 191, 36, 0.06);
}
.customer-auth-form-hint {
color: #7f8ca5;
font-size: 12px;
}
.customer-auth-page .ant-btn-primary {
color: #111827;
border-color: var(--auth-accent);
background: var(--auth-accent);
font-weight: 700;
box-shadow: none;
}
.customer-auth-page .ant-btn-primary:hover {
color: #111827 !important;
border-color: var(--auth-accent-hover) !important;
background: var(--auth-accent-hover) !important;
}
.customer-auth-page .customer-auth-secondary-button {
color: #fff;
border-color: rgba(148, 163, 184, 0.42);
background: rgba(19, 39, 77, 0.52);
}
.customer-auth-page .customer-auth-secondary-button:hover {
color: #fff !important;
border-color: rgba(196, 210, 236, 0.72) !important;
background: rgba(31, 55, 102, 0.72) !important;
}
.customer-auth-qr {
display: flex;
flex-direction: column;
align-items: center;
gap: 13px;
padding-top: 22px;
text-align: center;
}
.customer-auth-qr > p {
margin: 0;
color: var(--auth-muted);
line-height: 1.7;
}
.customer-auth-qr-image,
.customer-auth-qr-placeholder {
display: grid;
place-items: center;
width: 252px;
min-height: 252px;
padding: 10px;
border-radius: 6px;
background: #fff;
}
.customer-auth-qr-placeholder {
color: #64748b;
font-size: 13px;
background: rgba(255, 255, 255, 0.94);
}
.customer-auth-role-card {
width: min(100%, 580px);
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 4px 18px;
padding: 15px 18px;
text-align: left;
border: 1px solid rgba(255, 138, 0, 0.42);
border-radius: 5px;
background: rgba(255, 138, 0, 0.06);
}
.customer-auth-role-card span {
color: var(--auth-muted);
font-size: 13px;
}
.customer-auth-role-card strong {
justify-self: end;
color: #fff;
font-size: 17px;
}
.customer-auth-role-card small {
grid-column: 1 / -1;
color: var(--auth-muted);
font-size: 12px;
}
.customer-auth-button-stack {
width: min(100%, 580px);
display: flex;
flex-direction: column;
gap: 12px;
}
.customer-auth-button-stack .ant-btn,
.customer-auth-form > .ant-btn {
height: 50px;
font-size: 17px;
}
.customer-auth-status-pill {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 34px;
padding: 4px 15px;
color: #fff;
font-size: 15px !important;
font-weight: 600 !important;
text-align: center;
border-radius: 999px;
background: #3169aa;
}
.customer-auth-status-pill.is-pending,
.customer-auth-status-pill.is-scanned {
background: #3a6fa8;
}
.customer-auth-status-pill.is-success {
background: #237a57;
}
.customer-auth-status-pill.is-danger {
background: #a33a48;
}
.customer-auth-state {
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
padding: 48px 26px;
text-align: center;
}
.customer-auth-state h2 {
margin: 0;
}
.customer-auth-state p {
max-width: 560px;
}
.customer-auth-state-icon {
width: 58px;
height: 58px;
display: grid;
place-items: center;
color: var(--auth-accent);
font-size: 29px;
border: 1px solid rgba(255, 255, 255, 0.16);
border-radius: 50%;
background: rgba(255, 255, 255, 0.045);
}
.customer-auth-state.is-success .customer-auth-state-icon {
color: #52d39a;
}
.customer-auth-state.is-error .customer-auth-state-icon {
color: #ff6975;
}
.customer-auth-state-time {
color: var(--auth-muted);
font-size: 12px;
}
.customer-auth-loading {
min-height: 240px;
display: grid;
place-items: center;
align-content: center;
gap: 14px;
color: var(--auth-muted);
}
.customer-auth-privacy {
margin: 24px 26px 28px;
padding: 14px 18px;
color: #d8b46a;
font-size: 14px;
line-height: 1.65;
text-align: center;
border: 1px solid rgba(216, 180, 106, 0.64);
border-radius: 5px;
background: rgba(0, 0, 0, 0.08);
}
.customer-auth-page .ant-spin-dot-item {
background: var(--auth-accent);
}
@media (max-width: 640px) {
.customer-auth-page {
padding: 0;
background: var(--auth-panel);
}
.customer-auth-shell {
width: 100%;
min-height: 100vh;
border: 0;
border-radius: 0;
box-shadow: none;
}
.customer-auth-hero {
min-height: 150px;
padding: 26px 22px;
background-position: 58% center;
}
.customer-auth-logo {
width: 54px;
height: 54px;
font-size: 29px;
}
.customer-auth-brand {
gap: 14px;
}
.customer-auth-eyebrow {
font-size: 13px;
}
.customer-auth-brand h1 {
font-size: 26px;
}
.customer-auth-warning {
padding: 16px 14px;
font-size: 17px;
}
.customer-auth-facts {
padding-inline: 20px;
}
.customer-auth-facts > div {
grid-template-columns: 92px minmax(0, 1fr);
gap: 12px;
min-height: 68px;
padding-block: 14px;
}
.customer-auth-facts > div > span {
font-size: 14px;
}
.customer-auth-facts > div > strong {
font-size: 16px;
}
.customer-auth-section {
padding: 24px 18px 27px;
}
.customer-auth-section-heading h2,
.customer-auth-state h2 {
font-size: 20px;
}
.customer-auth-section-heading p,
.customer-auth-state p,
.customer-auth-form-copy {
font-size: 14px;
}
.customer-auth-section-icon {
width: 38px;
height: 38px;
font-size: 20px;
}
.customer-auth-inline-input,
.customer-auth-inline-input.is-code {
grid-template-columns: 94px minmax(0, 1fr);
}
.customer-auth-inline-input > .ant-btn {
grid-column: 1 / -1;
border-top: 1px solid var(--auth-line);
}
.customer-auth-inline-input.is-code {
grid-template-columns: minmax(0, 1fr);
}
.customer-auth-inline-input.is-code > .ant-btn {
grid-column: auto;
}
.customer-auth-qr-image,
.customer-auth-qr-placeholder {
width: 232px;
min-height: 232px;
}
.customer-auth-privacy {
margin: 20px 18px 24px;
font-size: 13px;
}
}