feat(chat): 完善后台彩票游戏的历史总览、期号列表及单期购买明细页面

This commit is contained in:
2026-03-12 08:48:30 +08:00
parent 246d89fef6
commit 9e1e5fb7db
5 changed files with 326 additions and 9 deletions
@@ -64,6 +64,7 @@
'mystery_box' => 'admin.game-history.mystery-box',
'horse_racing' => 'admin.game-history.horse',
'fortune_telling' => 'admin.game-history.fortune',
'lottery' => 'admin.game-history.lottery',
default => null,
};
@endphp
@@ -477,16 +478,34 @@
value: data.fortune.total_times.toLocaleString() + ' 次'
},
{
label: '上上签',
value: data.fortune.jackpot_count.toLocaleString()
label: '吉签/凶签',
value: data.fortune.jackpot_count + ' / ' + data.fortune.curse_count
},
{
label: '今日次数',
label: '今日占卜',
value: data.fortune.today_times.toLocaleString()
},
],
color: 'border-indigo-200 bg-indigo-50',
color: 'border-fuchsia-200 bg-fuchsia-50',
},
{
icon: '🎟️',
title: '双色球彩票',
items: [{
label: '总期数',
value: data.lottery.total_issues.toLocaleString() + ' 期'
},
{
label: '历史彩票',
value: data.lottery.total_bets.toLocaleString() + ' 张'
},
{
label: '累计奖池',
value: data.lottery.total_pool.toLocaleString() + ' 金'
},
],
color: 'border-rose-200 bg-rose-50',
}
];
grid.innerHTML = cards.map(card => `
@@ -497,11 +516,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('');