style(worker-consignment): 优化寄卖卡片截图展示为紧凑单行并排布局

1. 将提报商品截图与赠送凭证截图重构为同一行紧凑胶囊栏,减少上下两行占用空间;
2. 分别保留商品截图与赠送凭证的张数、缩略图与大图预览画廊,视觉更精致。
This commit is contained in:
yml2213
2026-09-18 18:38:43 +08:00
parent c38f6dfbfd
commit 771deb221e
@@ -1103,52 +1103,54 @@ function ConsignmentRecordCard({
) : null} ) : null}
</Space> </Space>
) : null} ) : null}
{shots.length > 0 ? ( {shots.length > 0 || giftShots.length > 0 ? (
<div className="worker-consignment-record-shots" style={{ marginTop: 8 }}> <div style={{ display: 'flex', flexWrap: 'wrap', gap: 10, marginTop: 8, alignItems: 'center' }}>
<Typography.Text type="secondary" style={{ fontSize: 12, display: 'flex', alignItems: 'center', gap: 4, marginBottom: 4 }}> {shots.length > 0 ? (
<PictureOutlined /> <div style={{ display: 'inline-flex', alignItems: 'center', gap: 8, background: '#f8fafc', padding: '4px 10px', borderRadius: 6, border: '1px solid #e2e8f0' }}>
提报商品截图(共 {shots.length} 张): <Typography.Text type="secondary" style={{ fontSize: 12, display: 'flex', alignItems: 'center', gap: 4, whiteSpace: 'nowrap' }}>
</Typography.Text> <PictureOutlined />
<Image.PreviewGroup> 商品截图({shots.length})
<Space size={8} wrap> </Typography.Text>
{shots.map((src, i) => ( <Image.PreviewGroup>
<Image <Space size={6}>
key={`submission-shot-${src}-${i}`} {shots.map((src, i) => (
src={src} <Image
width={48} key={`submission-shot-${src}-${i}`}
height={48} src={src}
style={{ objectFit: 'cover', borderRadius: 6, border: '1px solid #e2e8f0' }} width={38}
/> height={38}
))} style={{ objectFit: 'cover', borderRadius: 4, border: '1px solid #e2e8f0' }}
</Space> />
</Image.PreviewGroup> ))}
</div> </Space>
) : null} </Image.PreviewGroup>
{giftShots.length > 0 ? ( </div>
<div className="worker-consignment-gift-shots-wrap" style={{ marginTop: 8, padding: '8px 12px', background: '#f0fdf4', borderRadius: 6, border: '1px solid #bbf7d0' }}> ) : null}
<Typography.Text strong style={{ fontSize: 13, color: '#15803d', display: 'flex', alignItems: 'center', gap: 6 }}> {giftShots.length > 0 ? (
<CheckCircleOutlined /> <div style={{ display: 'inline-flex', alignItems: 'center', gap: 8, background: '#f0fdf4', padding: '4px 10px', borderRadius: 6, border: '1px solid #bbf7d0' }}>
已提交赠送凭证(共 {giftShots.length} 张截图,等待客服验收): <Typography.Text strong style={{ fontSize: 12, color: '#15803d', display: 'flex', alignItems: 'center', gap: 4, whiteSpace: 'nowrap' }}>
</Typography.Text> <CheckCircleOutlined />
<div style={{ marginTop: 6 }}> 赠送凭证({giftShots.length})
<Image.PreviewGroup> </Typography.Text>
<Space size={8} wrap> <Image.PreviewGroup>
{giftShots.map((src, i) => ( <Space size={6}>
<Image {giftShots.map((src, i) => (
key={`gift-shot-${i}`} <Image
src={src} key={`gift-shot-${i}`}
width={52} src={src}
height={52} width={38}
style={{ objectFit: 'cover', borderRadius: 6, border: '1px solid #86efac' }} height={38}
/> style={{ objectFit: 'cover', borderRadius: 4, border: '1px solid #86efac' }}
))} />
</Space> ))}
</Image.PreviewGroup> </Space>
</div> </Image.PreviewGroup>
{record.giftEvidenceNote ? ( {record.giftEvidenceNote ? (
<Typography.Text type="secondary" style={{ fontSize: 12, display: 'block', marginTop: 4 }}> <Typography.Text type="secondary" style={{ fontSize: 11, color: '#4b5563', maxWidth: 160 }} ellipsis={{ tooltip: record.giftEvidenceNote }}>
赠送备注:{record.giftEvidenceNote} {record.giftEvidenceNote}
</Typography.Text> </Typography.Text>
) : null}
</div>
) : null} ) : null}
</div> </div>
) : null} ) : null}