fix: 斗鱼协作台账展示主页截图

This commit is contained in:
yml2213
2026-10-20 20:30:19 +08:00
parent 71574908ff
commit f21362dfe3
+31 -1
View File
@@ -922,6 +922,36 @@ export default function DouyuCollabPage() {
</Space>
),
},
{
title: '主页截图',
width: 110,
align: 'center',
render: (_, row) => {
const urls = row.home_image_urls || [];
if (urls.length === 0) {
return <Text type="secondary">未上传</Text>;
}
const first = row.home_image_thumb_urls?.[0] || urls[0];
return (
<Image.PreviewGroup items={urls}>
<Space size={4}>
<Image
src={first}
width={44}
height={44}
style={{ objectFit: 'cover', borderRadius: 4 }}
alt="主页截图"
/>
{urls.length > 1 && (
<Tooltip title={`共 ${urls.length} 张,点缩略图查看全部`}>
<Tag style={{ margin: 0 }}>+{urls.length - 1}</Tag>
</Tooltip>
)}
</Space>
</Image.PreviewGroup>
);
},
},
{
title: '礼包 / 积分',
width: 200,
@@ -1355,7 +1385,7 @@ export default function DouyuCollabPage() {
loading={loading}
columns={columns}
dataSource={orders}
scroll={{ x: 1920 }}
scroll={{ x: 2040 }}
rowSelection={{
selectedRowKeys,
onChange: (keys) => setSelectedRowKeys(keys),