feat(chat): 增加五子棋的后台历史记录查阅面板与统计展示

This commit is contained in:
2026-03-12 08:52:33 +08:00
parent a6b0c24b66
commit 289b79affe
4 changed files with 182 additions and 5 deletions
@@ -65,6 +65,7 @@
'horse_racing' => 'admin.game-history.horse',
'fortune_telling' => 'admin.game-history.fortune',
'lottery' => 'admin.game-history.lottery',
'gomoku' => 'admin.game-history.gomoku',
default => null,
};
@endphp
@@ -505,6 +506,24 @@
},
],
color: 'border-rose-200 bg-rose-50',
},
{
icon: '♟️',
title: '五子棋',
items: [{
label: '总对局',
value: data.gomoku.total_games.toLocaleString() + ' 局'
},
{
label: '人机/对战',
value: data.gomoku.pve_count + ' / ' + data.gomoku.pvp_count
},
{
label: '今日对局',
value: data.gomoku.today_games.toLocaleString()
},
],
color: 'border-blue-200 bg-blue-50',
}
];
@@ -516,11 +535,11 @@
</div>
<div class="space-y-1.5">
${card.items.map(item => `
<div class="flex justify-between text-xs">
<span class="text-gray-500">${item.label}</span>
<span class="font-bold text-gray-700">${item.value}</span>
</div>
`).join('')}
<div class="flex justify-between text-xs">
<span class="text-gray-500">${item.label}</span>
<span class="font-bold text-gray-700">${item.value}</span>
</div>
`).join('')}
</div>
</div>
`).join('');