修复卖家发布页样式和全天时间选择
This commit is contained in:
@@ -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", "")}点`;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user