按业务口径重审「资料 → 登录 → 读角色 → 绑定」全链路,修复 3 个 P0 与 4 处口径问题: P0 重新扫码空转 - startPublicBinding 改为按 allowedActions 判定能否重新出码,不再只看 primaryAction。 此前 first_bind_role_mismatch(primaryAction=contact_support)点「刷新绑定二维码」 后端直接早退:二维码不重生成、旧 pending 不清,客户扫错角色后卡死。 P0 扫错角色被判成人工核实 - 换绑 pending 与目标资料不一致时不再返回 manual_review,改为 rebind_required (start_rebind + edit_profile + contact_support),客户可自愈。 - first_bind_role_mismatch 保留(后端仍会产出),客户页重新渲染该状态, 确认按钮不再吞掉「重新扫码」「上一步修改资料」两个退回入口。 - requiresSupport 只在 manual_review 为真;canGenerateBindingQr 改为从 allowedActions 推导。 - 新增前端守卫测试:后端会产出的每个 flowState 在客户页都必须有可操作落点。 P0 确认后没有下一步引导 - confirmed 区块改为「绑定已确认」+「请截图本页,把订单号和这张截图发给客服」, 展示并可复制订单号,保留刷新按钮。 失败留证 - Connector 拒绝时 bind_confirm_message 带平台返回码;确认写接口抛异常也落 bind_confirm_message + last_error,不再只停在 submitting 等超时。 - rebind_platform_message 不再被「本次无消息」覆盖成空串;DTO 暴露 bindConfirmState / bindConfirmMessage,客户页按去重顺序展示真实失败原因。 - 加密 role token 不再写入任务事件(仅保留 hasRoleToken 布尔标记)。 换绑冷却 - 平台未返回 changeBindTime 时不再推算「从现在起 N 天」; 页面只在剩余天数 > 0 时展示「剩余约 N 天」,否则提示平台未返回。 - 冷却态补「刷新绑定状态」入口与「冷却结束后再回来点重新扫码换绑」指引。 文档同步虎牙绑定的可自愈动作、确认后截图引导、冷却与失败留证口径。
422 lines
8.4 KiB
CSS
422 lines
8.4 KiB
CSS
.customer-binding-stage {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 14px;
|
||
padding: 16px;
|
||
}
|
||
|
||
.customer-binding-session-card {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 10px;
|
||
padding: 18px;
|
||
border: 1px solid #78350f;
|
||
border-radius: 12px;
|
||
background: rgba(120, 53, 15, 0.22);
|
||
}
|
||
|
||
.customer-binding-session-title {
|
||
margin: 0;
|
||
color: #fbbf24;
|
||
font-size: 16px;
|
||
font-weight: 700;
|
||
}
|
||
|
||
.customer-binding-session-desc {
|
||
margin: 0 0 4px;
|
||
color: #fcd34d;
|
||
font-size: 13px;
|
||
line-height: 1.6;
|
||
}
|
||
|
||
.customer-binding-qr-error {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
gap: 10px;
|
||
padding: 24px 12px;
|
||
text-align: center;
|
||
}
|
||
|
||
.customer-binding-qr-error p {
|
||
margin: 0;
|
||
color: #fca5a5;
|
||
font-size: 15px;
|
||
font-weight: 600;
|
||
}
|
||
|
||
.customer-binding-qr-error span {
|
||
color: #cbd5e1;
|
||
font-size: 13px;
|
||
line-height: 1.6;
|
||
overflow-wrap: anywhere;
|
||
}
|
||
|
||
/* antd Alert 在绑定阶段统一走深色卡片,避免浅色块破坏整体深色风格 */
|
||
.customer-binding-stage .ant-alert {
|
||
align-items: flex-start;
|
||
padding: 12px 14px;
|
||
border: 1px solid #3a4150;
|
||
border-radius: 12px;
|
||
background: #212733;
|
||
}
|
||
|
||
.customer-binding-stage .ant-alert .ant-alert-message {
|
||
color: #e2e8f0;
|
||
font-size: 14px;
|
||
font-weight: 600;
|
||
}
|
||
|
||
/* antd v6 的标题节点是 .ant-alert-title(v5 为 .ant-alert-message) */
|
||
.customer-binding-stage .ant-alert .ant-alert-title {
|
||
color: #e2e8f0;
|
||
font-size: 14px;
|
||
font-weight: 600;
|
||
line-height: 1.5;
|
||
}
|
||
|
||
.customer-binding-stage .ant-alert .ant-alert-description {
|
||
color: #cbd5e1;
|
||
font-size: 13px;
|
||
line-height: 1.6;
|
||
}
|
||
|
||
.customer-binding-stage .ant-alert-warning {
|
||
border-color: #78350f;
|
||
background: rgba(120, 53, 15, 0.22);
|
||
}
|
||
|
||
.customer-binding-stage .ant-alert-warning .ant-alert-icon,
|
||
.customer-binding-stage .ant-alert-warning .ant-alert-message,
|
||
.customer-binding-stage .ant-alert-warning .ant-alert-title {
|
||
color: #fbbf24;
|
||
}
|
||
|
||
.customer-binding-stage .ant-alert-warning .ant-alert-description {
|
||
color: #fcd34d;
|
||
}
|
||
|
||
.customer-binding-stage .ant-alert-error {
|
||
border-color: #7f1d1d;
|
||
background: rgba(127, 29, 29, 0.24);
|
||
}
|
||
|
||
.customer-binding-stage .ant-alert-error .ant-alert-icon,
|
||
.customer-binding-stage .ant-alert-error .ant-alert-message,
|
||
.customer-binding-stage .ant-alert-error .ant-alert-title {
|
||
color: #fca5a5;
|
||
}
|
||
|
||
.customer-binding-stage .ant-alert-error .ant-alert-description {
|
||
color: #fecaca;
|
||
}
|
||
|
||
.customer-binding-stage .ant-alert-success {
|
||
border-color: #065f46;
|
||
background: rgba(6, 78, 59, 0.28);
|
||
}
|
||
|
||
.customer-binding-stage .ant-alert-success .ant-alert-icon,
|
||
.customer-binding-stage .ant-alert-success .ant-alert-message,
|
||
.customer-binding-stage .ant-alert-success .ant-alert-title {
|
||
color: #6ee7b7;
|
||
}
|
||
|
||
.customer-binding-stage .ant-alert-success .ant-alert-description {
|
||
color: #a7f3d0;
|
||
}
|
||
|
||
.customer-binding-role-actions {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 12px;
|
||
width: 100%;
|
||
}
|
||
|
||
.customer-binding-role-actions .customer-binding-confirm.ant-btn {
|
||
height: 52px;
|
||
border-radius: 14px;
|
||
background: #2563eb !important;
|
||
border-color: #2563eb !important;
|
||
color: #fff !important;
|
||
font-size: 17px;
|
||
font-weight: 600;
|
||
}
|
||
|
||
.customer-binding-role-actions .customer-binding-confirm.ant-btn:hover,
|
||
.customer-binding-role-actions .customer-binding-confirm.ant-btn:focus-visible {
|
||
background: #1d4ed8 !important;
|
||
border-color: #1d4ed8 !important;
|
||
color: #fff !important;
|
||
}
|
||
|
||
.customer-binding-role-actions .customer-binding-rebind.ant-btn {
|
||
height: 48px;
|
||
border-radius: 14px;
|
||
background: transparent !important;
|
||
border-color: #3a4150 !important;
|
||
color: #cbd5e1 !important;
|
||
font-size: 16px;
|
||
font-weight: 500;
|
||
}
|
||
|
||
.customer-binding-role-actions .customer-binding-rebind.ant-btn .anticon {
|
||
color: #f59e0b;
|
||
}
|
||
|
||
.customer-binding-role-actions .customer-binding-rebind.ant-btn:hover,
|
||
.customer-binding-role-actions .customer-binding-rebind.ant-btn:focus-visible {
|
||
background: rgba(245, 158, 11, 0.08) !important;
|
||
border-color: #b45309 !important;
|
||
color: #fbbf24 !important;
|
||
}
|
||
|
||
.customer-binding-role-actions .customer-binding-accept.ant-btn {
|
||
height: 46px;
|
||
border-radius: 12px;
|
||
background: transparent !important;
|
||
border-color: transparent !important;
|
||
color: #94a3b8 !important;
|
||
font-size: 15px;
|
||
font-weight: 500;
|
||
}
|
||
|
||
.customer-binding-role-actions .customer-binding-accept.ant-btn:hover,
|
||
.customer-binding-role-actions .customer-binding-accept.ant-btn:focus-visible {
|
||
background: rgba(148, 163, 184, 0.1) !important;
|
||
border-color: transparent !important;
|
||
color: #e2e8f0 !important;
|
||
}
|
||
|
||
.customer-binding-info {
|
||
padding: 16px;
|
||
border: 1px solid #3a4150;
|
||
border-radius: 12px;
|
||
background: #212733;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 10px;
|
||
}
|
||
|
||
.customer-binding-info h3 {
|
||
margin: 0 0 4px;
|
||
color: #9aa3b2;
|
||
font-size: 13px;
|
||
font-weight: 500;
|
||
}
|
||
|
||
.customer-binding-info h3 small {
|
||
color: #64748b;
|
||
font-weight: 400;
|
||
}
|
||
|
||
.customer-binding-info > div {
|
||
display: flex;
|
||
align-items: flex-start;
|
||
justify-content: space-between;
|
||
gap: 12px;
|
||
color: #cbd5e1;
|
||
font-size: 14px;
|
||
line-height: 1.5;
|
||
}
|
||
|
||
.customer-binding-info > div > span {
|
||
flex: 0 0 auto;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.customer-binding-info > div strong {
|
||
flex: 1 1 auto;
|
||
min-width: 0;
|
||
color: #fff;
|
||
text-align: right;
|
||
overflow-wrap: anywhere;
|
||
}
|
||
|
||
.customer-binding-alert {
|
||
padding: 12px 14px;
|
||
border-radius: 8px;
|
||
border: 1px solid transparent;
|
||
font-size: 14px;
|
||
}
|
||
|
||
.customer-binding-alert.is-warning {
|
||
color: #fbbf24;
|
||
border-color: #78350f;
|
||
background: rgba(120, 53, 15, 0.25);
|
||
}
|
||
|
||
.customer-binding-alert.is-info {
|
||
color: #93c5fd;
|
||
border-color: #1e3a8a;
|
||
background: rgba(30, 58, 138, 0.3);
|
||
}
|
||
|
||
.customer-binding-verify {
|
||
padding: 18px;
|
||
border: 1px solid #3a4150;
|
||
border-radius: 12px;
|
||
background: transparent;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 16px;
|
||
text-align: center;
|
||
}
|
||
|
||
.customer-binding-verify p {
|
||
margin: 0;
|
||
color: #e5e7eb;
|
||
font-size: 16px;
|
||
line-height: 1.6;
|
||
}
|
||
|
||
.customer-binding-verify .customer-binding-verify-title {
|
||
color: #fff;
|
||
font-size: 18px;
|
||
font-weight: 600;
|
||
}
|
||
|
||
.customer-binding-verify .customer-binding-verify-desc {
|
||
color: #cbd5e1;
|
||
font-size: 14px;
|
||
text-align: left;
|
||
}
|
||
|
||
.customer-binding-order-no {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
padding: 10px 12px;
|
||
border: 1px dashed #3a4150;
|
||
border-radius: 10px;
|
||
color: #9aa3b2;
|
||
font-size: 14px;
|
||
text-align: left;
|
||
}
|
||
|
||
.customer-binding-order-no strong {
|
||
flex: 1 1 auto;
|
||
min-width: 0;
|
||
color: #fff;
|
||
font-weight: 600;
|
||
overflow-wrap: anywhere;
|
||
}
|
||
|
||
.customer-binding-initial {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 12px;
|
||
}
|
||
|
||
.customer-binding-initial-desc {
|
||
margin: 0;
|
||
color: #e5e7eb;
|
||
font-size: 15px;
|
||
line-height: 1.6;
|
||
text-align: center;
|
||
}
|
||
|
||
.customer-binding-qr-card {
|
||
padding: 18px;
|
||
border-radius: 12px;
|
||
background: #fff;
|
||
color: #111827;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
gap: 10px;
|
||
}
|
||
|
||
.customer-binding-qr-card h3 {
|
||
margin: 0;
|
||
color: #6b7280;
|
||
font-size: 14px;
|
||
font-weight: 500;
|
||
}
|
||
|
||
.customer-binding-qr-hint {
|
||
margin: 0;
|
||
color: #6b7280;
|
||
font-size: 13px;
|
||
}
|
||
|
||
.customer-binding-qr-tip {
|
||
margin: 0;
|
||
color: #f59e0b;
|
||
font-size: 13px;
|
||
}
|
||
|
||
.customer-binding-qr-countdown {
|
||
margin: 0;
|
||
color: #6b7280;
|
||
font-size: 13px;
|
||
}
|
||
|
||
.customer-binding-qr-actions {
|
||
width: 100%;
|
||
margin-top: 4px;
|
||
display: grid;
|
||
grid-template-columns: 1fr 1fr;
|
||
gap: 10px;
|
||
}
|
||
|
||
.customer-binding-qr-actions .ant-btn {
|
||
height: 40px;
|
||
border-radius: 8px;
|
||
}
|
||
|
||
/* 斗鱼客户领取页沿用后台深色二维码面板,避免大块纯白卡片刺眼。 */
|
||
.customer-choice-switch {
|
||
display: grid;
|
||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||
gap: 3px;
|
||
padding: 3px;
|
||
overflow: hidden;
|
||
border: 1px solid #354052;
|
||
border-radius: 10px;
|
||
background: #171d27;
|
||
}
|
||
|
||
.customer-choice-option {
|
||
height: 42px;
|
||
min-width: 0;
|
||
padding: 0 10px;
|
||
color: #aeb8c8;
|
||
border: 0;
|
||
border-radius: 8px;
|
||
outline: none;
|
||
background: transparent;
|
||
font: inherit;
|
||
font-size: 14px;
|
||
cursor: pointer;
|
||
transition: color 100ms ease;
|
||
}
|
||
|
||
.customer-choice-option:hover {
|
||
color: #e2e8f0;
|
||
background: #242c39;
|
||
}
|
||
|
||
.customer-choice-option.is-selected {
|
||
color: #fff;
|
||
background: #2f6fed;
|
||
font-weight: 700;
|
||
}
|
||
|
||
.customer-choice-option:focus-visible {
|
||
outline: 2px solid #60a5fa;
|
||
outline-offset: 2px;
|
||
}
|
||
|
||
.customer-binding-next.ant-btn {
|
||
width: 100%;
|
||
height: 52px;
|
||
margin-top: 6px;
|
||
border-radius: 14px;
|
||
background: #2563eb !important;
|
||
border-color: #2563eb !important;
|
||
color: #fff !important;
|
||
font-size: 17px;
|
||
font-weight: 600;
|
||
}
|