完善店员申请关联与预约页面
This commit is contained in:
@@ -121,7 +121,7 @@ function layoutAppointmentBlocks(items, startMinute, minuteScale, laneHeaderHeig
|
||||
return {
|
||||
...entry,
|
||||
top: Math.max(0, entry.itemStart - startMinute) * minuteScale + laneHeaderHeight,
|
||||
height: entry.durationMinutes * minuteScale,
|
||||
height: Math.max(40, entry.durationMinutes * minuteScale),
|
||||
left: Math.round(entry.columnIndex * slotWidth + 12),
|
||||
width: Math.round(slotWidth - 24),
|
||||
compact: entry.durationMinutes <= 15,
|
||||
@@ -167,6 +167,7 @@ Page({
|
||||
hours: [],
|
||||
hasTimedAppointments: false,
|
||||
timelineHeight: 720,
|
||||
timelineViewportHeight: 720,
|
||||
laneWidth: 720,
|
||||
laneItemWidth: 240,
|
||||
laneHeaderHeight: 54,
|
||||
@@ -601,7 +602,7 @@ Page({
|
||||
},
|
||||
|
||||
buildDayView(calendar) {
|
||||
const minuteScale = 4
|
||||
const minuteScale = 2.5
|
||||
const daySummary = this.summaryMap(calendar)[this.data.currentDateText] || null
|
||||
const businessHours = resolveBusinessHours(calendar, this.data.currentDateText)
|
||||
const filteredArtists = this.data.selectedArtistId
|
||||
@@ -622,6 +623,7 @@ Page({
|
||||
hours: [],
|
||||
hasTimedAppointments: false,
|
||||
timelineHeight: 0,
|
||||
timelineViewportHeight: 320,
|
||||
laneHeaderHeight: 54,
|
||||
laneItemWidth: 248,
|
||||
laneWidth: 720,
|
||||
@@ -644,7 +646,7 @@ Page({
|
||||
const endMinute = businessHours
|
||||
? dateUtil.minutesOfDay(businessHours.end)
|
||||
: Math.min(1440, Math.max(startMinute + 60, Math.ceil(latestAppointmentEnd / 60) * 60))
|
||||
const timelineHeight = Math.max(560, (endMinute - startMinute) * minuteScale)
|
||||
const timelineHeight = (endMinute - startMinute) * minuteScale
|
||||
const laneHeaderHeight = 54
|
||||
const hours = []
|
||||
for (let cursor = startMinute; cursor <= endMinute; cursor += 60) {
|
||||
@@ -663,7 +665,7 @@ Page({
|
||||
return {
|
||||
...item,
|
||||
top: Math.max(0, itemStart - startMinute) * minuteScale + laneHeaderHeight,
|
||||
height: Math.max(60, (item.durationMinutes || 60) * minuteScale),
|
||||
height: Math.max(40, (item.durationMinutes || 60) * minuteScale),
|
||||
left: 12,
|
||||
width: 224,
|
||||
compact: Number(item.durationMinutes || 60) <= 15,
|
||||
@@ -696,6 +698,7 @@ Page({
|
||||
hours,
|
||||
hasTimedAppointments: timedAppointments.length > 0,
|
||||
timelineHeight: timelineHeight + laneHeaderHeight,
|
||||
timelineViewportHeight: Math.min(820, timelineHeight + laneHeaderHeight),
|
||||
laneHeaderHeight,
|
||||
laneItemWidth: 248,
|
||||
laneWidth: Math.max(720, lanes.reduce((width, lane) => width + (lane.width || 248), 0)),
|
||||
|
||||
Reference in New Issue
Block a user