修复卖家发布页样式和全天时间选择

This commit is contained in:
yml2213
2026-06-04 21:45:07 +08:00
parent 4ebf7f75fe
commit c1b3dba83d
10 changed files with 2045 additions and 216 deletions
+1
View File
@@ -204,6 +204,7 @@ export function getOnlineTimeText(item: Listing) {
const start = (onlineTime as Record<string, unknown>).start;
const end = (onlineTime as Record<string, unknown>).end;
if (typeof start !== "string" || typeof end !== "string" || !start || !end) return "";
if (start === "全天" || end === "全天" || (start === "00:00" && end === "23:59")) return "全天";
return `${start.replace(":00", "")}-${end.replace(":00", "")}`;
}