feat: harden appointment flow and refresh handoff docs
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user