feat: add interactive dispute evidence upload and sealed review mechanism
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user