支持在线时间跨天并优化发布与筛选体验
允许在线时段 end 早于 start 表示跨天,统一展示「次日」文案;修复移动端价格区间清空后被 sessionStorage 回写;优化 PC/移动端在线时间控件密度与通栏展示。
This commit is contained in:
@@ -10,6 +10,7 @@ import {
|
||||
readSnapshotResources,
|
||||
} from '@/features/orders/composables/useOrderSnapshot'
|
||||
import AuthImage from '@/shared/components/business/AuthImage.vue'
|
||||
import { formatOnlineTimeRange } from '@/shared/utils/listingDisplay'
|
||||
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
@@ -63,9 +64,8 @@ function formatOnlineTime(value: unknown): string {
|
||||
const start = String(row.start || '')
|
||||
const end = String(row.end || '')
|
||||
if (!start && !end) return '--'
|
||||
if (start === '全天' || end === '全天' || (start === '00:00' && end === '23:59')) return '全天'
|
||||
if (start && end) return `${start.replace(':00', '')}-${end.replace(':00', '')}点`
|
||||
return [start, end].filter(Boolean).join(' ~ ')
|
||||
const text = formatOnlineTimeRange(start, end)
|
||||
return text || [start, end].filter(Boolean).join(' ~ ') || '--'
|
||||
}
|
||||
|
||||
const primaryRows = computed(() => {
|
||||
|
||||
Reference in New Issue
Block a user