From a611c225b17219e873b60888e03c330fbe0c57a4 Mon Sep 17 00:00:00 2001
From: wangrong <wangrong@shsening.com>
Date: 星期一, 19 十月 2026 11:39:56 +0800
Subject: [PATCH] 修改了首页手机号授权
---
pages/recycle/appointment.vue | 28 +++++++++++++++++++++-------
1 files changed, 21 insertions(+), 7 deletions(-)
diff --git a/pages/recycle/appointment.vue b/pages/recycle/appointment.vue
index 0c757f8..ba891c2 100644
--- a/pages/recycle/appointment.vue
+++ b/pages/recycle/appointment.vue
@@ -38,7 +38,7 @@
>
<view class="card-header">
<text class="order-no">鍗曞彿锛歿{ item.appointmentNo }}</text>
- <text class="status" :class="`status-${item.status}`">
+ <text class="status" :class="statusClass(item.status)">
{{ item.status }}
</text>
</view>
@@ -278,6 +278,20 @@
] as const;
type TabValue = (typeof tabs)[number]["value"];
+
+const statusClassMap: Record<string, string> = {
+ 寰呭鏍�: "is-review",
+ 寰呮帴鍗�: "is-wait",
+ 宸叉帴鍗�: "is-accepted",
+ 涓婇棬涓�: "is-visiting",
+ 宸插畬鎴�: "is-done",
+ 宸插彇娑�: "is-cancel",
+ 宸查绾�: "is-booked",
+};
+
+function statusClass(status?: string) {
+ return statusClassMap[status || ""] || "";
+}
const activeTab = ref<TabValue>("booked");
const list = ref<Eps.RecycleAppointmentEntity[]>([]);
@@ -675,21 +689,21 @@
background: #f5f5f5;
color: #999;
- &.status-寰呭鏍�,
- &.status-寰呮帴鍗� {
+ &.is-review,
+ &.is-wait {
background: #fef5e7;
color: #e67e22;
}
- &.status-宸叉帴鍗�,
- &.status-涓婇棬涓� {
+ &.is-accepted,
+ &.is-visiting {
background: #eaf4fc;
color: #2980b9;
}
- &.status-宸插畬鎴� {
+ &.is-done {
background: #e8f8f0;
color: #27ae60;
}
- &.status-宸插彇娑� {
+ &.is-cancel {
background: #fef0f0;
color: #e74c3c;
}
--
Gitblit v1.9.1