UI调整: 聊天室右侧在线名单图标显示逻辑调整为互斥展示,管理员具有最高展示优先级
This commit is contained in:
@@ -140,16 +140,15 @@
|
||||
item.dataset.username = username;
|
||||
|
||||
const headface = (user.headface || '1.gif').toLowerCase();
|
||||
// VIP 图标和管理员标识
|
||||
// VIP 图标和管理员标识 (互斥显示:管理员优先)
|
||||
let badges = '';
|
||||
if (user.vip_icon) {
|
||||
if (user.is_admin) {
|
||||
badges += `<span style="font-size:11px; margin-left:2px;" title="管理员">🛡️</span>`;
|
||||
} else if (user.vip_icon) {
|
||||
const vipColor = user.vip_color || '#f59e0b';
|
||||
badges +=
|
||||
`<span style="font-size:12px; margin-left:2px; color:${vipColor};" title="${user.vip_name || 'VIP'}">${user.vip_icon}</span>`;
|
||||
}
|
||||
if (user.is_admin) {
|
||||
badges += `<span style="font-size:11px; margin-left:2px;" title="管理员">🛡️</span>`;
|
||||
}
|
||||
|
||||
// 女生名字使用玫粉色
|
||||
const nameColor = (user.sex == 2) ? 'color:#e91e8c;' : '';
|
||||
|
||||
Reference in New Issue
Block a user