feat: 支持一键发布服务端
This commit is contained in:
20
packages/shared/src/constants.js
Normal file
20
packages/shared/src/constants.js
Normal file
@@ -0,0 +1,20 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.WEEKDAY_LABELS = exports.DATE_SELECTOR_DAYS = exports.TIME_PERIODS = exports.SLOT_GENERATION_DAYS = exports.DEFAULT_SLOT_CAPACITY = exports.DEFAULT_CANCEL_HOURS_LIMIT = void 0;
|
||||
/** 默认免费取消截止小时数 */
|
||||
exports.DEFAULT_CANCEL_HOURS_LIMIT = 2;
|
||||
/** 默认时段容量(私教 = 1) */
|
||||
exports.DEFAULT_SLOT_CAPACITY = 1;
|
||||
/** 自动生成时段的天数范围 */
|
||||
exports.SLOT_GENERATION_DAYS = 14;
|
||||
/** 时段筛选区间 */
|
||||
exports.TIME_PERIODS = {
|
||||
MORNING: { label: '上午', start: '06:00', end: '12:00' },
|
||||
AFTERNOON: { label: '下午', start: '12:00', end: '18:00' },
|
||||
EVENING: { label: '晚上', start: '18:00', end: '22:00' },
|
||||
};
|
||||
/** 日期选择器展示天数 */
|
||||
exports.DATE_SELECTOR_DAYS = 7;
|
||||
/** 星期映射 */
|
||||
exports.WEEKDAY_LABELS = ['', '周一', '周二', '周三', '周四', '周五', '周六', '周日'];
|
||||
//# sourceMappingURL=constants.js.map
|
||||
Reference in New Issue
Block a user