Merge pull request '空间动态审核加上发帖人' (#4) from zone into main

Reviewed-on: https://git.wishpal.cn/wishpal_ironfan/tiefen_space_op/pulls/4
This commit is contained in:
yezian 2024-04-28 20:14:05 +08:00
commit b1c2154d30
1 changed files with 24 additions and 4 deletions

View File

@ -14,6 +14,22 @@ const ZonePostMachineReviewContent = (props) => {
const current = props.current; const current = props.current;
// //
const columns = [ const columns = [
{
title: "发帖人",
dataIndex: "creator",
key: "creator",
render: (data) => (
<div>
<Image src={data.avatar.images[0].urls[0]} width={50} />
<p>
ID<span className="text-red-400">{data.user_id}</span>
</p>
<p>
昵称<span className="text-red-400">{data.name}</span>
</p>
</div>
),
},
{ {
title: "动态内容", title: "动态内容",
dataIndex: "content", dataIndex: "content",
@ -44,15 +60,19 @@ const ZonePostMachineReviewContent = (props) => {
render: (data) => ( render: (data) => (
<div className="flex flex-col"> <div className="flex flex-col">
<p>文案审核结果</p> <p>文案审核结果</p>
<p className="text-green-400">{data.text_audit_opinion}</p> <p className="text-green-400">
{data.text_audit_opinion ? data.text_audit_opinion : "通过"}
</p>
<hr className="w-full" /> <hr className="w-full" />
<p>媒体审核结果</p> <p>媒体审核结果</p>
<p className="text-green-400">{data.image_audit_opinion}</p> <p className="text-green-400">
{data.image_audit_opinion ? data.image_audit_opinion : "通过"}
</p>
</div> </div>
), ),
}, },
{ {
title: "提交时间", title: "发布时间",
dataIndex: "submitTime", dataIndex: "submitTime",
key: "submitTime", key: "submitTime",
}, },
@ -124,7 +144,6 @@ const ZonePostMachineReviewContent = (props) => {
}), }),
}); });
const _data = await response.json(); const _data = await response.json();
console.log(_data);
if (_data.ret === -1) { if (_data.ret === -1) {
alert(_data.msg); alert(_data.msg);
return; return;
@ -184,6 +203,7 @@ const ZonePostMachineReviewContent = (props) => {
return { return {
key: index, key: index,
momentId: item.id, momentId: item.id,
creator: item.streamer_ext,
content: { content: {
media: item.media_component, media: item.media_component,
text: item.text, text: item.text,