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

This commit is contained in:
卡若
2026-03-08 11:35:31 +08:00
parent aff66361fe
commit f6a5b25a06

View File

@@ -188,30 +188,33 @@ export function CKBStatsTab({ onSwitchTab }: CKBStatsTabProps = {}) {
return ( return (
<div className="space-y-6"> <div className="space-y-6">
{/* 核心数据 */} {/* 核心数据 — 可点击跳转到对应页面 */}
<div className="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-4"> <div className="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-4">
<Card className="bg-[#0f2137] border-gray-700/50"> <Card className="bg-[#0f2137] border-gray-700/50 cursor-pointer hover:border-[#38bdac]/50 transition-colors" onClick={() => onSwitchTab?.('partner')}>
<CardContent className="p-5"> <CardContent className="p-5">
<div className="flex items-center gap-3"> <div className="flex items-center gap-3">
<div className="w-10 h-10 rounded-lg bg-[#38bdac]/20 flex items-center justify-center"><Users className="w-5 h-5 text-[#38bdac]" /></div> <div className="w-10 h-10 rounded-lg bg-[#38bdac]/20 flex items-center justify-center"><Users className="w-5 h-5 text-[#38bdac]" /></div>
<div><p className="text-gray-400 text-xs"></p><p className="text-xl font-bold text-white">{v(stats?.totalMatches)}</p></div> <div><p className="text-gray-400 text-xs"></p><p className="text-xl font-bold text-white">{v(stats?.totalMatches)}</p></div>
</div> </div>
<p className="text-[#38bdac] text-[10px] mt-2"> </p>
</CardContent> </CardContent>
</Card> </Card>
<Card className="bg-[#0f2137] border-gray-700/50"> <Card className="bg-[#0f2137] border-gray-700/50 cursor-pointer hover:border-yellow-500/50 transition-colors" onClick={() => onSwitchTab?.('partner')}>
<CardContent className="p-5"> <CardContent className="p-5">
<div className="flex items-center gap-3"> <div className="flex items-center gap-3">
<div className="w-10 h-10 rounded-lg bg-yellow-500/20 flex items-center justify-center"><Zap className="w-5 h-5 text-yellow-400" /></div> <div className="w-10 h-10 rounded-lg bg-yellow-500/20 flex items-center justify-center"><Zap className="w-5 h-5 text-yellow-400" /></div>
<div><p className="text-gray-400 text-xs"></p><p className="text-xl font-bold text-white">{v(stats?.todayMatches)}</p></div> <div><p className="text-gray-400 text-xs"></p><p className="text-xl font-bold text-white">{v(stats?.todayMatches)}</p></div>
</div> </div>
<p className="text-yellow-400/60 text-[10px] mt-2"> </p>
</CardContent> </CardContent>
</Card> </Card>
<Card className="bg-[#0f2137] border-gray-700/50"> <Card className="bg-[#0f2137] border-gray-700/50 cursor-pointer hover:border-blue-500/50 transition-colors" onClick={() => window.location.href = '/users'}>
<CardContent className="p-5"> <CardContent className="p-5">
<div className="flex items-center gap-3"> <div className="flex items-center gap-3">
<div className="w-10 h-10 rounded-lg bg-blue-500/20 flex items-center justify-center"><UserCheck className="w-5 h-5 text-blue-400" /></div> <div className="w-10 h-10 rounded-lg bg-blue-500/20 flex items-center justify-center"><UserCheck className="w-5 h-5 text-blue-400" /></div>
<div><p className="text-gray-400 text-xs"></p><p className="text-xl font-bold text-white">{v(stats?.uniqueUsers)}</p></div> <div><p className="text-gray-400 text-xs"></p><p className="text-xl font-bold text-white">{v(stats?.uniqueUsers)}</p></div>
</div> </div>
<p className="text-blue-400/60 text-[10px] mt-2"> </p>
</CardContent> </CardContent>
</Card> </Card>
<Card className="bg-[#0f2137] border-gray-700/50"> <Card className="bg-[#0f2137] border-gray-700/50">