fix(pages): adapt all pages to backend-aligned types

Replace removed fields with available data sources throughout UI:
- order pages: use service.title instead of consumer/player names
- chat: look up sender from session.participants, remove readonly
- community: simplify post cards, keep pinned icon
- post detail: keep pinned/linkedOrderId display
- shop rules: use string commissionValue
- dashboard: parse string amounts for income display
- dispute/review: remove initiator/avatar references
This commit is contained in:
zetaloop
2026-04-23 21:15:28 +08:00
parent 12284290cc
commit 4d8877f588
17 changed files with 153 additions and 238 deletions
+1 -3
View File
@@ -141,9 +141,7 @@ export default function DashboardPage() {
<div className="flex items-center justify-between rounded-md border p-3 hover:bg-muted/50 transition-colors">
<div className="min-w-0 flex-1">
<p className="text-sm font-medium truncate">{order.service.title}</p>
<p className="text-xs text-muted-foreground">
{order.consumerName} {order.playerName}
</p>
<p className="text-xs text-muted-foreground">{order.service.title}</p>
</div>
<div className="flex items-center gap-3 shrink-0">
<span className="text-sm font-medium">¥{order.totalPrice}</span>