From f9b54a1f9fcbdc518e15ff2438339bee5f82f15e Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 8 Jan 2026 15:07:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B7=BB=E5=8A=A0=E7=BC=BA=E5=A4=B1?= =?UTF-8?q?=E7=9A=84getProgressColor=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/DesignerHall.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/frontend/src/views/DesignerHall.vue b/frontend/src/views/DesignerHall.vue index 787e18e..874a58a 100644 --- a/frontend/src/views/DesignerHall.vue +++ b/frontend/src/views/DesignerHall.vue @@ -313,6 +313,14 @@ const formatDate = (date: string | null | undefined) => { return dayjs(date).format('MM/DD HH:mm') } +// 获取进度条颜色 +const getProgressColor = (progress: number) => { + if (progress >= 80) return '#31f08b' // 绿色 + if (progress >= 50) return '#faad14' // 黄色 + if (progress >= 20) return '#ff7a45' // 橙色 + return '#ff4d4f' // 红色 +} + // 总览数据 const totalCount = computed(() => designersList.value.length) const onlineCount = computed(() =>