调整配色

This commit is contained in:
2026-07-28 19:51:03 +08:00
parent 81a9993fac
commit 2c4dc19654
4 changed files with 120 additions and 126 deletions

View File

@@ -107,6 +107,8 @@ async function openPurchasePage(roomId) {
document.getElementById('chat-page').classList.add('hidden');
document.getElementById('purchase-page').classList.remove('hidden');
document.getElementById('purchase-panel-body').innerHTML = '<p style="text-align:center;color:#888;">加载中...</p>';
var room = Store.rooms.find(function(r) { return r.id === roomId; });
document.getElementById('purchase-page-title').textContent = (room ? room.name : '') + '(清单)';
loadPurchases();
}
@@ -129,7 +131,7 @@ async function openChat(roomId, fromPurchase = false) {
document.getElementById('purchase-page').classList.add('hidden');
document.getElementById('chat-page').classList.remove('hidden');
const room = Store.rooms.find(r => r.id === roomId);
document.getElementById('current-chat-name').textContent = room?.name || '';
document.getElementById('current-chat-name').textContent = (room ? room.name : '') + '(聊天)';
const token = Store.getToken();
const res = await fetch('/api/rooms/' + roomId + '/messages', { headers: { 'Authorization': 'Bearer ' + token } });
const msgs = await res.json();