'待执行', 'ongoing' => '进行中', 'completed' => '已完成', 'cancelled' => '已取消', ]; // 计划节点不会有"进行中",执行节点默认就是已完成 $statusOptions = $category === 'plan' ? ['planned', 'completed', 'cancelled'] : ['completed', 'ongoing', 'planned', 'cancelled']; $dtLocal = static function ($value): string { if (empty($value)) return ''; $ts = strtotime((string)$value); return $ts ? date('Y-m-d\TH:i', $ts) : ''; }; $sLoc = json_decode_field($n['start_location'] ?? null); $eLoc = json_decode_field($n['end_location'] ?? null); /** * 交通信息只留一个输入框:飞机只要航班号(航空公司是隐含的),火车只要车次。 * 座位号/登机口这类「一趟车多人同行」时根本没法记,所以不再收集。 */ $tripField = [ 'plane' => ['label' => '航班号', 'ph' => '例如:CA1234'], 'train' => ['label' => '车次', 'ph' => '例如:G1234'], 'bus' => ['label' => '班次', 'ph' => '例如:T108、8 路'], 'subway' => ['label' => '线路', 'ph' => '例如:地铁 10 号线'], 'ship' => ['label' => '航次', 'ph' => '例如:渤海轮渡 3 号'], 'taxi' => ['label' => '叫车备注', 'ph' => '例如:尾号 1234'], 'other' => ['label' => '车次 / 班次', 'ph' => '例如:G1234、CA1234'], ]; ?>
活动: = e($activity['title']) ?> · 由计划节点生成