feat: 更新依赖与增强功能
- 在 package.json 和 package-lock.json 中新增 laravel-echo 和 pusher-js 依赖 - 在 API 模块中新增 draw 相关函数的导出 - 在 PlayerAppShell 组件中引入 PlayerBottomNav 以增强底部导航 - 在 HallScreen 组件中引入 HallDrawPanel 以展示当前期号
This commit is contained in:
20
src/app/(player)/(main)/results/[drawNo]/page.tsx
Normal file
20
src/app/(player)/(main)/results/[drawNo]/page.tsx
Normal file
@@ -0,0 +1,20 @@
|
||||
import { DrawResultDetailScreen } from "@/features/results/draw-result-detail-screen";
|
||||
|
||||
type PageProps = {
|
||||
params: Promise<{ drawNo: string }>;
|
||||
};
|
||||
|
||||
export default async function DrawResultByNoPage(props: PageProps) {
|
||||
const { drawNo: raw } = await props.params;
|
||||
const drawNo = decodeURIComponent(raw);
|
||||
|
||||
return (
|
||||
<div className="flex flex-col gap-4">
|
||||
<div>
|
||||
<h1 className="text-lg font-semibold tracking-tight">开奖结果</h1>
|
||||
<p className="text-xs text-muted-foreground">当期明细 · 23 组分区</p>
|
||||
</div>
|
||||
<DrawResultDetailScreen drawNo={drawNo} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
15
src/app/(player)/(main)/results/page.tsx
Normal file
15
src/app/(player)/(main)/results/page.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import { DrawResultsListScreen } from "@/features/results/draw-results-list-screen";
|
||||
|
||||
export default function DrawResultsHistoryPage() {
|
||||
return (
|
||||
<div className="flex flex-col gap-4">
|
||||
<div>
|
||||
<h1 className="text-lg font-semibold tracking-tight">开奖结果</h1>
|
||||
<p className="text-xs text-muted-foreground">
|
||||
往期列表与时间以服务器 GMT 为准(界面文档 §4.6)
|
||||
</p>
|
||||
</div>
|
||||
<DrawResultsListScreen />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user