迁移节日活动表单脚本

This commit is contained in:
2026-04-25 13:36:51 +08:00
parent cedc787586
commit b7af9330c4
3 changed files with 33 additions and 19 deletions
@@ -306,22 +306,3 @@
</form>
</div>
</div>
<script>
function holidayEventForm(config) {
return {
repeatType: config.repeatType ?? 'once',
distributeType: config.distributeType ?? 'random',
targetType: config.targetType ?? 'all',
scheduleMonth: config.scheduleMonth ?? '1',
scheduleDay: config.scheduleDay ?? '1',
scheduleTime: config.scheduleTime ?? '20:00',
durationDays: config.durationDays ?? '1',
dailyOccurrences: config.dailyOccurrences ?? '1',
occurrenceIntervalMinutes: config.occurrenceIntervalMinutes ?? '60',
yearlySummary() {
return `每年 ${this.scheduleMonth} 月 ${this.scheduleDay} 日 ${this.scheduleTime},连续 ${this.durationDays} 天,每天 ${this.dailyOccurrences} 次 / ${this.occurrenceIntervalMinutes} 分钟`;
},
};
}
</script>