个人页面增加 会员显示

This commit is contained in:
2026-04-11 13:14:05 +08:00
parent 56b24901c6
commit c2a2b4818e
2 changed files with 7 additions and 0 deletions

View File

@@ -106,6 +106,7 @@ class UserController extends Controller
])
->values()
->all();
$data['vipName'] = $targetUser->vipName();
// 拥有封禁IPlevel_banip或踢人以上权限的管理可以查看IP和归属地
$levelBanIp = (int) Sysparam::getValue('level_banip', '15');

View File

@@ -628,6 +628,12 @@
<span
x-text="(userInfo.department_name ? userInfo.department_name + ' · ' : '') + userInfo.position_name"></span>
</div>
<div x-show="userInfo.vipName"
style="display: inline-flex; align-items: center; gap: 3px; margin-top: 3px; padding: 2px 8px; background: #f3e8ff; border: 1px solid #d8b4fe; border-radius: 20px; color: #7c3aed; font-weight: bold;">
<span x-text="userInfo.vipName" style="font-size: 13px;"></span>
<span
x-text="(userInfo.vipName"></span>
</div>
<div style="font-size: 11px; color: #999; margin-top: 4px;">
加入: <span x-text="userInfo.created_at"></span>
</div>