feat: 优化移动端打手接单界面布局并完成CSS架构模块化拆分

This commit is contained in:
yml2213
2026-08-16 11:03:19 +08:00
parent 005b159215
commit 0270657f2b
6 changed files with 4238 additions and 3794 deletions
+402 -166
View File
@@ -203,48 +203,81 @@ export default function WorkerHallPage() {
]
return (
<section className="page-stack">
<div className="worker-page-head">
<div className="worker-page-head-title-row">
<Typography.Title level={3}></Typography.Title>
<div className="worker-hall-head-controls">
<Tooltip
title={
autoRefresh
? '已开启自动刷新,每 5 秒刷新一次'
: '开启后每 5 秒自动刷新订单列表'
}
>
<div className="worker-hall-autorefresh-box">
<span className="worker-hall-autorefresh-label"></span>
<>
{isMobile ? (
<div className="worker-hall-mobile-page">
{/* 移动端顶部极简状态 & 刷新控制 */}
<div className="worker-hall-mobile-top-bar">
<div className="worker-hall-mobile-stat-pill">
<span className="worker-hall-mobile-stat-item">
<strong className="worker-hall-mobile-stat-highlight">{worker ? formatMoney(worker.wallet.availableAmount) : '-'}</strong>
</span>
<span className="worker-hall-mobile-stat-divider">|</span>
<span className="worker-hall-mobile-stat-item">
<strong>{remainingSlots === null ? '-' : `${activeCount}/${maxActiveOrders}`}</strong>
</span>
</div>
<div className="worker-hall-mobile-top-actions">
<div className="worker-hall-mobile-autorefresh-switch">
<span className="worker-hall-mobile-autorefresh-text"></span>
<Switch
size="small"
checked={autoRefresh}
onChange={toggleAutoRefresh}
/>
</div>
</Tooltip>
<Button
icon={<ReloadOutlined />}
loading={
ordersQuery.isFetching ||
profileQuery.isFetching ||
hallSummaryQuery.isFetching
}
onClick={() => refreshAll()}
>
</Button>
<Button
size="small"
shape="circle"
icon={<ReloadOutlined />}
loading={
ordersQuery.isFetching ||
profileQuery.isFetching ||
hallSummaryQuery.isFetching
}
onClick={() => refreshAll()}
/>
</div>
</div>
</div>
<div className="worker-hall-search-bar">
<Space.Compact className="worker-hall-search">
{/* 移动端横向滑动分类条 */}
{categories.length > 0 ? (
<div className="worker-hall-mobile-category-bar">
<button
type="button"
className={`worker-hall-mobile-cat-pill ${categoryId === 0 ? 'active' : ''}`}
onClick={() => {
setCategoryId(0)
setPage(1)
}}
>
</button>
{categories.map((category) => (
<button
key={category.categoryId}
type="button"
className={`worker-hall-mobile-cat-pill ${categoryId === category.categoryId ? 'active' : ''}`}
onClick={() => {
setCategoryId(category.categoryId)
setPage(1)
}}
>
{category.name}
</button>
))}
</div>
) : null}
{/* 紧凑搜索栏 */}
<div className="worker-hall-mobile-search-row">
<Input
allowClear
value={keywordInput}
placeholder="搜索商品名称 / 订单号"
placeholder="搜索商品 / 订单号"
prefix={<SearchOutlined />}
className="worker-hall-mobile-search-input"
onChange={(event) => {
const nextKeyword = event.target.value
setKeywordInput(nextKeyword)
@@ -263,76 +296,45 @@ export default function WorkerHallPage() {
>
</Button>
</Space.Compact>
</div>
</div>
<Card className="worker-hall-board-card" bordered={false}>
<div className="worker-hall-summary-strip">
{summaryItems.map((item) => (
<div key={item.label} className="worker-hall-summary-item">
<span className="worker-hall-summary-label">{item.label}</span>
<strong className="worker-hall-summary-value">{item.value}</strong>
<small className="worker-hall-summary-note">{item.note}</small>
</div>
))}
</div>
{categories.length > 0 ? (
<Tabs
size="small"
activeKey={String(categoryId)}
items={[
{ key: '0', label: '全部' },
...categories.map((category) => ({
key: String(category.categoryId),
label: category.name,
})),
]}
onChange={(nextKey) => {
setCategoryId(Number(nextKey) || 0)
setPage(1)
}}
/>
) : null}
{shouldWarn ? (
<Alert
className="worker-hall-warning"
showIcon
type="warning"
message={
remainingSlots !== null && remainingSlots <= 0
? '当前已达到接单上限,请先处理现有工单'
: `当前还有 ${problemCount} 单问题单待处理,建议优先收口`
}
/>
) : null}
{ordersQuery.isLoading ? (
<div className="worker-hall-loading">
<Spin size="large" />
</div>
) : ordersQuery.error ? (
<Empty
description={
ordersQuery.error instanceof Error
? ordersQuery.error.message
: '读取抢单大厅失败'
}
/>
) : orders.length === 0 ? (
<Empty
description={
keyword
? `没有找到与 “${keyword}” 相关的可抢工单`
: '当前暂无可抢订单,可稍后刷新再看'
}
/>
) : (
<>
<div className="worker-hall-card-grid">
{orders.map((order) => {
{shouldWarn ? (
<Alert
className="worker-hall-warning"
showIcon
type="warning"
message={
remainingSlots !== null && remainingSlots <= 0
? '当前已达到接单上限,请先处理现有工单'
: `当前还有 ${problemCount} 单问题单待处理,建议优先收口`
}
/>
) : null}
{/* 移动端高密度订单卡片流 */}
<div className="worker-hall-mobile-list">
{ordersQuery.isLoading ? (
<div className="worker-hall-loading">
<Spin size="large" />
</div>
) : ordersQuery.error ? (
<Empty
description={
ordersQuery.error instanceof Error
? ordersQuery.error.message
: '读取抢单大厅失败'
}
/>
) : orders.length === 0 ? (
<Empty
description={
keyword
? `没有找到与 “${keyword}” 相关的可抢工单`
: '当前暂无可抢工单,可稍后刷新再看'
}
/>
) : (
orders.map((order) => {
const disabledReason = resolveGrabDisabledReason(
order,
worker,
@@ -340,69 +342,58 @@ export default function WorkerHallPage() {
)
return (
<article key={order.workOrderId} className="worker-hall-card">
<div className="worker-hall-card-title">
<strong
className="worker-hall-card-title-text"
title={order.productName || '未命名商品'}
>
<article key={order.workOrderId} className="worker-hall-mobile-card">
{/* 卡片头部: 分类 + 拼单/时限标签 + 订单号 */}
<div className="worker-hall-mobile-card-top">
<div className="worker-hall-mobile-card-tags">
{order.categoryName ? (
<Tag color="blue" className="worker-hall-mobile-tag">
{order.categoryName}
</Tag>
) : null}
{order.sharing?.enabled ? (
<Tag color="purple" className="worker-hall-mobile-tag">
{resolveSharingRemaining(order)}
</Tag>
) : null}
{Number(order.timeoutMinutes || 0) > 0 ? (
<Tag color="orange" icon={<ClockCircleOutlined />} className="worker-hall-mobile-tag">
{order.timeoutMinutes}
</Tag>
) : null}
</div>
<span className="worker-hall-mobile-card-orderno">
{getDisplayOrderNo(order)}
</span>
</div>
{/* 商品标题与保证金说明 */}
<div className="worker-hall-mobile-card-main">
<strong className="worker-hall-mobile-card-title" title={order.productName || '未命名商品'}>
{order.productName || '未命名商品'}
</strong>
<Typography.Text type="secondary">
{order.categoryName || '默认分类'}
</Typography.Text>
<Typography.Text type="secondary">
{getDisplayOrderNo(order)}
</Typography.Text>
<div className="worker-hall-mobile-card-meta">
<span>: {formatMoney(order.freezeDepositAmount)}</span>
{order.sharing?.enabled ? (
<span> · {formatMoney(order.sharing.unitReward)}/</span>
) : null}
</div>
</div>
{order.sharing?.enabled ? (
<div className="worker-hall-card-sharing">
<Tag color="purple"></Tag>
<Typography.Text type="secondary">
{formatMoney(order.sharing.unitReward)} · {' '}
{order.sharingProgress?.joinedQuantity || 0}/
{order.sharing.totalQuantity} · {' '}
{resolveSharingRemaining(order)}
</Typography.Text>
{/* 底部报酬金额与抢单按钮 */}
<div className="worker-hall-mobile-card-footer">
<div className="worker-hall-mobile-card-price-group">
<span className="worker-hall-mobile-card-price-label"></span>
<strong className="worker-hall-mobile-card-price-val">
{formatMoney(order.rewardAmount)}
</strong>
</div>
) : null}
{Number(order.timeoutMinutes || 0) > 0 ? (
<div className="worker-hall-card-sharing">
<Tag color="orange" icon={<ClockCircleOutlined />}>
{order.timeoutMinutes}
</Tag>
</div>
) : null}
<div className="worker-hall-card-amount-row">
<div className="worker-hall-card-amount">
{formatMoney(order.rewardAmount)}
</div>
<Typography.Text
type="secondary"
className="worker-hall-card-deposit"
>
{formatMoney(order.freezeDepositAmount)}
</Typography.Text>
</div>
{disabledReason ? (
<Typography.Text
type="danger"
className="worker-hall-card-hint"
>
{disabledReason}
</Typography.Text>
) : null}
<div className="worker-hall-card-actions">
<div className="worker-hall-card-grab-row">
<div className="worker-hall-mobile-card-btn-group">
{order.sharing?.enabled && !disabledReason ? (
<Button
type="primary"
size="large"
size="middle"
className="worker-hall-sharing-button"
disabled={Boolean(disabledReason) || Boolean(order.myShare)}
onClick={() => openSharingModal(order)}
@@ -414,7 +405,8 @@ export default function WorkerHallPage() {
) : null}
<Button
type="primary"
size="large"
size="middle"
className="worker-hall-mobile-grab-btn"
disabled={Boolean(disabledReason)}
loading={grabbingId === order.workOrderId}
onClick={() => submitGrab(order)}
@@ -425,29 +417,273 @@ export default function WorkerHallPage() {
</div>
</article>
)
})}
</div>
})
)}
{(pagination?.total || 0) > 0 ? (
<div className="worker-hall-pagination">
<div className="worker-orders-mobile-pagination">
<Pagination
current={pagination?.page || page}
pageSize={pagination?.pageSize || pageSize}
total={pagination?.total || 0}
showSizeChanger={!isMobile}
simple={isMobile}
pageSizeOptions={[20, 50, 100]}
showTotal={isMobile ? undefined : (total) => `${total}`}
onChange={(nextPage, nextPageSize) => {
simple
onChange={(nextPage: number, nextPageSize: number) => {
setPage(nextPage)
setPageSize(nextPageSize)
}}
/>
</div>
) : null}
</>
)}
</Card>
</div>
</div>
) : (
<section className="page-stack">
<div className="worker-page-head">
<div className="worker-page-head-title-row">
<Typography.Title level={3}></Typography.Title>
<div className="worker-hall-head-controls">
<Tooltip
title={
autoRefresh
? '已开启自动刷新,每 5 秒刷新一次'
: '开启后每 5 秒自动刷新订单列表'
}
>
<div className="worker-hall-autorefresh-box">
<span className="worker-hall-autorefresh-label"></span>
<Switch
size="small"
checked={autoRefresh}
onChange={toggleAutoRefresh}
/>
</div>
</Tooltip>
<Button
icon={<ReloadOutlined />}
loading={
ordersQuery.isFetching ||
profileQuery.isFetching ||
hallSummaryQuery.isFetching
}
onClick={() => refreshAll()}
>
</Button>
</div>
</div>
<div className="worker-hall-search-bar">
<Space.Compact className="worker-hall-search">
<Input
allowClear
value={keywordInput}
placeholder="搜索商品名称 / 订单号"
prefix={<SearchOutlined />}
onChange={(event) => {
const nextKeyword = event.target.value
setKeywordInput(nextKeyword)
if (!nextKeyword.trim()) {
setKeyword('')
setPage(1)
}
}}
onPressEnter={applyKeywordSearch}
/>
<Button
type="primary"
icon={<SearchOutlined />}
loading={ordersQuery.isFetching}
onClick={applyKeywordSearch}
>
</Button>
</Space.Compact>
</div>
</div>
<Card className="worker-hall-board-card" bordered={false}>
<div className="worker-hall-summary-strip">
{summaryItems.map((item) => (
<div key={item.label} className="worker-hall-summary-item">
<span className="worker-hall-summary-label">{item.label}</span>
<strong className="worker-hall-summary-value">{item.value}</strong>
<small className="worker-hall-summary-note">{item.note}</small>
</div>
))}
</div>
{categories.length > 0 ? (
<Tabs
size="small"
activeKey={String(categoryId)}
items={[
{ key: '0', label: '全部' },
...categories.map((category) => ({
key: String(category.categoryId),
label: category.name,
})),
]}
onChange={(nextKey) => {
setCategoryId(Number(nextKey) || 0)
setPage(1)
}}
/>
) : null}
{shouldWarn ? (
<Alert
className="worker-hall-warning"
showIcon
type="warning"
message={
remainingSlots !== null && remainingSlots <= 0
? '当前已达到接单上限,请先处理现有工单'
: `当前还有 ${problemCount} 单问题单待处理,建议优先收口`
}
/>
) : null}
{ordersQuery.isLoading ? (
<div className="worker-hall-loading">
<Spin size="large" />
</div>
) : ordersQuery.error ? (
<Empty
description={
ordersQuery.error instanceof Error
? ordersQuery.error.message
: '读取抢单大厅失败'
}
/>
) : orders.length === 0 ? (
<Empty
description={
keyword
? `没有找到与 “${keyword}” 相关的可抢工单`
: '当前暂无可抢订单,可稍后刷新再看'
}
/>
) : (
<>
<div className="worker-hall-card-grid">
{orders.map((order) => {
const disabledReason = resolveGrabDisabledReason(
order,
worker,
remainingSlots,
)
return (
<article key={order.workOrderId} className="worker-hall-card">
<div className="worker-hall-card-title">
<strong
className="worker-hall-card-title-text"
title={order.productName || '未命名商品'}
>
{order.productName || '未命名商品'}
</strong>
<Typography.Text type="secondary">
{order.categoryName || '默认分类'}
</Typography.Text>
<Typography.Text type="secondary">
{getDisplayOrderNo(order)}
</Typography.Text>
</div>
{order.sharing?.enabled ? (
<div className="worker-hall-card-sharing">
<Tag color="purple"></Tag>
<Typography.Text type="secondary">
{formatMoney(order.sharing.unitReward)} · {' '}
{order.sharingProgress?.joinedQuantity || 0}/
{order.sharing.totalQuantity} · {' '}
{resolveSharingRemaining(order)}
</Typography.Text>
</div>
) : null}
{Number(order.timeoutMinutes || 0) > 0 ? (
<div className="worker-hall-card-sharing">
<Tag color="orange" icon={<ClockCircleOutlined />}>
{order.timeoutMinutes}
</Tag>
</div>
) : null}
<div className="worker-hall-card-amount-row">
<div className="worker-hall-card-amount">
{formatMoney(order.rewardAmount)}
</div>
<Typography.Text
type="secondary"
className="worker-hall-card-deposit"
>
{formatMoney(order.freezeDepositAmount)}
</Typography.Text>
</div>
{disabledReason ? (
<Typography.Text
type="danger"
className="worker-hall-card-hint"
>
{disabledReason}
</Typography.Text>
) : null}
<div className="worker-hall-card-actions">
<div className="worker-hall-card-grab-row">
{order.sharing?.enabled && !disabledReason ? (
<Button
type="primary"
size="large"
className="worker-hall-sharing-button"
disabled={Boolean(disabledReason) || Boolean(order.myShare)}
onClick={() => openSharingModal(order)}
>
{order.myShare
? `已拼 ${order.myShare.quantity}`
: `拼单 ${formatMoney(order.sharing.unitReward)}/份`}
</Button>
) : null}
<Button
type="primary"
size="large"
disabled={Boolean(disabledReason)}
loading={grabbingId === order.workOrderId}
onClick={() => submitGrab(order)}
>
{disabledReason || '立即抢单'}
</Button>
</div>
</div>
</article>
)
})}
</div>
{(pagination?.total || 0) > 0 ? (
<div className="worker-hall-pagination">
<Pagination
current={pagination?.page || page}
pageSize={pagination?.pageSize || pageSize}
total={pagination?.total || 0}
showSizeChanger={!isMobile}
simple={isMobile}
pageSizeOptions={[20, 50, 100]}
showTotal={isMobile ? undefined : (total) => `${total}`}
onChange={(nextPage, nextPageSize) => {
setPage(nextPage)
setPageSize(nextPageSize)
}}
/>
</div>
) : null}
</>
)}
</Card>
</section>
)}
<Modal
title={`拼单参与 · ${sharingOrder?.productName || ''}`}
@@ -491,7 +727,7 @@ export default function WorkerHallPage() {
</Space>
) : null}
</Modal>
</section>
</>
)
}
File diff suppressed because it is too large Load Diff
+262
View File
@@ -0,0 +1,262 @@
:root {
--theme-primary: #ff6a00;
--theme-primary-hover: #ff7a1a;
--theme-primary-active: #e65f00;
--theme-primary-soft: #fff3e8;
--theme-primary-soft-hover: #ffe6d1;
--theme-primary-shadow: rgba(255, 106, 0, 0.14);
color: #1f2937;
background: #f5f7fb;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
min-width: 320px;
min-height: 100vh;
}
button,
input,
textarea,
select {
font: inherit;
}
/* ===== 通用布局与页面容器 ===== */
.page-stack {
display: grid;
gap: 16px;
}
.page-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16px;
}
.page-title {
margin: 0 !important;
}
.page-description {
margin: 6px 0 0;
color: #6b7280;
}
.filter-form {
row-gap: 12px;
}
.cell-stack {
display: grid;
gap: 4px;
min-width: 0;
}
.muted {
color: #6b7280;
}
.full-width {
width: 100%;
}
.json-preview {
max-height: 460px;
overflow: auto;
margin: 0;
padding: 14px;
border: 1px solid #edf0f5;
border-radius: 6px;
background: #0f172a;
color: #dbeafe;
font-size: 12px;
line-height: 1.6;
}
.empty-page {
min-height: 50vh;
display: grid;
place-items: center;
}
.route-loading {
min-height: 100vh;
display: grid;
place-items: center;
}
.feedback-prompt p {
margin-top: 0;
}
.modal-form {
margin-top: 14px;
}
.payload-text {
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
font-size: 12px;
color: #4b5563;
word-break: break-all;
}
.dev-mock-pre {
margin: 0;
padding: 12px 14px;
overflow: auto;
max-height: 360px;
border-radius: 8px;
background: #0f172a;
color: #e2e8f0;
font-size: 12px;
line-height: 1.5;
}
.total-badge {
display: inline-flex;
align-items: center;
min-height: 32px;
padding: 0 12px;
border-radius: 6px;
background: var(--theme-primary-soft);
color: var(--theme-primary);
font-weight: 700;
}
.table-toolbar {
display: flex;
justify-content: space-between;
gap: 12px;
align-items: center;
margin-bottom: 12px;
}
.table-toolbar span {
color: #6b7280;
font-size: 13px;
}
.status-stack {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 4px;
}
.record-preview {
display: grid;
place-items: center;
min-height: 260px;
padding: 12px;
background: #f8fafc;
border: 1px solid #edf0f5;
border-radius: 6px;
}
.record-preview .ant-image,
.record-preview img {
max-width: 100%;
}
.record-preview img {
height: auto;
border: 1px solid #edf0f5;
background: #ffffff;
}
.metric-grid {
display: grid;
gap: 12px;
}
.metric-grid.three {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.metric-grid.four {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
.metric-grid.five {
grid-template-columns: repeat(5, minmax(0, 1fr));
}
.metric-card .ant-card-body,
.metric-card {
min-width: 0;
}
.metric-card .ant-card-body {
display: grid;
gap: 5px;
}
.metric-card span,
.metric-card small {
color: #6b7280;
}
.metric-card strong {
color: #111827;
font-size: 24px;
line-height: 1.1;
}
/* 图片上传通用组件 */
.image-upload-trigger {
width: 100%;
height: 100%;
min-height: 72px;
border: 0;
background: transparent;
color: #64748b;
display: grid;
place-items: center;
gap: 4px;
cursor: pointer;
}
.image-upload-trigger span {
font-size: 12px;
}
.image-upload-droppable {
display: grid;
gap: 8px;
justify-items: start;
}
.image-upload-hint {
font-size: 12px;
line-height: 1.5;
}
.image-preview-list {
display: flex;
flex-wrap: wrap;
gap: 6px;
align-items: center;
}
.image-preview-item {
object-fit: cover;
border-radius: 6px;
border: 1px solid #e5e7eb;
background: #f8fafc;
}
.image-preview-more {
font-size: 12px;
white-space: nowrap;
}
+632
View File
@@ -0,0 +1,632 @@
/* ==========================================================================
买家前台:提卡与信息收集页 (Buyer Claim & Collect Pages)
========================================================================== */
.claim-page {
min-height: 100vh;
padding: 24px;
background: linear-gradient(180deg, #f8fafc 0%, #eef4fb 100%);
display: flex;
flex-direction: column;
align-items: center;
gap: 18px;
}
.claim-header-card,
.claim-content-card {
width: min(680px, 100%);
border-color: rgba(148, 163, 184, 0.18);
box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}
.claim-header-card {
position: relative;
}
.claim-header-card .ant-card-body,
.claim-content-card .ant-card-body {
display: flex;
flex-direction: column;
gap: 18px;
}
.claim-header-copy {
min-width: 0;
padding-right: 220px;
}
.claim-header-copy h1 {
margin: 0;
color: #0f172a;
font-size: 30px;
line-height: 1.25;
overflow-wrap: anywhere;
}
.claim-header-copy p,
.claim-muted {
margin: 0;
color: #64748b;
line-height: 1.6;
}
.claim-step-indicator {
position: absolute;
top: 24px;
right: 24px;
max-width: 210px;
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 7px;
}
.claim-step-dots {
display: flex;
gap: 8px;
}
.claim-step-dot {
width: 32px;
height: 32px;
border-radius: 50%;
background: #e5e7eb;
color: #94a3b8;
display: inline-flex;
align-items: center;
justify-content: center;
font-weight: 700;
}
.claim-step-dot.active {
background: var(--theme-primary);
color: #ffffff;
}
.claim-step-progress-text {
color: #64748b;
font-size: 13px;
font-weight: 700;
line-height: 1.4;
text-align: right;
overflow-wrap: anywhere;
}
.claim-content-card .ant-typography {
margin: 0;
}
.claim-state-card .ant-card-body {
min-height: 240px;
align-items: center;
justify-content: center;
text-align: center;
}
.claim-large-icon {
font-size: 44px;
}
.claim-icon-success {
color: #16a34a;
}
.claim-icon-warning {
color: #d97706;
}
.claim-icon-info {
color: var(--theme-primary);
}
.claim-icon-error {
color: #dc2626;
}
.claim-qr-block {
display: flex;
flex-direction: column;
align-items: center;
gap: 14px;
padding: 14px;
border-radius: 8px;
background: #f8fbff;
border: 1px solid #dbeafe;
}
.claim-qr-guide-panel {
display: grid;
grid-template-columns: 42px minmax(0, 280px) 42px;
grid-template-areas:
'left code right'
'. hint .';
gap: 10px;
align-items: center;
justify-content: center;
width: 100%;
max-width: 410px;
min-width: 0;
}
.claim-scan-label {
align-self: stretch;
min-height: 150px;
padding: 10px 6px;
color: #e11d48;
font-weight: 900;
font-size: 17px;
line-height: 1.2;
writing-mode: vertical-rl;
text-orientation: upright;
display: flex;
align-items: center;
justify-content: center;
}
.claim-scan-label-left {
grid-area: left;
}
.claim-scan-label-right {
grid-area: right;
}
.claim-qr-code {
grid-area: code;
width: 100%;
max-width: 280px;
aspect-ratio: 1 / 1;
padding: 10px;
background: #ffffff;
border-radius: 8px;
border: 1px solid #dbeafe;
}
.claim-save-hint {
grid-area: hint;
margin: 0;
justify-self: center;
color: #64748b;
font-size: 14px;
font-weight: 700;
line-height: 1.4;
text-align: center;
}
.claim-role-panel {
display: grid;
grid-template-columns: 1fr;
gap: 8px;
}
.claim-role-panel.pending {
opacity: 0.82;
}
.claim-role-panel-item {
min-width: 0;
display: grid;
grid-template-columns: 88px minmax(0, 1fr);
align-items: center;
gap: 12px;
}
.claim-role-panel-item span {
color: #64748b;
font-size: 13px;
line-height: 1.4;
white-space: nowrap;
}
.claim-role-panel-item strong {
min-width: 0;
color: #0f172a;
font-size: 17px;
line-height: 1.45;
overflow-wrap: anywhere;
}
.claim-action-row {
width: 100%;
}
.claim-action-tooltip-wrap {
display: inline-flex;
}
.claim-meta-footer {
display: flex;
flex-wrap: wrap;
gap: 4px 10px;
justify-content: center;
color: #94a3b8;
font-size: 11px;
line-height: 1.5;
}
.claim-info-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 14px;
}
.claim-info-grid-compact {
gap: 8px;
margin-bottom: 10px;
}
.claim-info-grid-compact .claim-info-item {
padding: 8px 10px;
gap: 2px;
border-radius: 6px;
}
.claim-info-grid-compact .claim-info-item span {
font-size: 11px;
line-height: 1.3;
}
.claim-info-grid-compact .claim-info-item strong {
font-size: 13px;
line-height: 1.35;
font-weight: 600;
}
.claim-uid-step .ant-card-body {
gap: 10px;
}
.claim-uid-step-title.ant-typography {
margin: 0 !important;
font-size: 20px !important;
line-height: 1.3 !important;
}
.claim-uid-step-desc {
font-size: 13px;
line-height: 1.45;
}
.claim-uid-guide {
margin: 4px 0 0;
padding: 6px;
border-radius: 8px;
background: #f8fafc;
border: 1px solid #e5e7eb;
}
.claim-uid-guide-image {
display: block;
width: 100%;
max-width: 360px;
max-height: 160px;
margin: 0 auto;
border-radius: 6px;
border: 1px solid #e2e8f0;
object-fit: contain;
background: #fff;
}
.claim-uid-guide-caption {
margin: 6px 0 0;
text-align: center;
color: #64748b;
font-size: 12px;
line-height: 1.35;
}
.claim-uid-warning {
margin: 2px 0 0;
color: #ff4d4f;
font-size: 13px;
font-weight: 600;
line-height: 1.45;
}
.claim-info-item {
min-width: 0;
padding: 16px;
border-radius: 6px;
background: #f8fafc;
border: 1px solid #e5e7eb;
display: flex;
flex-direction: column;
gap: 6px;
}
.claim-info-item span {
color: #64748b;
font-size: 13px;
}
.claim-info-item strong {
color: #0f172a;
font-size: 17px;
overflow-wrap: anywhere;
}
.claim-result-header {
display: flex;
align-items: flex-start;
gap: 14px;
}
.claim-feifei-main {
display: grid;
gap: 8px;
}
.claim-feifei-main p {
margin: 0;
color: var(--theme-primary);
font-weight: 700;
}
.claim-feifei-label {
color: #64748b;
font-size: 13px;
}
.claim-product-items {
display: flex;
flex-direction: column;
gap: 10px;
}
.claim-product-items-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
color: #64748b;
font-size: 13px;
}
.claim-product-items-header strong {
color: var(--theme-primary);
font-weight: 700;
}
.claim-product-items-list {
display: flex;
flex-direction: column;
gap: 8px;
}
.claim-product-item-row {
min-height: 44px;
padding: 10px 12px;
border: 1px solid #e5e7eb;
border-radius: 6px;
background: #f8fafc;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.claim-product-item-row span {
min-width: 0;
color: #0f172a;
font-weight: 700;
line-height: 1.35;
overflow-wrap: anywhere;
}
.claim-product-item-row strong {
flex: 0 0 auto;
color: #0f172a;
font-size: 15px;
}
.claim-product-items.compact {
margin-top: 10px;
gap: 8px;
}
.claim-product-items.compact .claim-product-items-list {
gap: 6px;
}
.claim-product-items.compact .claim-product-item-row {
min-height: 36px;
padding: 8px 10px;
background: rgba(248, 250, 252, 0.72);
}
/* ===== 收集页 (Collect Page) ===== */
.collect-page {
min-height: 100vh;
display: grid;
place-items: center;
padding: 32px 16px;
background: #f5f7fb;
}
.collect-card {
width: min(520px, 100%);
}
.collect-order-input {
flex: 1;
margin-bottom: 0;
}
/* ===== 买家页面响应式断点 ===== */
@media (max-width: 720px) {
.claim-page {
padding: 14px;
}
.claim-header-card .ant-card-body,
.claim-content-card .ant-card-body {
gap: 14px;
}
.claim-header-copy {
padding-right: 150px;
}
.claim-header-copy h1 {
font-size: 24px;
line-height: 1.22;
}
.claim-header-copy p {
font-size: 14px;
line-height: 1.4;
}
.claim-step-indicator {
top: 16px;
right: 16px;
max-width: 140px;
}
.claim-step-dots {
gap: 5px;
}
.claim-step-dot {
width: 26px;
height: 26px;
font-size: 13px;
}
.claim-step-progress-text {
font-size: 12px;
}
.claim-info-grid {
grid-template-columns: 1fr;
}
.claim-qr-block {
padding: 12px;
}
.claim-qr-guide-panel {
grid-template-columns: 34px minmax(0, 1fr) 34px;
gap: 8px;
max-width: 100%;
}
.claim-scan-label {
min-height: 128px;
padding: 8px 4px;
font-size: 14px;
}
.claim-qr-code {
max-width: 232px;
padding: 8px;
}
.claim-save-hint {
font-size: 13px;
}
.claim-role-panel-item {
grid-template-columns: 76px minmax(0, 1fr);
gap: 10px;
}
.claim-role-panel-item span {
font-size: 12px;
}
.claim-role-panel-item strong {
font-size: 16px;
}
.claim-action-row {
display: flex;
flex-direction: column;
align-items: stretch;
}
.claim-action-row .ant-space-item,
.claim-action-row .ant-btn,
.claim-action-tooltip-wrap {
width: 100%;
}
.claim-meta-footer {
justify-content: flex-start;
}
.claim-result-header {
display: grid;
}
}
@media (max-width: 480px) {
.claim-page {
padding: 12px;
gap: 10px;
}
.claim-header-card .ant-card-body,
.claim-content-card .ant-card-body {
gap: 12px;
}
.claim-header-copy {
padding-right: 112px;
}
.claim-header-copy h1 {
font-size: 22px;
}
.claim-step-indicator {
position: absolute;
top: 16px;
right: 16px;
max-width: 100px;
align-items: flex-end;
}
.claim-step-dot {
width: 26px;
height: 26px;
font-size: 12px;
}
.claim-step-dots {
gap: 5px;
}
.claim-step-progress-text {
text-align: right;
font-size: 12px;
}
.claim-uid-step-title.ant-typography {
font-size: 18px !important;
}
.claim-uid-guide-image {
max-height: 140px;
}
}
@media (max-width: 420px) {
.claim-header-copy {
padding-right: 124px;
}
.claim-header-copy h1 {
font-size: 22px;
}
.claim-header-copy p {
padding-right: 0;
}
.claim-step-indicator {
max-width: 116px;
}
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff