接入微信订阅消息并完善预约通知
自动发布开发环境 Nacos 配置 / publish (push) Successful in 20s

This commit is contained in:
2026-11-02 12:11:23 +08:00
parent 3e439543bc
commit 19ca9e2965
29 changed files with 721 additions and 18 deletions
+7 -4
View File
@@ -835,18 +835,21 @@ Page({
if (!appointment) return
wx.showModal({
title: '取消预约',
content: '确定取消这条预约吗?',
editable: true,
placeholderText: '可填写取消原因',
content: '',
confirmText: '确认取消',
success: result => {
if (result.confirm) {
this.updateAppointmentStatus(appointment.orderId, 3)
this.updateAppointmentStatus(appointment.orderId, 3, result.content || '')
}
}
})
},
async updateAppointmentStatus(orderId, status) {
async updateAppointmentStatus(orderId, status, cancelReason) {
try {
await planningApi.updateStatus(orderId, status)
await planningApi.updateStatus(orderId, status, cancelReason)
wx.showToast({ title: '预约已取消', icon: 'success' })
this.loadCalendar()
} catch (error) {