feat(semi-auto): 虎牙客户页登录→资料→绑定流程与返回上一步重置

This commit is contained in:
2026-11-17 20:40:12 +08:00
parent 5d0be12476
commit 23b8e4fdd3
21 changed files with 1455 additions and 558 deletions
+348 -27
View File
@@ -1465,29 +1465,24 @@
}
.customer-auth-hero {
min-height: auto;
position: relative;
min-height: clamp(112px, 15vw, 136px);
display: flex;
align-items: center;
justify-content: center;
padding: 38px 16px 10px;
background: none;
}
/* 微博登录页顶部 KV:与资料页共用 inside-kv.jpg,叠加深色渐变保证标题可读。 */
.customer-auth-page.is-weibo .customer-auth-hero {
min-height: 134px;
align-items: flex-start;
align-items: flex-end;
justify-content: flex-start;
padding: 26px 20px 20px;
padding: 12px 20px 14px;
overflow: hidden;
text-align: left;
background-color: #0b1220;
background-image:
linear-gradient(180deg, rgba(11, 18, 32, 0.12) 0%, rgba(11, 18, 32, 0.72) 72%, #232936 100%),
linear-gradient(180deg, rgba(11, 18, 32, 0.06) 0%, rgba(11, 18, 32, 0.62) 72%, #232936 100%),
url('/images/customer/inside-kv.jpg');
background-repeat: no-repeat;
background-position: center 38%;
background-size: cover;
}
/* 微博与虎牙客户页统一使用同一套顶部 KV,不再单独覆盖背景。 */
.customer-auth-page.is-weibo .customer-auth-brand {
width: 100%;
justify-content: flex-start;
@@ -1499,17 +1494,18 @@
}
@media (max-width: 640px) {
.customer-auth-page.is-weibo .customer-auth-hero {
min-height: 118px;
padding: 20px 16px 14px;
.customer-auth-hero {
min-height: 112px;
padding: 12px 16px 14px;
background-position: center 42%;
}
}
.customer-auth-brand {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
justify-content: flex-start;
gap: 0;
min-width: 0;
}
@@ -1535,7 +1531,8 @@
line-height: 1.4;
font-weight: 700;
letter-spacing: 0;
text-align: center;
text-align: left;
text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72);
white-space: normal;
overflow-wrap: anywhere;
}
@@ -2184,19 +2181,19 @@
/* 资料页顶部 KV:原图 https://game.gtimg.cn/images/gp/web201908/inside_kv.jpg(本地 1600×510 q82) */
.customer-collect-hero {
position: relative;
min-height: clamp(190px, 24vw, 240px);
min-height: clamp(132px, 18vw, 160px);
display: flex;
align-items: flex-end;
justify-content: center;
padding: 0 20px 16px;
padding: 0 18px 12px;
overflow: hidden;
text-align: center;
background-color: #0b1220;
background-image:
linear-gradient(180deg, rgba(11, 18, 32, 0) 45%, rgba(11, 18, 32, 0.55) 72%, #0b1220 100%),
linear-gradient(180deg, rgba(11, 18, 32, 0) 38%, rgba(11, 18, 32, 0.55) 72%, #0b1220 100%),
url('/images/customer/inside-kv.jpg');
background-repeat: no-repeat;
background-position: center 38%;
background-position: center 40%;
background-size: cover;
}
@@ -2211,8 +2208,8 @@
@media (max-width: 640px) {
.customer-collect-hero {
min-height: 180px;
padding: 0 16px 14px;
min-height: 132px;
padding: 0 16px 12px;
background-position: center 42%;
}
@@ -2497,6 +2494,72 @@
font-size: 16px;
}
.customer-huya-steps {
display: flex;
gap: 8px;
margin: 12px 16px 0;
padding: 12px 14px;
list-style: none;
border: 1px solid #3a4150;
border-radius: 12px;
background: #1b212c;
}
.customer-huya-step {
display: flex;
flex: 1 1 0;
align-items: center;
gap: 7px;
min-width: 0;
color: #64748b;
font-size: 13px;
line-height: 1.3;
}
.customer-huya-step-index {
display: inline-flex;
flex: 0 0 auto;
align-items: center;
justify-content: center;
width: 22px;
height: 22px;
border: 1px solid #3a4150;
border-radius: 50%;
color: #94a3b8;
font-size: 12px;
font-weight: 600;
background: #212733;
}
.customer-huya-step-label {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.customer-huya-step.is-active {
color: #f8fafc;
font-weight: 600;
}
.customer-huya-step.is-active .customer-huya-step-index {
color: #fff;
border-color: #2563eb;
background: #2563eb;
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}
.customer-huya-step.is-done {
color: #6ee7b7;
}
.customer-huya-step.is-done .customer-huya-step-index {
color: #6ee7b7;
border-color: #065f46;
background: rgba(6, 78, 59, 0.4);
}
.customer-order-card {
margin: 10px 16px 0;
padding: 16px;
@@ -3088,9 +3151,9 @@
}
.customer-auth-hero {
min-height: auto;
padding: 38px 16px 10px;
background: none;
min-height: 112px;
padding: 12px 16px 14px;
background-position: center 42%;
}
.customer-auth-brand h1 {
@@ -3111,6 +3174,23 @@
min-height: 0;
}
.customer-huya-steps {
gap: 6px;
margin: 10px 16px 0;
padding: 10px 12px;
}
.customer-huya-step {
gap: 5px;
font-size: 11px;
}
.customer-huya-step-index {
width: 19px;
height: 19px;
font-size: 10px;
}
.customer-auth-facts {
padding-inline: 20px;
}
@@ -3231,3 +3311,244 @@
line-height: 1.45;
}
}
/* ==========================================================================
客户履约页(半自动)固定移动端 + 窄屏自适应
--------------------------------------------------------------------------
全局 base.css 给 body 设了 min-width:320px,worker.css 又用 overflow-x:hidden
裁掉横向溢出。应用内浏览器 / 分屏 / 系统显示放大时实际视口可能小于 320px,
页面右侧(输入框、商品值、提示文案)会被直接裁掉。
下面只作用于客户履约页(body.customer-mobile-body),不影响后台与打手端。
========================================================================== */
html.customer-mobile-html,
body.customer-mobile-body {
min-width: 0;
width: 100%;
max-width: 100%;
overflow-x: hidden;
}
body.customer-mobile-body #root {
width: 100%;
min-width: 0;
max-width: 100%;
}
body.customer-mobile-body .customer-collect-page,
body.customer-mobile-body .customer-auth-page {
width: 100%;
min-width: 0;
max-width: 100%;
min-height: 100vh;
min-height: 100dvh;
overflow-x: hidden;
}
body.customer-mobile-body .customer-collect-hero {
width: min(480px, 100%);
margin: 0 auto;
}
body.customer-mobile-body .customer-collect-body {
width: 100%;
max-width: 480px;
margin: 0 auto;
padding: 20px clamp(12px, 4vw, 20px) calc(40px + env(safe-area-inset-bottom));
padding-left: max(clamp(12px, 4vw, 20px), env(safe-area-inset-left));
padding-right: max(clamp(12px, 4vw, 20px), env(safe-area-inset-right));
gap: 10px;
}
body.customer-mobile-body .customer-auth-shell {
width: min(480px, 100%);
min-width: 0;
}
body.customer-mobile-body .customer-auth-main {
padding-bottom: calc(24px + env(safe-area-inset-bottom));
}
body.customer-mobile-body .customer-auth-content-stack,
body.customer-mobile-body .customer-auth-section,
body.customer-mobile-body .customer-auth-facts,
body.customer-mobile-body .customer-auth-facts > div,
body.customer-mobile-body .customer-auth-task-switcher,
body.customer-mobile-body .customer-login-form,
body.customer-mobile-body .customer-collect-card,
body.customer-mobile-body .customer-order-card {
min-width: 0;
}
body.customer-mobile-body .customer-collect-card,
body.customer-mobile-body .customer-collect-readonly,
body.customer-mobile-body .customer-collect-input.ant-input,
body.customer-mobile-body .customer-collect-select.ant-select,
body.customer-mobile-body .customer-login-mobile.ant-input,
body.customer-mobile-body .customer-login-code-input.ant-input,
body.customer-mobile-body .customer-login-submit.ant-btn,
body.customer-mobile-body .customer-login-alt.ant-btn {
width: 100%;
min-width: 0;
max-width: 100%;
}
/* 订单卡片自带左右 16px 外边距,不能用 width:100% 再加边距 */
body.customer-mobile-body .customer-order-card {
width: auto;
max-width: 100%;
}
body.customer-mobile-body .customer-collect-card > div,
body.customer-mobile-body .customer-order-card > div {
flex-wrap: wrap;
}
body.customer-mobile-body .customer-collect-card > div strong,
body.customer-mobile-body .customer-order-card > div strong {
flex: 1 1 10ch;
min-width: 0;
overflow-wrap: anywhere;
word-break: break-word;
}
/* 状态胶囊保持自身宽度,不参与长值换行规则 */
body.customer-mobile-body .customer-order-card > div strong.customer-order-status {
flex: 0 0 auto;
max-width: 100%;
text-align: center;
}
body.customer-mobile-body .customer-collect-readonly {
overflow-wrap: anywhere;
word-break: break-all;
}
body.customer-mobile-body .customer-collect-card > p {
overflow-wrap: anywhere;
word-break: break-word;
}
body.customer-mobile-body .customer-login-form,
body.customer-mobile-body .customer-login-mobile-row,
body.customer-mobile-body .customer-login-code-input.ant-input {
min-width: 0;
}
body.customer-mobile-body .customer-auth-role-card,
body.customer-mobile-body .customer-auth-button-stack {
width: 100%;
}
/* 登录/绑定二维码:容器与图片都不超过可用宽度,避免 232/252/260px 固定宽溢出 */
body.customer-mobile-body .customer-auth-qr-image,
body.customer-mobile-body .customer-auth-qr-placeholder {
width: min(252px, 100%);
min-height: 0;
aspect-ratio: 1;
}
body.customer-mobile-body .customer-auth-qr-image .ant-image,
body.customer-mobile-body .customer-auth-qr-image img,
body.customer-mobile-body .customer-binding-qr-card .ant-image,
body.customer-mobile-body .customer-binding-qr-card img {
max-width: 100%;
height: auto;
}
/* 固定宽度弹窗(绑定确认 520 / 虎牙验证 430)在窄屏必须收到视口内 */
@media (max-width: 640px) {
.customer-binding-modal,
.customer-huya-challenge-modal {
width: calc(100vw - 24px) !important;
max-width: 480px;
margin: 0 auto;
}
.customer-binding-modal .ant-modal-content,
.customer-huya-challenge-modal .ant-modal-content {
max-height: calc(100vh - 32px);
overflow-y: auto;
}
}
@media (max-width: 380px) {
body.customer-mobile-body .customer-binding-qr-actions,
body.customer-mobile-body .customer-binding-modal-actions {
grid-template-columns: minmax(0, 1fr);
}
}
@media (max-width: 340px) {
body.customer-mobile-body .customer-collect-body {
padding-inline: 12px;
}
/* 标签 + 长值改为上下排列,值不再被挤到屏幕外 */
body.customer-mobile-body .customer-collect-card > div,
body.customer-mobile-body .customer-order-card > div {
flex-direction: column;
align-items: flex-start;
gap: 4px;
}
body.customer-mobile-body .customer-collect-card > div strong,
body.customer-mobile-body .customer-order-card > div strong {
flex: 0 1 auto;
max-width: 100%;
justify-self: start;
text-align: left;
}
body.customer-mobile-body .customer-order-card > div strong.customer-order-status {
flex: 0 0 auto;
text-align: center;
}
body.customer-mobile-body .customer-collect-card > p {
text-align: left;
}
body.customer-mobile-body .customer-login-mobile-row {
flex-direction: column;
gap: 10px;
}
body.customer-mobile-body .customer-login-code-button.ant-btn {
width: 100%;
}
body.customer-mobile-body .customer-auth-task-switcher {
flex-direction: column;
gap: 8px;
padding: 16px;
}
body.customer-mobile-body .customer-auth-task-switcher > span {
padding-top: 0;
}
body.customer-mobile-body .customer-auth-facts {
padding-inline: 12px;
}
body.customer-mobile-body .customer-auth-facts > div {
grid-template-columns: minmax(0, 1fr);
gap: 4px;
min-height: 0;
padding-block: 12px;
}
body.customer-mobile-body .customer-auth-facts > div > strong {
justify-self: start;
text-align: left;
}
body.customer-mobile-body .customer-auth-state {
padding: 32px 16px;
}
body.customer-mobile-body .customer-auth-privacy {
margin-inline: 16px;
}
}