Feature: 权限优化 - 名片弹窗按等级展示资料,高管可查IP及归属地
This commit is contained in:
@@ -317,7 +317,34 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="profile-detail" x-text="userInfo.sign || '这家伙很懒,什么也没留下'"></div>
|
||||
|
||||
{{-- 详细信息区 (等级高看等级低,或自己看自己时才有这些字段) --}}
|
||||
<div x-show="userInfo.exp_num !== undefined"
|
||||
style="margin-top: 12px; padding: 10px; background: #f8fafc; border-radius: 8px; font-size: 12px; color: #475569; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;">
|
||||
<div><span style="color: #94a3b8;">经验:</span><span x-text="userInfo.exp_num"
|
||||
style="font-weight: 600; color: #4f46e5;"></span></div>
|
||||
<div><span style="color: #94a3b8;">金币:</span><span x-text="userInfo.jjb"
|
||||
style="font-weight: 600; color: #d97706;"></span></div>
|
||||
<div><span style="color: #94a3b8;">魅力:</span><span x-text="userInfo.meili"
|
||||
style="font-weight: 600; color: #db2777;"></span></div>
|
||||
</div>
|
||||
|
||||
{{-- 管理员可见区域 (IP 与 归属地) --}}
|
||||
<div x-show="userInfo.last_ip !== undefined"
|
||||
style="margin-top: 8px; padding: 8px 10px; background: #fee2e2; border: 1px dashed #fca5a5; border-radius: 8px; font-size: 11px; color: #991b1b;">
|
||||
<div style="font-weight: bold; margin-bottom: 4px; display: flex; align-items: center; gap: 4px;">
|
||||
<span>🛡️</span> 管理员视野</div>
|
||||
<div style="display: flex; flex-direction: column; gap: 3px;">
|
||||
<div><span style="opacity: 0.8;">主要IP:</span><span x-text="userInfo.last_ip || '无'"></span>
|
||||
</div>
|
||||
<div><span style="opacity: 0.8;">本次IP:</span><span x-text="userInfo.login_ip || '无'"></span>
|
||||
</div>
|
||||
<div><span style="opacity: 0.8;">归属地:</span><span x-text="userInfo.location || '未知'"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="profile-detail" x-text="userInfo.sign || '这家伙很懒,什么也没留下'" style="margin-top: 12px;"></div>
|
||||
</div>
|
||||
|
||||
{{-- 普通操作按钮 --}}
|
||||
|
||||
Reference in New Issue
Block a user