更新ios

This commit is contained in:
2026-01-23 16:15:23 +08:00
parent c7f340f0ed
commit 4520dc206a
9 changed files with 259 additions and 33 deletions

View File

@@ -1469,7 +1469,7 @@
<div
class="flex justify-between items-center mt-11 py-5 border-t border-line max-md:flex-col max-md:items-start">
<div class="flex flex-col gap-1 max-md:mb-3">
<div class="text-description-3 text-description">© 2024 价值前沿. 保留所有权利.</div>
<div class="text-description-3 text-description cursor-pointer hover:text-white transition-colors" title="办公地址北京市海淀区北四环西路65号1614层1605">© 2026 北京价值前沿科技有限公司</div>
<div class="flex flex-col gap-0.5 text-description-3 text-description">
<a class="transition-colors hover:text-white" href="https://beian.mps.gov.cn/#/query/webSearch"
target="_blank">京公网安备11010802046286号</a>

View File

@@ -692,7 +692,7 @@
<div
class="flex justify-between items-center mt-11 py-5 border-t border-line max-md:flex-col max-md:items-start">
<div class="flex flex-col gap-1 max-md:mb-3">
<div class="text-description-3 text-description">© 2024 价值前沿. 保留所有权利.</div>
<div class="text-description-3 text-description cursor-pointer hover:text-white transition-colors" title="办公地址北京市海淀区北四环西路65号1614层1605">© 2026 北京价值前沿科技有限公司</div>
<div class="flex flex-col gap-0.5 text-description-3 text-description">
<a class="transition-colors hover:text-white" href="https://beian.mps.gov.cn/#/query/webSearch"
target="_blank">京公网安备11010802046286号</a>

View File

@@ -31,8 +31,11 @@ const Footer = () => (
</nav>
</div>
<div className="flex justify-center items-center">
<p className="caption text-n-4 lg:block">
© 2024 价值前沿. 保留所有权利.
<p
className="caption text-n-4 lg:block cursor-pointer hover:text-n-3 transition-colors"
title="办公地址北京市海淀区北四环西路65号1614层1605"
>
© 2026 北京价值前沿科技有限公司
</p>
</div>
</Section>

View File

@@ -68,7 +68,9 @@ const NavStockSearch = memo(() => {
// 选择股票 - 跳转到详情页
const handleSelectStock = useCallback((stock) => {
clearSearch();
navigate(`/company/${stock.stock_code}`);
// 提取纯数字股票代码(去掉 .SZ/.SH 后缀)
const scode = stock.stock_code.split('.')[0];
navigate(`/company?scode=${scode}`);
}, [navigate, clearSearch]);
// 处理键盘事件

View File

@@ -1,5 +1,5 @@
import React from 'react';
import { Box, VStack, HStack, Text, Link, useColorModeValue } from '@chakra-ui/react';
import { Box, VStack, HStack, Text, Link, useColorModeValue, Tooltip } from '@chakra-ui/react';
import RiskDisclaimer from '../components/RiskDisclaimer';
import { LAYOUT_PADDING, Z_INDEX } from './config/layoutConfig';
@@ -12,9 +12,15 @@ const AppFooter = () => {
<Box bg={useColorModeValue('gray.100', 'gray.800')} py={2} px={LAYOUT_PADDING.x} zIndex={Z_INDEX.FOOTER} position="relative">
<VStack spacing={1}>
<RiskDisclaimer />
<Text color="gray.500" fontSize="sm">
© 2024 价值前沿. 保留所有权利.
<Tooltip
label="办公地址北京市海淀区北四环西路65号1614层1605"
placement="top"
hasArrow
>
<Text color="gray.500" fontSize="sm" cursor="pointer" _hover={{ color: 'gray.600' }}>
© 2026 北京价值前沿科技有限公司
</Text>
</Tooltip>
<HStack spacing={1} fontSize="xs" color="gray.400">
<Link
href="https://beian.mps.gov.cn/#/query/webSearch?code=11010802046286"

View File

@@ -0,0 +1,195 @@
// 涨停概览紧凑组件
// 将热门关键词和统计数据合并成一行紧凑布局
import React from "react";
import { FireOutlined } from "@ant-design/icons";
/**
* 获取连板颜色
*/
const getContinuousColor = (key) => {
if (key === "4连板+") return "#ff4d4f";
if (key === "3连板") return "#fa541c";
if (key === "2连板") return "#fa8c16";
return "#52c41a";
};
/**
* 获取时间颜色
*/
const getTimeColor = (key) => {
if (key === "秒板") return "#ff4d4f";
if (key === "早盘") return "#fa8c16";
if (key === "盘中") return "#52c41a";
return "#888";
};
/**
* 获取关键词样式(根据排名)
*/
const getKeywordStyle = (index) => {
if (index < 3) {
return {
fontSize: "12px",
fontWeight: "bold",
background: "linear-gradient(135deg, rgba(255,215,0,0.3) 0%, rgba(255,165,0,0.2) 100%)",
border: "1px solid rgba(255,215,0,0.5)",
color: "#FFD700",
padding: "2px 8px",
};
}
if (index < 6) {
return {
fontSize: "11px",
fontWeight: "600",
background: "rgba(255,215,0,0.15)",
border: "1px solid rgba(255,215,0,0.3)",
color: "#D4A84B",
padding: "2px 6px",
};
}
return {
fontSize: "11px",
fontWeight: "normal",
background: "rgba(255,255,255,0.08)",
border: "1px solid rgba(255,255,255,0.15)",
color: "#888",
padding: "2px 6px",
};
};
/**
* 涨停概览紧凑组件
* @param {Object} props
* @param {Array} props.keywords - 关键词数组
* @param {Object} props.stats - 统计数据
*/
const CompactZTOverview = ({ keywords = [], stats }) => {
if (!stats && (!keywords || keywords.length === 0)) {
return null;
}
return (
<div
style={{
display: "flex",
gap: "12px",
padding: "10px 12px",
background: "linear-gradient(135deg, rgba(255, 215, 0, 0.06) 0%, rgba(255, 140, 0, 0.03) 100%)",
borderRadius: "10px",
border: "1px solid rgba(255, 215, 0, 0.15)",
alignItems: "center",
flexWrap: "wrap",
}}
>
{/* 热门关键词 - 紧凑版 */}
{keywords && keywords.length > 0 && (
<div style={{ display: "flex", alignItems: "center", gap: "6px", flex: "1 1 auto", minWidth: "200px" }}>
<div
style={{
display: "flex",
alignItems: "center",
gap: "4px",
padding: "3px 8px",
background: "rgba(255,215,0,0.15)",
borderRadius: "6px",
flexShrink: 0,
}}
>
<FireOutlined style={{ color: "#FFD700", fontSize: "12px" }} />
<span style={{ fontSize: "11px", fontWeight: "bold", color: "gold" }}>
热词
</span>
</div>
<div style={{ display: "flex", gap: "4px", flexWrap: "wrap", alignItems: "center" }}>
{keywords.slice(0, 8).map((kw, idx) => {
const style = getKeywordStyle(idx);
return (
<span
key={kw.name}
style={{
...style,
borderRadius: "9999px",
whiteSpace: "nowrap",
}}
>
{kw.name}
</span>
);
})}
{keywords.length > 8 && (
<span style={{ fontSize: "10px", color: "rgba(255,255,255,0.4)" }}>
+{keywords.length - 8}
</span>
)}
</div>
</div>
)}
{/* 分隔线 */}
{keywords && keywords.length > 0 && stats && (
<div style={{ width: "1px", height: "32px", background: "rgba(255,255,255,0.1)", flexShrink: 0 }} />
)}
{/* 统计数据 - 紧凑版 */}
{stats && (
<div style={{ display: "flex", gap: "16px", alignItems: "center", flexShrink: 0 }}>
{/* 连板分布 */}
<div style={{ display: "flex", alignItems: "center", gap: "8px" }}>
<span style={{ fontSize: "10px", color: "rgba(255,255,255,0.4)" }}>连板</span>
<div style={{ display: "flex", gap: "6px" }}>
{Object.entries(stats.continuousStats).map(([key, value]) => (
<div key={key} style={{ display: "flex", alignItems: "baseline", gap: "2px" }}>
<span style={{ fontSize: "14px", fontWeight: "bold", color: getContinuousColor(key) }}>
{value}
</span>
<span style={{ fontSize: "9px", color: "rgba(255,255,255,0.4)" }}>
{key.replace("连板", "").replace("+", "+")}
</span>
</div>
))}
</div>
</div>
{/* 分隔点 */}
<span style={{ color: "rgba(255,255,255,0.2)" }}>·</span>
{/* 封板时间 */}
<div style={{ display: "flex", alignItems: "center", gap: "8px" }}>
<span style={{ fontSize: "10px", color: "rgba(255,255,255,0.4)" }}>封板</span>
<div style={{ display: "flex", gap: "6px" }}>
{Object.entries(stats.timeStats).map(([key, value]) => (
<div key={key} style={{ display: "flex", alignItems: "baseline", gap: "2px" }}>
<span style={{ fontSize: "14px", fontWeight: "bold", color: getTimeColor(key) }}>
{value}
</span>
<span style={{ fontSize: "9px", color: "rgba(255,255,255,0.4)" }}>
{key}
</span>
</div>
))}
</div>
</div>
{/* 公告驱动 - 仅在有数据时显示 */}
{stats.announcementCount > 0 && (
<>
<span style={{ color: "rgba(255,255,255,0.2)" }}>·</span>
<div style={{ display: "flex", alignItems: "baseline", gap: "4px" }}>
<span style={{ fontSize: "10px", color: "rgba(255,255,255,0.4)" }}>公告</span>
<span style={{ fontSize: "14px", fontWeight: "bold", color: "#A855F7" }}>
{stats.announcementCount}
</span>
<span style={{ fontSize: "9px", color: "rgba(255,255,255,0.4)" }}>
({stats.announcementRatio}%)
</span>
</div>
</>
)}
</div>
)}
</div>
);
};
export default CompactZTOverview;

View File

@@ -35,8 +35,7 @@ import {
SectorStocksModal,
ZTSectorView,
EventsTabView,
HotKeywordsCloud,
ZTStatsCards,
CompactZTOverview,
} from "../index";
import {
createStockColumns,
@@ -584,14 +583,11 @@ const DetailModal = ({
style={{
display: "flex",
flexDirection: "column",
gap: "20px",
gap: "12px",
}}
>
{/* 热门关键词 */}
<HotKeywordsCloud keywords={hotKeywords} />
{/* 涨停统计卡片 */}
<ZTStatsCards stats={ztStats} />
{/* 涨停概览 - 紧凑版(热门关键词 + 统计数据一行显示) */}
<CompactZTOverview keywords={hotKeywords} stats={ztStats} />
{/* 视图切换按钮 - 更精致的样式 */}
<div

View File

@@ -2,8 +2,19 @@
// 使用 Ant Design Modal 保持与现有代码风格一致
import React from "react";
import { Modal as AntModal, Tag, ConfigProvider, theme } from "antd";
import { FileText } from "lucide-react";
import { FileText, Clock } from "lucide-react";
import { GLASS_BLUR } from "@/constants/glassConfig";
import dayjs from "dayjs";
/**
* 格式化事件时间
*/
const formatEventTime = (time) => {
if (!time) return null;
const d = dayjs(time);
if (!d.isValid()) return null;
return d.format("MM-DD HH:mm");
};
/**
* 获取相关度颜色
@@ -115,10 +126,11 @@ const RelatedEventsModal = ({
}}
>
<div style={{ display: "flex", flexDirection: "column", gap: "12px" }}>
{/* 标题 */}
{/* 标题 + 时间 */}
<div style={{ display: "flex", justifyContent: "space-between", alignItems: "flex-start" }}>
<div style={{ display: "flex", gap: "8px", flex: 1 }}>
<FileText size={16} color="#60A5FA" style={{ flexShrink: 0 }} />
<FileText size={16} color="#60A5FA" style={{ flexShrink: 0, marginTop: "2px" }} />
<div style={{ flex: 1 }}>
<span
style={{
fontSize: "14px",
@@ -132,6 +144,16 @@ const RelatedEventsModal = ({
>
{event.title}
</span>
{/* 事件时间 */}
{(event.created_at || event.event_time || event.publish_time) && (
<div style={{ display: "flex", alignItems: "center", gap: "4px", marginTop: "4px" }}>
<Clock size={12} color="rgba(255,255,255,0.4)" />
<span style={{ fontSize: "11px", color: "rgba(255,255,255,0.4)" }}>
{formatEventTime(event.created_at || event.event_time || event.publish_time)}
</span>
</div>
)}
</div>
</div>
<span
style={{
@@ -141,6 +163,7 @@ const RelatedEventsModal = ({
padding: "2px 8px",
borderRadius: "6px",
flexShrink: 0,
marginLeft: "8px",
}}
>
相关度 {event.relevance_score || 0}

View File

@@ -5,3 +5,4 @@ export { default as InfoModal } from "./InfoModal";
export { default as CombinedCalendar } from "./CombinedCalendar";
export { default as HotKeywordsCloud } from "./HotKeywordsCloud";
export { default as ZTStatsCards } from "./ZTStatsCards";
export { default as CompactZTOverview } from "./CompactZTOverview";