sync: soul-admin 页面 | 原因: 前端页面修改
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user