@php $holidayEvent = $event ?? null; $isEdit = (bool) $holidayEvent; $inputClass = 'w-full rounded-lg border border-gray-300 p-2.5 text-sm text-gray-700 focus:border-amber-400 focus:ring-amber-400'; $panelClass = 'rounded-xl border border-gray-100 bg-white p-6 shadow-sm'; $fieldValue = static fn(string $key, mixed $default = null): mixed => old($key, data_get($holidayEvent, $key, $default)); $sendAtValue = old('send_at'); if ($sendAtValue === null && $holidayEvent?->send_at) { $sendAtValue = $holidayEvent->send_at->format('Y-m-d\TH:i'); } $repeatType = (string) $fieldValue('repeat_type', 'once'); $distributeType = (string) $fieldValue('distribute_type', 'random'); $targetType = (string) $fieldValue('target_type', 'all'); $targetValue = old('target_value', data_get($holidayEvent, 'target_value', $targetType === 'level' ? 1 : null)); $scheduleMonth = old('schedule_month', data_get($holidayEvent, 'schedule_month', $holidayEvent?->send_at?->format('n') ?? now()->format('n'))); $scheduleDay = old('schedule_day', data_get($holidayEvent, 'schedule_day', $holidayEvent?->send_at?->format('j') ?? now()->format('j'))); $scheduleTime = old('schedule_time', data_get($holidayEvent, 'schedule_time', $holidayEvent?->send_at?->format('H:i') ?? '20:00')); $durationDays = old('duration_days', data_get($holidayEvent, 'duration_days', 1)); $dailyOccurrences = old('daily_occurrences', data_get($holidayEvent, 'daily_occurrences', 1)); $occurrenceIntervalMinutes = old('occurrence_interval_minutes', data_get($holidayEvent, 'occurrence_interval_minutes', 60)); @endphp
← 返回列表

{{ $pageTitle }}

{{ $pageDescription }}

@if ($isEdit && data_get($holidayEvent, 'status')) 当前状态:{{ data_get($holidayEvent, 'status') }} @endif
@if ($errors->any())
提交失败,请检查以下字段:
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf @isset($method) @method($method) @endisset

📋 基础信息

💰 奖励配置

总发放金额 = 固定金额 × 领取人数(仍受领取人数上限控制)。

⏰ 时间配置

`once/daily/weekly/monthly` 使用该时间直接调度;`yearly` 则把它作为首次触发与兼容基准值。

活动只会在指定 `send_at` 触发一次。
以 `send_at` 的时分为基准,每天自动重复一次。
以 `send_at` 的星期与时间为基准,每周自动重复。
以 `send_at` 的日期与时间为基准,每月自动重复。
每年同一节日重复,可配置连续多天与每天多次发送。
兼容旧版 CRON 配置活动,适合保留现有高级规则。

🎯 年度节日高级调度

用于 yearly:指定每年节日日期、连续天数以及每天的多次发送频率。

🎯 目标用户

当前仍沿用后端 `target_type=vip` 逻辑,若主线后端升级为指定 VIP 档位,可继续复用 `target_value`。
取消