feat: add interactive dispute evidence upload and sealed review mechanism

This commit is contained in:
zetaloop
2026-02-20 22:47:33 +08:00
parent 86ece33c00
commit a5780c8393
4 changed files with 121 additions and 24 deletions
+6 -2
View File
@@ -9,7 +9,7 @@ import { Card, CardContent, CardHeader } from "@/components/ui/card"
import { Separator } from "@/components/ui/separator"
import { Textarea } from "@/components/ui/textarea"
import { roleLabels } from "@/lib/constants"
import { mockComments, mockOrders, mockPosts } from "@/lib/mock-data"
import { mockComments, mockOrders, mockPlayers, mockPosts } from "@/lib/mock-data"
export default async function PostDetailPage({ params }: { params: Promise<{ id: string }> }) {
const { id } = await params
@@ -20,6 +20,9 @@ export default async function PostDetailPage({ params }: { params: Promise<{ id:
const linkedOrder = post.linkedOrderId
? mockOrders.find((o) => o.id === post.linkedOrderId)
: null
const linkedPlayer = linkedOrder
? mockPlayers.find((player) => player.id === linkedOrder.playerId)
: null
return (
<div className="container mx-auto py-8 px-4 max-w-2xl">
@@ -74,7 +77,8 @@ export default async function PostDetailPage({ params }: { params: Promise<{ id:
<span className="font-medium"></span>
</div>
<p className="text-muted-foreground text-xs">
{linkedOrder.service.title} · {linkedOrder.playerName} · ¥{linkedOrder.totalPrice}
{linkedOrder.service.gameName} · {linkedOrder.service.title} · {" "}
{linkedPlayer?.rating ?? "--"}
</p>
</div>
</Link>