sync: soul-admin 页面 | 原因: 前端页面修改

This commit is contained in:
卡若
2026-03-08 16:55:29 +08:00
parent dedaf1619d
commit b9b100689b

View File

@@ -26,9 +26,12 @@ interface CKBPlanStats {
const typeLabels: Record<string, string> = { partner: '找伙伴', investor: '资源对接', mentor: '导师顾问', team: '团队招募' }
const typeIcons: Record<string, string> = { partner: '⭐', investor: '👥', mentor: '❤️', team: '🎮' }
interface Props { onSwitchTab?: (tabId: string) => void }
interface Props {
onSwitchTab?: (tabId: string) => void
onOpenCKB?: () => void
}
export function CKBStatsTab({ onSwitchTab }: Props = {}) {
export function CKBStatsTab({ onSwitchTab, onOpenCKB }: Props = {}) {
const navigate = useNavigate()
const [stats, setStats] = useState<MatchStats | null>(null)
const [ckbStats, setCkbStats] = useState<CKBPlanStats | null>(null)
@@ -155,19 +158,21 @@ export function CKBStatsTab({ onSwitchTab }: Props = {}) {
</h3>
<div className="grid grid-cols-2 lg:grid-cols-3 gap-5 mb-6">
<Card className="bg-[#0f2137] border-orange-500/20">
<Card className="bg-[#0f2137] border-orange-500/20 cursor-pointer hover:border-orange-500/50 transition-colors" onClick={() => onOpenCKB?.()}>
<CardContent className="p-6">
<p className="text-gray-400 text-sm mb-2">线</p>
<p className="text-3xl font-bold text-white">{isLoading ? '—' : (ckbStats?.ckbTotal ?? 0)}</p>
<p className="text-orange-400/60 text-xs mt-2"> </p>
</CardContent>
</Card>
<Card className="bg-[#0f2137] border-orange-500/20">
<Card className="bg-[#0f2137] border-orange-500/20 cursor-pointer hover:border-orange-500/50 transition-colors" onClick={() => onOpenCKB?.()}>
<CardContent className="p-6">
<p className="text-gray-400 text-sm mb-2"></p>
<p className="text-3xl font-bold text-white">{isLoading ? '—' : (ckbStats?.withContact ?? 0)}</p>
<p className="text-orange-400/60 text-xs mt-2"> </p>
</CardContent>
</Card>
<Card className="bg-[#0f2137] border-orange-500/20 cursor-pointer hover:border-orange-500/50 transition-colors" onClick={() => onSwitchTab?.('ckb')}>
<Card className="bg-[#0f2137] border-orange-500/20 cursor-pointer hover:border-orange-500/50 transition-colors" onClick={() => onOpenCKB?.()}>
<CardContent className="p-6">
<p className="text-gray-400 text-sm mb-2">AI </p>
<p className="text-xl font-bold text-orange-400"> </p>