feat: harden appointment flow and refresh handoff docs

This commit is contained in:
xiaowang
2026-06-10 00:19:49 +08:00
parent 784bb0a965
commit 8093e07190
64 changed files with 4537 additions and 77 deletions
@@ -3,6 +3,10 @@ const productsApi = require('../../api/products')
const mock = require('../../utils/mock')
const dateUtil = require('../../utils/date')
function buildClientRequestId(prefix) {
return `${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}`
}
Page({
data: {
form: {
@@ -154,7 +158,8 @@ Page({
...form,
productId: Number(form.productId),
artistId: Number(form.artistId),
durationMinutes: Number(form.durationMinutes || 0) || undefined
durationMinutes: Number(form.durationMinutes || 0) || undefined,
clientRequestId: buildClientRequestId('manager-appointment')
})
wx.redirectTo({ url: `/pages/appointment-detail/index?id=${result.orderItemId}` })
} catch (error) {