修复店务预约与小程序生产问题

This commit is contained in:
2026-07-20 01:22:37 +08:00
parent 92949f9368
commit d180880445
25 changed files with 565 additions and 70 deletions
+14 -2
View File
@@ -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)
}
})