接入真实美甲师排班信息
This commit is contained in:
@@ -10,6 +10,7 @@ const DRAFT_STORAGE_PREFIX = 'managerAppointmentDraft'
|
||||
const TIME_SLOT_MINUTES = 15
|
||||
const ARTIST_FALLBACK_COLORS = ['#7AA9C2', '#8EB99B', '#BDA7D8', '#D7B17D', '#D98D8D']
|
||||
const ARTIST_PRESET_LABELS = {
|
||||
EVERYDAY: '每天',
|
||||
DOUBLE_REST: '双休',
|
||||
SINGLE_REST: '单休',
|
||||
NINE_TO_FIVE: '朝九晚五',
|
||||
@@ -42,7 +43,7 @@ function buildArtistTimeSummary(artist, schedule) {
|
||||
}
|
||||
|
||||
function buildArtistScheduleSummary(artist, schedule) {
|
||||
const timeText = buildArtistTimeSummary(artist, schedule)
|
||||
const timeText = artist.scheduleTimeSummary || buildArtistTimeSummary(artist, schedule)
|
||||
const mode = artist.scheduleModeSummary
|
||||
|| artist.scheduleMode
|
||||
|| ARTIST_PRESET_LABELS[artist.presetType]
|
||||
|
||||
Reference in New Issue
Block a user