feat(backend): 调整课程日期为周日并优化计划提交时间窗口

- 将上课日从周六调整为周日,新增 CLASS_WEEKDAY 常量
- 更新 get_class_date 和 get_sunday_of_week 函数以支持周日计算
- 修改 generate_week_list 函数生成周日日期而非周六日期
- 重构月计划和年计划的时间窗口逻辑,增加提前提交功能
- 新增 monthly_window 和 yearly_window 函数定义准确的提交窗口期
- 调整默认周期选择逻辑,支持跨月年的时间窗口
- 添加 period_labels 字段提供前端周期标签显示
- 移除旧的 _validate_current_period 函数
- 完善计划提交验证逻辑,支持多种时间周期类型

chore(miniapp): 更新小程序项目配置

- 补充 project.config.json 中的设置选项
- 调整 project.private.config.json 配置结构
- 移除冗余的页面调试条件配置
- 更新编辑器和编译相关配置项
This commit is contained in:
王宏豪
2026-09-11 17:51:23 +08:00
parent cd04c1b5ef
commit 01a7f4ab2d
2 changed files with 39 additions and 46 deletions

View File

@@ -1,18 +1,36 @@
{
"description": "明缘云道场",
"packOptions": {
"ignore": []
"ignore": [],
"include": []
},
"setting": {
"urlCheck": true,
"es6": true,
"enhance": true,
"postcss": true,
"minified": true
"minified": true,
"compileWorklet": false,
"uglifyFileName": false,
"uploadWithSourceMap": true,
"packNpmManually": false,
"packNpmRelationList": [],
"minifyWXSS": true,
"minifyWXML": true,
"localPlugins": false,
"disableUseStrict": false,
"useCompilerPlugins": false,
"condition": false,
"babelSetting": {
"ignore": [],
"disablePlugins": [],
"outputPath": ""
}
},
"compileType": "miniprogram",
"libVersion": "3.0.0",
"appid": "wx0f576e94afa52e1a",
"projectname": "mingyuan-clock",
"simulatorPluginLibVersion": {}
"simulatorPluginLibVersion": {},
"editorSetting": {}
}