预约时间选择改为1分钟粒度:小程序预约时间滚轮与时段列表由15分钟一档改为逐分钟候选,分钟可选00-59并原样提交回显
自动发布开发环境 Nacos 配置 / publish (push) Successful in 34s
自动发布开发环境 Nacos 配置 / publish (push) Successful in 34s
This commit is contained in:
@@ -10,7 +10,8 @@ const { showActionModal } = require('../../utils/action-modal')
|
||||
const DRAFT_STORAGE_PREFIX = 'managerAppointmentDraft'
|
||||
const DRAFT_TTL_MS = 7 * 24 * 60 * 60 * 1000
|
||||
const DRAFT_SAVE_DELAY_MS = 400
|
||||
const TIME_SLOT_MINUTES = 15
|
||||
const TIME_SLOT_MINUTES = 1
|
||||
const MINUTE_VALUES = Array.from({ length: 60 }, (_, index) => index)
|
||||
|
||||
function buildClientRequestId(prefix) {
|
||||
return `${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}`
|
||||
@@ -419,7 +420,7 @@ function buildTimeWheelState(slots, preferredTime) {
|
||||
: firstAvailableSlot || preferredSlot || slots[0]
|
||||
const hours = Array.from(new Set(slots.map(slot => slot.hour)))
|
||||
const selectedHourIndex = Math.max(0, hours.indexOf(selectedSlot.hour))
|
||||
const minuteValues = [0, 15, 30, 45]
|
||||
const minuteValues = MINUTE_VALUES
|
||||
const minutes = minuteValues.map(minute => {
|
||||
const slot = slots.find(item => item.hour === selectedSlot.hour && item.minute === minute)
|
||||
return {
|
||||
@@ -444,7 +445,7 @@ function buildTimeWheelState(slots, preferredTime) {
|
||||
}
|
||||
|
||||
function timeWheelStateForHour(slots, hour, selectedMinute) {
|
||||
const minuteValues = [0, 15, 30, 45]
|
||||
const minuteValues = MINUTE_VALUES
|
||||
const minutes = minuteValues.map(minute => {
|
||||
const slot = slots.find(item => item.hour === hour && item.minute === minute)
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user