修复店务预约与小程序生产问题
This commit is contained in:
@@ -41,6 +41,17 @@ function resolveAppointmentTimeText(item) {
|
||||
return `${startText}-${endText}`
|
||||
}
|
||||
|
||||
function buildAppointmentBadges(item) {
|
||||
const badges = []
|
||||
if (item.needRemoval) {
|
||||
badges.push({ key: 'needRemoval', text: '需卸甲', type: 'removal' })
|
||||
}
|
||||
if (item.fromMeituan) {
|
||||
badges.push({ key: 'fromMeituan', text: '美团', type: 'meituan' })
|
||||
}
|
||||
return badges
|
||||
}
|
||||
|
||||
function isCompletedStatus(status) {
|
||||
return Number(status) === 2
|
||||
}
|
||||
@@ -150,7 +161,7 @@ Page({
|
||||
selectedArtistId: id,
|
||||
selectedArtistName: artist ? artist.name : '全部员工'
|
||||
})
|
||||
this.prepareView()
|
||||
this.loadCalendar()
|
||||
},
|
||||
|
||||
selectDate(event) {
|
||||
@@ -366,8 +377,9 @@ Page({
|
||||
return {
|
||||
...item,
|
||||
top: Math.max(0, itemStart - startMinute) + laneHeaderHeight,
|
||||
height: Math.max(64, item.durationMinutes || 60),
|
||||
height: Math.max(82, item.durationMinutes || 60),
|
||||
timeText: resolveAppointmentTimeText(item),
|
||||
badges: buildAppointmentBadges(item),
|
||||
statusClass: appointmentStatusClass(item.status)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user