更新Company页面的UI为FUI风格

This commit is contained in:
2025-12-22 11:08:45 +08:00
parent 96c94eaec4
commit efe5f45e31

View File

@@ -135,6 +135,18 @@ const MainlineCard = React.memo(({
> >
{mainline.lv2_name || "其他"} {mainline.lv2_name || "其他"}
</Text> </Text>
{/* 涨跌幅显示 - 在概念名称旁边 */}
{mainline.avg_change_pct != null && (
<Text
fontSize="sm"
fontWeight="bold"
color={mainline.avg_change_pct >= 0 ? "#fc8181" : "#68d391"}
flexShrink={0}
>
{mainline.avg_change_pct >= 0 ? "+" : ""}
{mainline.avg_change_pct.toFixed(2)}%
</Text>
)}
<Badge <Badge
colorScheme={colorScheme} colorScheme={colorScheme}
fontSize="xs" fontSize="xs"
@@ -145,24 +157,11 @@ const MainlineCard = React.memo(({
{mainline.event_count} {mainline.event_count}
</Badge> </Badge>
</HStack> </HStack>
<HStack spacing={2}> {mainline.lv1_name && (
{mainline.lv1_name && ( <Text fontSize="xs" color={COLORS.secondaryTextColor} noOfLines={1}>
<Text fontSize="xs" color={COLORS.secondaryTextColor} noOfLines={1}> {mainline.lv1_name}
{mainline.lv1_name} </Text>
</Text> )}
)}
{/* 涨跌幅显示 */}
{mainline.avg_change_pct != null && (
<Text
fontSize="xs"
fontWeight="bold"
color={mainline.avg_change_pct >= 0 ? "#fc8181" : "#68d391"}
>
{mainline.avg_change_pct >= 0 ? "+" : ""}
{mainline.avg_change_pct.toFixed(2)}%
</Text>
)}
</HStack>
</VStack> </VStack>
<Icon <Icon
as={isExpanded ? ChevronUpIcon : ChevronDownIcon} as={isExpanded ? ChevronUpIcon : ChevronDownIcon}