{eventDetail && (
<>
{moment(eventDetail.created_at).format('YYYY-MM-DD HH:mm:ss')}
{eventDetail.creator?.username || 'Anonymous'}
{eventDetail.view_count || 0}
{renderPriceTag(eventDetail.related_avg_chg, '平均涨幅')}
{renderPriceTag(eventDetail.related_max_chg, '最大涨幅')}
{renderPriceTag(eventDetail.related_week_chg, '周涨幅')}
{eventDetail.description}(AI合成)
{eventDetail.keywords && eventDetail.keywords.length > 0 && (
相关概念
{eventDetail.keywords.map((keyword, index) => (
{keyword}
))}
)}
{eventDetail.related_stocks && eventDetail.related_stocks.length > 0 && (
相关股票
(
{
const stockCode = stock.stock_code.split('.')[0];
window.open(`https://valuefrontier.cn/company?scode=${stockCode}`, '_blank');
}}
>
股票详情
]}
>
{stock.change !== null && (
0 ? 'red' : 'green'}>
{stock.change > 0 ? '+' : ''}{stock.change.toFixed(2)}%
)}
)}
/>
)}
{/* 讨论区 */}
讨论区
{/* 评论列表 */}
{comments.length === 0 ? (
) : (
(
{comment.author?.username || 'Anonymous'}
{moment(comment.created_at).format('MM-DD HH:mm')}
}
description={
{comment.content}
}
/>
)}
/>
)}
{/* 评论输入框(登录后可用,未登录后端会返回401) */}
发表评论
setCommentText(e.target.value)}
maxLength={500}
showCount
/>
>
)}