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

This commit is contained in:
卡若
2026-03-08 16:41:26 +08:00
parent 7abb17b30c
commit ec1af0fdb5

View File

@@ -148,16 +148,16 @@ export function CKBStatsTab({ onSwitchTab }: Props = {}) {
</div>
)}
{/* ===== 区块二:存客宝数据 ===== */}
{/* ===== 区块二:AI 获客数据 ===== */}
<div>
<h3 className="text-lg font-semibold text-white mb-4 flex items-center gap-2">
<Link2 className="w-5 h-5 text-orange-400" />
<Link2 className="w-5 h-5 text-orange-400" /> AI
</h3>
<div className="grid grid-cols-2 lg:grid-cols-4 gap-5 mb-6">
<div className="grid grid-cols-2 lg:grid-cols-3 gap-5 mb-6">
<Card className="bg-[#0f2137] border-orange-500/20">
<CardContent className="p-6">
<p className="text-gray-400 text-sm mb-2">CKB 线</p>
<p className="text-gray-400 text-sm mb-2">线</p>
<p className="text-3xl font-bold text-white">{isLoading ? '—' : (ckbStats?.ckbTotal ?? 0)}</p>
</CardContent>
</Card>
@@ -167,19 +167,11 @@ export function CKBStatsTab({ onSwitchTab }: Props = {}) {
<p className="text-3xl font-bold text-white">{isLoading ? '—' : (ckbStats?.withContact ?? 0)}</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={() => onSwitchTab?.('ckb')}>
<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 ? ((ckbStats.withContact / ckbStats.ckbTotal) * 100).toFixed(0) + '%' : '0%')}
</p>
</CardContent>
</Card>
<Card className="bg-[#0f2137] border-orange-500/20">
<CardContent className="p-6">
<p className="text-gray-400 text-sm mb-2">API </p>
<p className="text-sm font-mono text-gray-400 mt-1 truncate">{ckbStats?.ckbApiUrl || 'ckbapi.quwanzhi.com'}</p>
<p className="text-xs text-gray-500 mt-1">Key: {ckbStats?.ckbApiKey || '...'}</p>
<p className="text-gray-400 text-sm mb-2">AI </p>
<p className="text-xl font-bold text-orange-400"> </p>
<p className="text-gray-500 text-xs mt-2"> · · API </p>
</CardContent>
</Card>
</div>