sync: soul-admin 页面 | 原因: 前端页面修改
This commit is contained in:
@@ -147,21 +147,32 @@ export function MatchPoolTab() {
|
||||
<Label className="text-gray-300">匹配来源池</Label>
|
||||
<div className="grid grid-cols-1 md:grid-cols-3 gap-3">
|
||||
{([
|
||||
{ value: 'vip' as const, label: '超级个体(VIP会员)', desc: '仅匹配付费 ¥1980 的VIP会员', icon: '👑' },
|
||||
{ value: 'complete' as const, label: '完善资料用户', desc: '已完善联系方式+业务信息的用户', icon: '✅' },
|
||||
{ value: 'all' as const, label: '全部流量池', desc: '所有已注册用户(含未完善资料)', icon: '👥' },
|
||||
{ value: 'vip' as const, label: '超级个体(VIP会员)', desc: '仅匹配付费 ¥1980 的VIP会员', icon: '👑', countKey: 'vip' as const },
|
||||
{ value: 'complete' as const, label: '完善资料用户', desc: '已完善联系方式+业务信息的用户', icon: '✅', countKey: 'complete' as const },
|
||||
{ value: 'all' as const, label: '全部流量池', desc: '所有已注册用户(含未完善资料)', icon: '👥', countKey: 'all' as const },
|
||||
]).map(opt => {
|
||||
const ps = config.poolSettings ?? DEFAULT_POOL
|
||||
const selected = ps.poolSource === opt.value
|
||||
const count = poolCounts?.[opt.countKey]
|
||||
return (
|
||||
<button key={opt.value} type="button"
|
||||
onClick={() => setConfig({ ...config, poolSettings: { ...(config.poolSettings ?? DEFAULT_POOL), poolSource: opt.value } })}
|
||||
className={`p-4 rounded-lg border text-left transition-all ${selected ? 'border-[#38bdac] bg-[#38bdac]/10' : 'border-gray-700 bg-[#0a1628] hover:border-gray-600'}`}>
|
||||
<div className="flex items-center gap-2">
|
||||
<span className="text-xl">{opt.icon}</span>
|
||||
<span className={`text-sm font-medium ${selected ? 'text-[#38bdac]' : 'text-gray-300'}`}>{opt.label}</span>
|
||||
<div className="flex items-center justify-between">
|
||||
<div className="flex items-center gap-2">
|
||||
<span className="text-xl">{opt.icon}</span>
|
||||
<span className={`text-sm font-medium ${selected ? 'text-[#38bdac]' : 'text-gray-300'}`}>{opt.label}</span>
|
||||
</div>
|
||||
<span className="text-lg font-bold text-white">
|
||||
{poolCountsLoading ? '...' : (count ?? '-')}
|
||||
<span className="text-xs text-gray-500 font-normal ml-1">人</span>
|
||||
</span>
|
||||
</div>
|
||||
<p className="text-gray-500 text-xs mt-1">{opt.desc}</p>
|
||||
<p className="text-gray-500 text-xs mt-2">{opt.desc}</p>
|
||||
<a href={`/users?pool=${opt.value}`} onClick={e => e.stopPropagation()}
|
||||
className="text-[#38bdac] text-xs mt-2 inline-block hover:underline">
|
||||
查看用户列表 →
|
||||
</a>
|
||||
</button>
|
||||
)
|
||||
})}
|
||||
|
||||
Reference in New Issue
Block a user