优化(半自动履约): 精简虎牙扫码与绑定确认流程
This commit is contained in:
@@ -373,81 +373,3 @@
|
||||
font-size: 17px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.customer-binding-modal-footer {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.customer-binding-modal-actions {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.customer-binding-modal-actions .ant-btn {
|
||||
height: 42px;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.customer-binding-modal-actions.is-mismatch {
|
||||
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
|
||||
}
|
||||
|
||||
.customer-binding-modal-error {
|
||||
margin: 0;
|
||||
color: #dc2626;
|
||||
font-size: 13px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.customer-binding-modal-warning {
|
||||
margin: 0;
|
||||
color: #d97706;
|
||||
font-size: 13px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.customer-binding-compare {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.customer-binding-compare-side {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
padding: 14px;
|
||||
border: 1px solid rgba(15, 23, 42, 0.12);
|
||||
border-radius: 6px;
|
||||
background: rgba(15, 23, 42, 0.04);
|
||||
}
|
||||
|
||||
.customer-binding-compare-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
color: #64748b;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.customer-binding-compare-side strong {
|
||||
color: #0f172a;
|
||||
font-size: 16px;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.customer-binding-compare-side em {
|
||||
color: #64748b;
|
||||
font-style: normal;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.customer-binding-compare {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -142,16 +142,14 @@ body.customer-mobile-body .customer-binding-qr-card img {
|
||||
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;
|
||||
@@ -159,8 +157,7 @@ body.customer-mobile-body .customer-binding-qr-card img {
|
||||
}
|
||||
|
||||
@media (max-width: 380px) {
|
||||
body.customer-mobile-body .customer-binding-qr-actions,
|
||||
body.customer-mobile-body .customer-binding-modal-actions {
|
||||
body.customer-mobile-body .customer-binding-qr-actions {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,145 @@
|
||||
/** 虎牙客户安全验证样式。 */
|
||||
|
||||
.customer-auth-page.is-huya .customer-binding-stage {
|
||||
gap: 10px;
|
||||
padding: 12px 16px 16px;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-huya .customer-binding-info {
|
||||
gap: 8px;
|
||||
padding: 12px 14px;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-huya .customer-binding-alert {
|
||||
padding: 10px 12px;
|
||||
font-size: 13px;
|
||||
line-height: 1.55;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-huya .customer-binding-qr-card {
|
||||
gap: 8px;
|
||||
padding: 14px;
|
||||
color: #cbd5e1;
|
||||
border: 1px solid #3a4150;
|
||||
border-radius: 14px;
|
||||
background: #202631;
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
|
||||
}
|
||||
|
||||
.customer-huya-qr-heading {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 7px;
|
||||
color: #93c5fd;
|
||||
}
|
||||
|
||||
.customer-huya-qr-heading h3 {
|
||||
margin: 0;
|
||||
color: #e2e8f0;
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.customer-huya-qr-code {
|
||||
width: min(100%, 228px);
|
||||
aspect-ratio: 1;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
padding: 8px;
|
||||
overflow: hidden;
|
||||
border: 1px solid #4a5262;
|
||||
border-radius: 12px;
|
||||
background: #e5e9ee;
|
||||
box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.customer-huya-qr-code .ant-image,
|
||||
.customer-huya-qr-code img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: block;
|
||||
border-radius: 7px;
|
||||
}
|
||||
|
||||
.customer-huya-qr-code .customer-auth-qr-placeholder {
|
||||
width: 100%;
|
||||
min-height: 0;
|
||||
height: 100%;
|
||||
color: #94a3b8;
|
||||
border: 1px dashed #485162;
|
||||
border-radius: 8px;
|
||||
background: #171c24;
|
||||
}
|
||||
|
||||
.customer-huya-qr-code .customer-binding-qr-error {
|
||||
gap: 6px;
|
||||
padding: 16px 10px;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-huya .customer-binding-qr-hint {
|
||||
max-width: 300px;
|
||||
color: #b8c1cf;
|
||||
font-size: 13px;
|
||||
line-height: 1.55;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-huya .customer-binding-qr-tip {
|
||||
color: #f6c66f;
|
||||
font-size: 12px;
|
||||
line-height: 1.5;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.customer-huya-qr-meta {
|
||||
width: 100%;
|
||||
max-width: 300px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
color: #8f9aaa;
|
||||
font-size: 12px;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-huya .customer-binding-qr-actions {
|
||||
max-width: 300px;
|
||||
margin-top: 2px;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-huya .customer-binding-qr-actions .ant-btn {
|
||||
height: 38px;
|
||||
color: #e2e8f0;
|
||||
border-color: #465063;
|
||||
border-radius: 9px;
|
||||
background: #2a313d;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-huya .customer-binding-qr-actions .ant-btn:hover,
|
||||
.customer-auth-page.is-huya .customer-binding-qr-actions .ant-btn:focus-visible {
|
||||
color: #fff;
|
||||
border-color: #657186;
|
||||
background: #343c4a;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-huya .customer-binding-qr-actions .ant-btn:disabled {
|
||||
color: #6f7a8b;
|
||||
border-color: #394353;
|
||||
background: #252c37;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-huya .customer-binding-next.ant-btn {
|
||||
max-width: 300px;
|
||||
height: 46px;
|
||||
margin-top: 0;
|
||||
border-radius: 10px;
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.customer-huya-steps {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
@@ -67,6 +207,19 @@
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.customer-auth-page.is-huya .customer-binding-stage {
|
||||
gap: 8px;
|
||||
padding: 10px 14px 14px;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-huya .customer-binding-qr-card {
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
.customer-huya-qr-code {
|
||||
width: min(100%, 214px);
|
||||
}
|
||||
|
||||
.customer-huya-steps {
|
||||
gap: 6px;
|
||||
margin: 10px 16px 0;
|
||||
|
||||
Reference in New Issue
Block a user