style(douyu): 优化订单状态卡片布局

This commit is contained in:
yml
2026-11-18 11:00:28 +08:00
parent b48509c34f
commit d919c251f6
2 changed files with 122 additions and 10 deletions
@@ -284,6 +284,7 @@ export default function DouyuFulfillmentPage() {
<CustomerFrame title="斗鱼精英宝典领取">
<OrderCard data={data} />
<Alert
className="customer-order-closed-alert"
type="warning"
showIcon
message="订单领取已关闭"
@@ -525,24 +526,25 @@ function CustomerFrame({ title, children }: { title: string; children: ReactNode
function OrderCard({ data }: { data: DouyuCustomerFulfillment }) {
return (
<section className="customer-order-card">
<h3>订单信息</h3>
<div>
<section className="customer-order-card customer-douyu-order-card">
<div className="customer-douyu-order-head">
<h3>订单信息</h3>
<strong
className={`customer-order-status customer-douyu-order-status is-${data.task.status}`}
>
{STATUS_LABELS[data.task.status] || data.task.status}
</strong>
</div>
<div className="customer-douyu-order-field">
<span>订单号</span>
<strong>{data.task.platform_order_id}</strong>
</div>
<div>
<div className="customer-douyu-order-field">
<span>商品</span>
<strong>
{data.task.product_name || data.task.sku_name} × {data.task.quantity}
</strong>
</div>
<div>
<span>状态</span>
<strong className="customer-order-status">
{STATUS_LABELS[data.task.status] || data.task.status}
</strong>
</div>
</section>
)
}
+110
View File
@@ -3007,6 +3007,116 @@
padding-top: 12px;
}
.customer-auth-page.is-douyu .customer-order-closed-alert.ant-alert {
align-items: flex-start;
margin: 10px 16px 0;
padding: 12px 14px;
color: #f6c66f;
border: 1px solid #6b4d1f;
border-radius: 10px;
background: #2a2418;
}
.customer-auth-page.is-douyu .customer-order-closed-alert .ant-alert-icon {
margin-top: 2px;
color: #f6ad3c;
font-size: 16px;
}
.customer-auth-page.is-douyu .customer-order-closed-alert .ant-alert-message,
.customer-auth-page.is-douyu .customer-order-closed-alert .ant-alert-title {
color: #f7d394;
font-size: 14px;
font-weight: 600;
line-height: 1.4;
}
.customer-auth-page.is-douyu .customer-order-closed-alert .ant-alert-description {
margin-top: 3px;
color: #d8c39b;
font-size: 13px;
line-height: 1.5;
}
.customer-auth-page.is-douyu .customer-douyu-order-card {
padding: 0;
overflow: hidden;
gap: 0;
border-radius: 12px;
background: #202631;
}
.customer-auth-page.is-douyu .customer-douyu-order-head {
align-items: center;
gap: 12px;
padding: 13px 16px;
border-bottom: 1px solid #343d4c;
}
.customer-auth-page.is-douyu .customer-douyu-order-head h3 {
margin: 0;
color: #9aa3b2;
font-size: 13px;
font-weight: 600;
}
.customer-auth-page.is-douyu .customer-douyu-order-field {
display: grid;
grid-template-columns: 72px minmax(0, 1fr);
align-items: start;
gap: 12px;
padding: 11px 16px;
border-bottom: 1px solid #343d4c;
}
.customer-auth-page.is-douyu .customer-douyu-order-field:last-child {
border-bottom: 0;
}
.customer-auth-page.is-douyu .customer-douyu-order-field > span {
color: #8f9aaa;
font-size: 13px;
line-height: 1.5;
}
.customer-auth-page.is-douyu .customer-douyu-order-field > strong {
min-width: 0;
color: #f1f5f9;
font-size: 14px;
font-weight: 600;
line-height: 1.5;
text-align: right;
overflow-wrap: anywhere;
}
.customer-auth-page.is-douyu .customer-douyu-order-status {
flex: 0 0 auto;
padding: 2px 10px;
border-color: rgba(96, 165, 250, 0.36);
color: #dbeafe;
font-size: 12px;
font-weight: 600;
background: rgba(47, 111, 237, 0.22);
}
.customer-auth-page.is-douyu .customer-douyu-order-status.is-cancelled {
border-color: rgba(245, 158, 11, 0.38);
color: #f8d28a;
background: rgba(245, 158, 11, 0.14);
}
.customer-auth-page.is-douyu .customer-douyu-order-status.is-completed {
border-color: rgba(52, 211, 153, 0.38);
color: #a7f3d0;
background: rgba(6, 95, 70, 0.24);
}
.customer-auth-page.is-douyu .customer-douyu-order-status.is-failed {
border-color: rgba(248, 113, 113, 0.38);
color: #fecaca;
background: rgba(127, 29, 29, 0.24);
}
.customer-choice-switch {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));