功能:优化Salon作品选择与历史补单
发布 Nacos 配置 / publish (push) Successful in 30s
环境分支晋级检查 / environment-promotion-source (pull_request_target) Successful in 1s

This commit is contained in:
2026-10-14 00:47:10 +08:00
parent 4101ab3408
commit 261723bc6e
29 changed files with 454 additions and 332 deletions
+7 -3
View File
@@ -245,7 +245,7 @@ Page({
}
const appointmentDate = dateUtil.formatDate(event.currentTarget.dataset.date)
if (appointmentDate < dateUtil.formatDate(new Date())) {
wx.showToast({ title: '不能为历史日期新增预约', icon: 'none' })
this.openBackfillOrder(appointmentDate)
return
}
this.openAppointmentForm(appointmentDate)
@@ -630,12 +630,16 @@ Page({
this.openAppointmentForm(this.data.currentDateText)
},
openBackfillOrder() {
openBackfillOrder(serviceDate) {
if (!this.data.canCreateAppointment) {
wx.showToast({ title: '当前账号仅支持查看预约', icon: 'none' })
return
}
wx.navigateTo({ url: '/pages/backfill-order/index' })
const query = [`serviceDate=${encodeURIComponent(serviceDate || this.data.currentDateText)}`]
if (this.data.selectedArtistId) {
query.push(`artistId=${encodeURIComponent(this.data.selectedArtistId)}`)
}
wx.navigateTo({ url: `/pages/backfill-order/index?${query.join('&')}` })
},
openAppointmentForm(appointmentDate) {