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(() =>