mama-box: 退出按钮改卡片右上角绝对定位 + 仅已登录(userName)时显示 (v26090707)

This commit is contained in:
2026-09-07 23:42:30 +08:00
parent 3b52b1c222
commit 91db3873ee
3 changed files with 16 additions and 11 deletions

View File

@@ -3994,6 +3994,8 @@
if (_aw) _aw.classList.add('has-img');
}
var _box = $('#meAuthBox'); if (_box) _box.style.display = _auth ? 'none' : '';
/* 退出按钮只在已登录(有 userName)时显示 —— 未登录"退出"没有意义 */
var _lx = $('#meLogoutBtn'); if (_lx) _lx.style.display = p.userName ? '' : 'none';
if (!p.userName) { var _ai2 = $('#meAvatarImg'); if (_ai2) _ai2.removeAttribute('src'); }
}
if (pg && pg.code === 200 && pg.result) {