chore(copy): rename consumer label to 客户

Unify user-facing role terminology by replacing 消费者 with 客户 while keeping role keys unchanged. This aligns account settings, header role switch, global role labels, and order list role text.
This commit is contained in:
zetaloop
2026-02-22 10:34:55 +08:00
parent 519fb92c34
commit d0d21fa935
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -123,7 +123,7 @@ export default function SettingsPage() {
<div className="flex items-center justify-between"> <div className="flex items-center justify-between">
<div className="flex items-center space-x-2"> <div className="flex items-center space-x-2">
<RadioGroupItem value="consumer" id="role-consumer" /> <RadioGroupItem value="consumer" id="role-consumer" />
<Label htmlFor="role-consumer"></Label> <Label htmlFor="role-consumer"></Label>
</div> </div>
</div> </div>
<div className="flex items-center justify-between"> <div className="flex items-center justify-between">
+3 -3
View File
@@ -101,7 +101,7 @@ function OrderListContent({ currentRole, userId }: { currentRole: UserRole; user
<h1 className="text-2xl font-bold"></h1> <h1 className="text-2xl font-bold"></h1>
<Badge variant="outline" className="text-xs"> <Badge variant="outline" className="text-xs">
{currentRole === "consumer" {currentRole === "consumer"
? "消费者视角" ? "客户视角"
: currentRole === "player" : currentRole === "player"
? "打手视角" ? "打手视角"
: "店主视角"} : "店主视角"}
@@ -134,8 +134,8 @@ function OrderListContent({ currentRole, userId }: { currentRole: UserRole; user
{currentRole === "consumer" {currentRole === "consumer"
? `打手: ${order.playerName}` ? `打手: ${order.playerName}`
: currentRole === "player" : currentRole === "player"
? `消费者: ${order.consumerName}` ? `客户: ${order.consumerName}`
: `消费者: ${order.consumerName} · 打手: ${order.playerName}`} : `客户: ${order.consumerName} · 打手: ${order.playerName}`}
</p> </p>
</CardHeader> </CardHeader>
<CardContent> <CardContent>
+1 -1
View File
@@ -36,7 +36,7 @@ import { useNotificationStore } from "@/store/notifications"
import { useShopStore } from "@/store/shops" import { useShopStore } from "@/store/shops"
const roleLabels: Record<UserRole, string> = { const roleLabels: Record<UserRole, string> = {
consumer: "消费者", consumer: "客户",
player: "打手", player: "打手",
owner: "店主", owner: "店主",
} }
+1 -1
View File
@@ -12,7 +12,7 @@ export const statusLabels: Record<OrderStatus, string> = {
} }
export const roleLabels: Record<string, string> = { export const roleLabels: Record<string, string> = {
consumer: "消费者", consumer: "客户",
player: "打手", player: "打手",
owner: "店主", owner: "店主",
} }