style(douyu): 移除领取页顶部标题
This commit is contained in:
@@ -303,7 +303,7 @@ export default function DouyuFulfillmentPage() {
|
|||||||
|
|
||||||
if (loading) {
|
if (loading) {
|
||||||
return (
|
return (
|
||||||
<CustomerFrame title="斗鱼精英宝典领取">
|
<CustomerFrame>
|
||||||
<div className="customer-auth-loading">
|
<div className="customer-auth-loading">
|
||||||
<Spin indicator={<LoadingOutlined spin />} />
|
<Spin indicator={<LoadingOutlined spin />} />
|
||||||
<span>正在读取订单...</span>
|
<span>正在读取订单...</span>
|
||||||
@@ -314,7 +314,7 @@ export default function DouyuFulfillmentPage() {
|
|||||||
|
|
||||||
if (loadError || !data || !task) {
|
if (loadError || !data || !task) {
|
||||||
return (
|
return (
|
||||||
<CustomerFrame title="斗鱼精英宝典领取">
|
<CustomerFrame>
|
||||||
<div className="customer-auth-state is-error">
|
<div className="customer-auth-state is-error">
|
||||||
<h2>暂时无法打开订单</h2>
|
<h2>暂时无法打开订单</h2>
|
||||||
<p>{loadError || '订单信息不存在'}</p>
|
<p>{loadError || '订单信息不存在'}</p>
|
||||||
@@ -325,7 +325,7 @@ export default function DouyuFulfillmentPage() {
|
|||||||
|
|
||||||
if (task.status === 'completed') {
|
if (task.status === 'completed') {
|
||||||
return (
|
return (
|
||||||
<CustomerFrame title="斗鱼精英宝典领取">
|
<CustomerFrame>
|
||||||
<OrderCard data={data} />
|
<OrderCard data={data} />
|
||||||
<div className="customer-auth-state is-success">
|
<div className="customer-auth-state is-success">
|
||||||
<div className="customer-auth-state-icon">
|
<div className="customer-auth-state-icon">
|
||||||
@@ -345,7 +345,7 @@ export default function DouyuFulfillmentPage() {
|
|||||||
|
|
||||||
if (task.status === 'cancelled') {
|
if (task.status === 'cancelled') {
|
||||||
return (
|
return (
|
||||||
<CustomerFrame title="斗鱼精英宝典领取">
|
<CustomerFrame>
|
||||||
<OrderCard data={data} />
|
<OrderCard data={data} />
|
||||||
<Alert
|
<Alert
|
||||||
className="customer-order-closed-alert"
|
className="customer-order-closed-alert"
|
||||||
@@ -360,7 +360,6 @@ export default function DouyuFulfillmentPage() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<CustomerFrame
|
<CustomerFrame
|
||||||
title="斗鱼精英宝典领取"
|
|
||||||
compact={Boolean(
|
compact={Boolean(
|
||||||
live?.qrUrl && !live.bindReadyForConfirm && !live.bindConfirmed && !bindingFailed,
|
live?.qrUrl && !live.bindReadyForConfirm && !live.bindConfirmed && !bindingFailed,
|
||||||
)}
|
)}
|
||||||
@@ -629,25 +628,11 @@ function ChoiceSwitch<T extends string>(input: {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
function CustomerFrame({
|
function CustomerFrame({ compact = false, children }: { compact?: boolean; children: ReactNode }) {
|
||||||
title,
|
|
||||||
compact = false,
|
|
||||||
children,
|
|
||||||
}: {
|
|
||||||
title: string
|
|
||||||
compact?: boolean
|
|
||||||
children: ReactNode
|
|
||||||
}) {
|
|
||||||
return (
|
return (
|
||||||
<div className={`customer-auth-page is-huya is-douyu${compact ? ' is-compact' : ''}`}>
|
<div className={`customer-auth-page is-huya is-douyu${compact ? ' is-compact' : ''}`}>
|
||||||
<div className="customer-auth-shell">
|
<div className="customer-auth-shell">
|
||||||
<header className="customer-auth-hero">
|
<header className="customer-auth-hero" aria-hidden="true" />
|
||||||
<div className="customer-auth-brand">
|
|
||||||
<div>
|
|
||||||
<h1>{title}</h1>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</header>
|
|
||||||
<div className="customer-auth-warning">温馨提示:未成年人禁止下单</div>
|
<div className="customer-auth-warning">温馨提示:未成年人禁止下单</div>
|
||||||
<main className="customer-auth-main">{children}</main>
|
<main className="customer-auth-main">{children}</main>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -37,3 +37,8 @@ test('客户刷新状态走独立接口,不复用绑定启动接口', () => {
|
|||||||
assert.ok(backendRoute.includes("'/:orderNo/binding/refresh'"))
|
assert.ok(backendRoute.includes("'/:orderNo/binding/refresh'"))
|
||||||
assert.ok(backendRoute.includes('refreshDouyuCustomerBinding'))
|
assert.ok(backendRoute.includes('refreshDouyuCustomerBinding'))
|
||||||
})
|
})
|
||||||
|
|
||||||
|
test('斗鱼领取页顶部保留 KV,不再展示领取标题', () => {
|
||||||
|
assert.ok(!page.includes('斗鱼精英宝典领取'))
|
||||||
|
assert.ok(page.includes('customer-auth-hero" aria-hidden="true"'))
|
||||||
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user