添加用户的看多/看空逻辑
This commit is contained in:
@@ -252,27 +252,32 @@ const HorizontalDynamicNewsEventCard = React.memo(({
|
|||||||
</Box>
|
</Box>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
|
||||||
{/* 第二行:涨跌幅数据 + 互动指标(右侧) */}
|
{/* 第二行:涨跌幅数据(左) + 互动指标(右) */}
|
||||||
<HStack justify="space-between" align="center" w="full">
|
<HStack justify="space-between" align="center" w="full">
|
||||||
<StockChangeIndicators
|
{/* 左侧:涨跌幅数据,没有时用空盒子占位 */}
|
||||||
maxChange={event.related_max_chg}
|
<Box flex="1">
|
||||||
avgChange={event.related_avg_chg}
|
<StockChangeIndicators
|
||||||
expectationScore={event.expectation_surprise_score}
|
maxChange={event.related_max_chg}
|
||||||
size={indicatorSize}
|
avgChange={event.related_avg_chg}
|
||||||
/>
|
expectationScore={event.expectation_surprise_score}
|
||||||
|
size={indicatorSize}
|
||||||
{/* 互动指标放右侧 */}
|
|
||||||
{showEngagement && (
|
|
||||||
<EventEngagement
|
|
||||||
eventId={event.id}
|
|
||||||
viewCount={event.view_count}
|
|
||||||
followerCount={event.follower_count}
|
|
||||||
bullishCount={event.bullish_count}
|
|
||||||
bearishCount={event.bearish_count}
|
|
||||||
userVote={event.user_vote}
|
|
||||||
size="md"
|
|
||||||
onVoteChange={onVoteChange}
|
|
||||||
/>
|
/>
|
||||||
|
</Box>
|
||||||
|
|
||||||
|
{/* 右侧:互动指标,始终靠右 */}
|
||||||
|
{showEngagement && (
|
||||||
|
<Box flexShrink={0}>
|
||||||
|
<EventEngagement
|
||||||
|
eventId={event.id}
|
||||||
|
viewCount={event.view_count}
|
||||||
|
followerCount={event.follower_count}
|
||||||
|
bullishCount={event.bullish_count}
|
||||||
|
bearishCount={event.bearish_count}
|
||||||
|
userVote={event.user_vote}
|
||||||
|
size="md"
|
||||||
|
onVoteChange={onVoteChange}
|
||||||
|
/>
|
||||||
|
</Box>
|
||||||
)}
|
)}
|
||||||
</HStack>
|
</HStack>
|
||||||
</VStack>
|
</VStack>
|
||||||
|
|||||||
Reference in New Issue
Block a user