diff --git a/frontend/src/pages/admin/AdminProductsPage.tsx b/frontend/src/pages/admin/AdminProductsPage.tsx index 8f91b0b..eae6ce1 100644 --- a/frontend/src/pages/admin/AdminProductsPage.tsx +++ b/frontend/src/pages/admin/AdminProductsPage.tsx @@ -240,7 +240,16 @@ export default function AdminProductsPage() { - +
+ + 当前人时间 + {(() => { + const h = p.active_duration_hours; + if (h == null) return ; + const cls = h >= 24 ? "bg-red-50 text-red-600" : h >= 1 ? "bg-orange-50 text-orange-600" : "bg-emerald-50 text-emerald-600"; + return {formatDuration(h)}; + })()} +