fix(nav): header publish menu + userbox card polish

Unpaint multi-type 发布 wrapper, fix light-menu ink, avatar unread
dot clipping, check-in REST double namespace, and user-card VIP/check-in layout.
This commit is contained in:
kate522 committed 2026-07-22 08:49:27 +08:00
1 parent df2874698c
commit 77164fee45
9 files changed
+126 -38

No files matched your search

+2 -2
View File
@@ -68,7 +68,7 @@
if (!btn || btn.disabled) return;
e.preventDefault();
btn.disabled = true;
fetch(restBase() + 'aksrt/v1/signin', {
fetch(restBase() + 'signin', {
method: 'POST',
credentials: 'same-origin',
headers: {
@@ -91,7 +91,7 @@
}
toast((res.data && res.data.message) || '签到成功', 'success');
btn.classList.add('is-done');
btn.innerHTML = '<i class="fa fa-calendar-check-o" aria-hidden="true"></i> 今日已签到';
btn.innerHTML = '<i class="fas fa-calendar-check" aria-hidden="true"></i> 今日已签到';
})
.catch(function () {
toast('网络错误', 'danger');
+8 -1
View File
@@ -135,11 +135,18 @@
badge.style.display = nextUnread > 0 ? '' : 'none';
});
var headerBadge = document.querySelector('.user-dropdown__badge') || document.querySelector('.aksrt-notification-badge');
// Numeric badge inside the user dropdown only — never target the pure avatar
// .nav-user__dot.aksrt-notification-badge (no textContent on a dot indicator).
var headerBadge = document.querySelector('.user-dropdown__badge');
if (headerBadge) {
headerBadge.textContent = String(nextUnread);
headerBadge.style.display = nextUnread > 0 ? '' : 'none';
}
var avatarDot = document.querySelector('.nav-user__dot');
if (avatarDot) {
avatarDot.style.display = nextUnread > 0 ? '' : 'none';
}
}
function checkEmpty() {