sync: soul-admin 组件 | 原因: 前端组件修改
This commit is contained in:
@@ -761,33 +761,57 @@ export function UserDetailModal({
|
||||
</div>
|
||||
</TabsContent>
|
||||
|
||||
{/* ===== 神射手 ===== */}
|
||||
{/* ===== 用户资料完善 ===== */}
|
||||
<TabsContent value="shensheshou" className="flex-1 overflow-auto space-y-4">
|
||||
<div className="p-4 bg-[#0a1628] rounded-lg">
|
||||
<div className="flex items-center gap-2 mb-3">
|
||||
<Zap className="w-5 h-5 text-[#38bdac]" />
|
||||
<span className="text-white font-medium">神射手数据查询</span>
|
||||
<span className="text-gray-500 text-xs">通过手机号 / OpenID 查询用户画像</span>
|
||||
<span className="text-white font-medium">用户资料完善</span>
|
||||
<span className="text-gray-500 text-xs">通过多维度查询神射手数据,自动回填用户基础信息</span>
|
||||
</div>
|
||||
<div className="flex gap-2 mb-4">
|
||||
<Input
|
||||
className="bg-[#162840] border-gray-700 text-white flex-1"
|
||||
placeholder="手机号(自动填入已绑定手机)"
|
||||
value={sssQueryPhone}
|
||||
onChange={(e) => setSssQueryPhone(e.target.value)}
|
||||
/>
|
||||
<Button
|
||||
onClick={handleSSSQuery}
|
||||
disabled={sssLoading}
|
||||
className="bg-[#38bdac] hover:bg-[#2da396] text-white"
|
||||
>
|
||||
{sssLoading ? (
|
||||
<><RefreshCw className="w-4 h-4 mr-1 animate-spin" /> 查询中</>
|
||||
) : (
|
||||
<><Search className="w-4 h-4 mr-1" /> 查询</>
|
||||
)}
|
||||
</Button>
|
||||
{/* 多维度查询输入 */}
|
||||
<div className="grid grid-cols-2 gap-2 mb-3">
|
||||
<div>
|
||||
<Label className="text-gray-500 text-xs mb-1 block">手机号</Label>
|
||||
<Input
|
||||
className="bg-[#162840] border-gray-700 text-white"
|
||||
placeholder="11位手机号"
|
||||
value={sssQueryPhone}
|
||||
onChange={(e) => setSssQueryPhone(e.target.value)}
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<Label className="text-gray-500 text-xs mb-1 block">微信号</Label>
|
||||
<Input
|
||||
className="bg-[#162840] border-gray-700 text-white"
|
||||
placeholder="微信 ID"
|
||||
value={sssQueryWechatId}
|
||||
onChange={(e) => setSssQueryWechatId(e.target.value)}
|
||||
/>
|
||||
</div>
|
||||
<div className="col-span-2">
|
||||
<Label className="text-gray-500 text-xs mb-1 block">微信 OpenID</Label>
|
||||
<Input
|
||||
className="bg-[#162840] border-gray-700 text-white"
|
||||
placeholder="openid_xxxx(自动填入)"
|
||||
value={sssQueryOpenId}
|
||||
onChange={(e) => setSssQueryOpenId(e.target.value)}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<Button
|
||||
onClick={handleSSSQuery}
|
||||
disabled={sssLoading}
|
||||
className="w-full bg-[#38bdac] hover:bg-[#2da396] text-white"
|
||||
>
|
||||
{sssLoading ? (
|
||||
<><RefreshCw className="w-4 h-4 mr-1 animate-spin" /> 查询并自动回填中...</>
|
||||
) : (
|
||||
<><Search className="w-4 h-4 mr-1" /> 查询并自动完善用户资料</>
|
||||
)}
|
||||
</Button>
|
||||
<p className="text-gray-600 text-xs mt-2">查询成功后,神射手返回的标签将自动同步到该用户</p>
|
||||
</div>
|
||||
{sssError && (
|
||||
<div className="p-3 bg-red-500/10 border border-red-500/30 rounded-lg text-red-400 text-sm mb-3">
|
||||
{sssError}
|
||||
|
||||
Reference in New Issue
Block a user