fix(chat): 修正彩票视图中显示期号与号码球的对应字段名
This commit is contained in:
@@ -54,13 +54,12 @@
|
||||
<tbody class="divide-y divide-gray-50">
|
||||
@forelse ($issues as $issue)
|
||||
<tr class="hover:bg-gray-50 transition">
|
||||
<td class="px-4 py-3 text-gray-600 text-xs font-mono font-bold">第 {{ $issue->issue_number }} 期
|
||||
</td>
|
||||
<td class="px-4 py-3 text-gray-600 text-xs font-mono font-bold">第 {{ $issue->issue_no }} 期</td>
|
||||
<td class="px-4 py-3 text-xs text-gray-600">
|
||||
{{ $issue->draw_time ? $issue->draw_time->format('m-d H:i') : '—' }}
|
||||
{{ $issue->draw_at ? $issue->draw_at->format('m-d H:i') : '—' }}
|
||||
</td>
|
||||
<td class="px-4 py-3 text-center">
|
||||
@if ($issue->status === 'drawn')
|
||||
@if ($issue->status === 'settled')
|
||||
<span
|
||||
class="px-2 py-0.5 rounded-full text-xs font-bold bg-emerald-100 text-emerald-700">已开奖</span>
|
||||
@else
|
||||
@@ -69,23 +68,16 @@
|
||||
@endif
|
||||
</td>
|
||||
<td class="px-4 py-3 text-center font-mono">
|
||||
@if ($issue->winning_balls)
|
||||
@php
|
||||
$balls = is_string($issue->winning_balls)
|
||||
? json_decode($issue->winning_balls, true)
|
||||
: $issue->winning_balls;
|
||||
$reds = $balls['red'] ?? [];
|
||||
$blue = $balls['blue'] ?? null;
|
||||
@endphp
|
||||
@if ($issue->status === 'settled')
|
||||
<div class="flex items-center justify-center gap-1">
|
||||
@foreach ($reds as $r)
|
||||
<span
|
||||
class="text-xs bg-red-100 text-red-600 px-1 rounded">{{ $r }}</span>
|
||||
@endforeach
|
||||
@if ($blue)
|
||||
<span
|
||||
class="text-xs bg-blue-100 text-blue-600 px-1 rounded">{{ $blue }}</span>
|
||||
@endif
|
||||
<span
|
||||
class="text-xs bg-red-100 text-red-600 px-1 rounded">{{ str_pad($issue->red1, 2, '0', STR_PAD_LEFT) }}</span>
|
||||
<span
|
||||
class="text-xs bg-red-100 text-red-600 px-1 rounded">{{ str_pad($issue->red2, 2, '0', STR_PAD_LEFT) }}</span>
|
||||
<span
|
||||
class="text-xs bg-red-100 text-red-600 px-1 rounded">{{ str_pad($issue->red3, 2, '0', STR_PAD_LEFT) }}</span>
|
||||
<span
|
||||
class="text-xs bg-blue-100 text-blue-600 px-1 rounded">{{ str_pad($issue->blue, 2, '0', STR_PAD_LEFT) }}</span>
|
||||
</div>
|
||||
@else
|
||||
<span class="text-xs text-gray-400">等待开奖</span>
|
||||
|
||||
Reference in New Issue
Block a user