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