diff --git a/resources/views/admin/game-configs/index.blade.php b/resources/views/admin/game-configs/index.blade.php
index 38c7ba1..6f0b558 100644
--- a/resources/views/admin/game-configs/index.blade.php
+++ b/resources/views/admin/game-configs/index.blade.php
@@ -102,90 +102,11 @@
@endphp
@if ($game->game_key === 'idiom')
- @php
- $sharedConfig = gameRiddleSharedConfig($params);
- $checkedRoomIds = collect($sharedConfig['room_ids'])->map(fn ($roomId) => (int) $roomId)->all();
- @endphp
-
-
- 猜成语与脑筋急转弯共用同一套奖励、过期时间、自动出题间隔与参与房间范围配置。
- 手动出题时再单独选择题型即可。
-
-
-
-
-
-
猜谜活动公共设置
-
以下参数会同时作用于猜成语与脑筋急转弯。
-
-
- @foreach ($riddleTypeOptions as $typeLabel)
- {{ $typeLabel }}
- @endforeach
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
分钟,0 表示不过期。
-
-
-
-
-
分钟,0 表示仅手动出题。
-
-
-
-
-
-
-
-
- @foreach ($availableRooms as $room)
-
- @endforeach
-
-
单选模式下只保留一个房间,多选模式可同时勾选多个房间。
-
-
-
-
+ @include('admin.game-configs.partials.riddle-config-card', [
+ 'params' => $params,
+ 'availableRooms' => $availableRooms,
+ 'riddleTypeOptions' => $riddleTypeOptions,
+ ])
@else
@foreach ($paramKeys as $paramKey)
@@ -245,32 +166,6 @@
- @if ($game->game_key === 'idiom')
-
-
🧩 手动出题
-
-
-
-
- 先选房间,再选题型,后台会按对应题型配置发题。
-
-
- @endif
-
{{-- 神秘箱子:手动投放区域 --}}
@if ($game->game_key === 'mystery_box')
@@ -567,104 +462,3 @@
];
}
@endphp
-
-@push('scripts')
-
-@endpush
diff --git a/resources/views/admin/game-configs/partials/riddle-config-card.blade.php b/resources/views/admin/game-configs/partials/riddle-config-card.blade.php
new file mode 100644
index 0000000..d731fb3
--- /dev/null
+++ b/resources/views/admin/game-configs/partials/riddle-config-card.blade.php
@@ -0,0 +1,212 @@
+@php
+ $sharedConfig = gameRiddleSharedConfig($params);
+ $checkedRoomIds = collect($sharedConfig['room_ids'])->map(fn ($roomId) => (int) $roomId)->all();
+@endphp
+
+
+
+ 猜成语与脑筋急转弯共用同一套奖励、过期时间、自动出题间隔与参与房间范围配置。
+ 手动出题时再单独选择题型即可。
+
+
+
+
+
+
猜谜活动公共设置
+
以下参数会同时作用于猜成语与脑筋急转弯。
+
+
+ @foreach ($riddleTypeOptions as $typeLabel)
+ {{ $typeLabel }}
+ @endforeach
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
分钟,0 表示不过期。
+
+
+
+
+
分钟,0 表示仅手动出题。
+
+
+
+
+
+
+
+
+ @foreach ($availableRooms as $room)
+
+ @endforeach
+
+
单选模式下只保留一个房间,多选模式可同时勾选多个房间。
+
+
+
+
+
+
+
🧩 手动出题
+
+
+
+
+ 先选房间,再选题型,后台会按对应题型配置发题。
+
+
+
+@once
+ @push('scripts')
+
+ @endpush
+@endonce