Initial commit: 投注游戏平台初始化

This commit is contained in:
li
2026-02-25 01:26:58 +08:00
commit 77ca2cc8b3
275 changed files with 237479 additions and 0 deletions
+43
View File
@@ -0,0 +1,43 @@
<?php use App\Core\I18n; I18n::init(); $t = function($k,$p=[]){return I18n::t($k,$p);}; ?>
<!DOCTYPE html><html lang="<?=I18n::getLang()?>">
<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1">
<title><?=$t('lottery_history')?></title>
<link rel="stylesheet" href="/Static/css/app.css">
<style>
.lotto-header{background:#fff;padding:12px 16px;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between}
.period-row{background:#fff;border-radius:12px;padding:12px;margin-bottom:8px;box-shadow:0 1px 4px rgba(0,0,0,.04)}
.balls{display:flex;gap:3px;flex-wrap:wrap;margin-top:6px}
.ball{width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px;color:#fff}
</style>
</head>
<body class="pb-nav" style="background:var(--bg)">
<div class="lotto-header">
<span style="font-weight:700;font-size:16px;display:flex;align-items:center;gap:6px"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#1E90FF" stroke-width="2"><line x1="12" y1="2" x2="12" y2="6"/><line x1="12" y1="18" x2="12" y2="22"/><line x1="4.93" y1="4.93" x2="7.76" y2="7.76"/><line x1="16.24" y1="16.24" x2="19.07" y2="19.07"/><line x1="2" y1="12" x2="6" y2="12"/><line x1="18" y1="12" x2="22" y2="12"/><line x1="4.93" y1="19.07" x2="7.76" y2="16.24"/><line x1="16.24" y1="7.76" x2="19.07" y2="4.93"/></svg><?=$t('lottery_history')?></span>
<span style="font-size:12px;color:var(--text3)"><?=htmlspecialchars($game['name']??'PK10')?></span>
</div>
<div style="padding:12px;max-width:600px;margin:0 auto">
<?php if(empty($periods)): ?>
<div style="text-align:center;color:var(--text3);padding:40px;font-size:13px"><?=$t('no_data')?></div>
<?php else: foreach($periods as $p): ?>
<div class="period-row">
<div style="display:flex;justify-content:space-between;align-items:center">
<span style="font-size:13px;font-weight:600;color:var(--text)"><?=$p['period_number']?></span>
<span style="font-size:10px;color:var(--text3)"><?=$p['drawn_at']??$p['updated_at']??''?></span>
</div>
<div class="balls">
<?php for($i=1;$i<=10;$i++): $v=$p['rank_'.$i]??''; if(!$v) continue;
$colors=['','#e74c3c','#3498db','#2ecc71','#f39c12','#9b59b6','#1abc9c','#e67e22','#e91e63','#00bcd4','#8bc34a']; ?>
<div class="ball" style="background:<?=$colors[(int)$v]??'#999'?>"><?=$v?></div>
<?php endfor; ?>
</div>
<?php $sum=($p['rank_1']??0)+($p['rank_2']??0); if($sum): ?>
<div style="margin-top:4px;font-size:11px;color:var(--text3)"><?=$t('sum_label')?>: <span style="color:var(--primary);font-weight:600"><?=$sum?></span></div>
<?php endif; ?>
</div>
<?php endforeach; endif; ?>
</div>
<?php $navActive='lottery'; include __DIR__.'/_nav.php'; ?>
</body></html>