feat(fulfillment): 工作台增加买家主页列并重命名绑定列
- 买家主页截图放在用户角色绑定右侧,支持缩略图预览 - 绑定列改名用户角色绑定,便于与客户资料对比
This commit is contained in:
@@ -1358,7 +1358,7 @@ export default function PlatformFulfillmentPage() {
|
||||
),
|
||||
},
|
||||
{
|
||||
title: '绑定',
|
||||
title: '用户角色绑定',
|
||||
key: 'binding',
|
||||
width: 180,
|
||||
render: (_, task) => (
|
||||
@@ -1375,6 +1375,31 @@ export default function PlatformFulfillmentPage() {
|
||||
</Space>
|
||||
),
|
||||
},
|
||||
{
|
||||
title: '买家主页',
|
||||
key: 'customer_home_images',
|
||||
width: 120,
|
||||
render: (_, task) => {
|
||||
const images = task.customerProfile?.homeImages || [];
|
||||
if (images.length === 0) return <Text type="secondary">未上传</Text>;
|
||||
return (
|
||||
<Image.PreviewGroup items={images.map((item) => item.url)}>
|
||||
<Space size={4} wrap>
|
||||
{images.slice(0, 2).map((item, index) => (
|
||||
<Image
|
||||
key={`${item.objectKey || item.url}-${index}`}
|
||||
src={item.thumbnailUrl || item.url}
|
||||
width={44}
|
||||
height={44}
|
||||
style={{ objectFit: 'cover', borderRadius: 4 }}
|
||||
alt={`买家主页截图 ${index + 1}`}
|
||||
/>
|
||||
))}
|
||||
</Space>
|
||||
</Image.PreviewGroup>
|
||||
);
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '状态',
|
||||
key: 'status',
|
||||
|
||||
Reference in New Issue
Block a user