style(douyu): 优化客户领取二维码深色界面
This commit is contained in:
@@ -134,7 +134,7 @@ export default function DouyuFulfillmentPage() {
|
||||
void QRCode.toDataURL(url, {
|
||||
width: 320,
|
||||
margin: 2,
|
||||
color: { dark: '#111827', light: '#ffffff' },
|
||||
color: { dark: '#111827', light: '#e8ebef' },
|
||||
}).then(setQrImage)
|
||||
}, [live?.qrUrl])
|
||||
|
||||
@@ -343,9 +343,11 @@ export default function DouyuFulfillmentPage() {
|
||||
{!live?.qrUrl && task.status !== 'completed' ? (
|
||||
<div className="customer-binding-qr-card">
|
||||
<h3>游戏角色绑定二维码</h3>
|
||||
<div className="customer-auth-qr-placeholder">
|
||||
<Spin />
|
||||
<span>正在准备绑定二维码...</span>
|
||||
<div className="customer-binding-qr-code">
|
||||
<div className="customer-auth-qr-placeholder">
|
||||
<Spin />
|
||||
<span>正在准备绑定二维码...</span>
|
||||
</div>
|
||||
</div>
|
||||
<Button
|
||||
block
|
||||
@@ -361,14 +363,16 @@ export default function DouyuFulfillmentPage() {
|
||||
{live?.qrUrl && !live.bindConfirmed ? (
|
||||
<div className="customer-binding-qr-card">
|
||||
<h3>游戏角色绑定二维码</h3>
|
||||
{qrImage ? (
|
||||
<Image src={qrImage} alt="和平精英角色绑定二维码" width={260} preview={false} />
|
||||
) : (
|
||||
<div className="customer-auth-qr-placeholder">
|
||||
<Spin />
|
||||
<span>正在生成二维码图片...</span>
|
||||
</div>
|
||||
)}
|
||||
<div className="customer-binding-qr-code">
|
||||
{qrImage ? (
|
||||
<Image src={qrImage} alt="和平精英角色绑定二维码" width="100%" preview={false} />
|
||||
) : (
|
||||
<div className="customer-auth-qr-placeholder">
|
||||
<Spin />
|
||||
<span>正在生成二维码图片...</span>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
<p className="customer-binding-qr-hint">
|
||||
请使用微信扫码,并选择与资料一致的和平精英角色。
|
||||
</p>
|
||||
@@ -452,7 +456,7 @@ export default function DouyuFulfillmentPage() {
|
||||
|
||||
function CustomerFrame({ title, children }: { title: string; children: ReactNode }) {
|
||||
return (
|
||||
<div className="customer-auth-page is-huya">
|
||||
<div className="customer-auth-page is-huya is-douyu">
|
||||
<div className="customer-auth-shell">
|
||||
<header className="customer-auth-hero">
|
||||
<div className="customer-auth-brand">
|
||||
|
||||
@@ -2872,6 +2872,91 @@
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
/* 斗鱼客户领取页沿用后台深色二维码面板,避免大块纯白卡片刺眼。 */
|
||||
.customer-auth-page.is-douyu .customer-binding-qr-card {
|
||||
padding: 18px;
|
||||
color: var(--auth-text);
|
||||
border: 1px solid #3a4150;
|
||||
border-radius: 14px;
|
||||
background: #202631;
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu .customer-binding-qr-card h3 {
|
||||
color: #d7dee9;
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu .customer-binding-qr-code {
|
||||
width: min(100%, 292px);
|
||||
aspect-ratio: 1;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
padding: 14px;
|
||||
overflow: hidden;
|
||||
border: 1px solid #4a5262;
|
||||
border-radius: 12px;
|
||||
background: #e8ebef;
|
||||
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu .customer-binding-qr-code .ant-image,
|
||||
.customer-auth-page.is-douyu .customer-binding-qr-code img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: block;
|
||||
border-radius: 7px;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu .customer-auth-qr-placeholder {
|
||||
width: 100%;
|
||||
min-height: 100%;
|
||||
color: #8f9aab;
|
||||
border: 1px dashed #485162;
|
||||
border-radius: 9px;
|
||||
background: #171c24;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu .customer-binding-qr-hint {
|
||||
max-width: 340px;
|
||||
color: #b8c1cf;
|
||||
font-size: 13px;
|
||||
line-height: 1.6;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu .customer-binding-qr-countdown {
|
||||
color: #cbd5e1;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu .customer-binding-qr-card .ant-progress {
|
||||
width: min(100%, 292px);
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu .customer-binding-qr-card .ant-progress-inner {
|
||||
background: #353d4b;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu .customer-binding-qr-card .ant-progress-bg {
|
||||
background: #f59e0b;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu .customer-binding-qr-actions .ant-btn {
|
||||
color: #e2e8f0;
|
||||
border-color: #465063;
|
||||
background: #2a313d;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu .customer-binding-qr-actions .ant-btn:hover,
|
||||
.customer-auth-page.is-douyu .customer-binding-qr-actions .ant-btn:focus-visible {
|
||||
color: #fff;
|
||||
border-color: #657186;
|
||||
background: #343c4a;
|
||||
}
|
||||
|
||||
.customer-binding-next.ant-btn {
|
||||
width: 100%;
|
||||
height: 52px;
|
||||
|
||||
Reference in New Issue
Block a user