新增大哥池弹窗
This commit is contained in:
@@ -141,6 +141,17 @@
|
||||
<button @click="showHostDialog = true" class="mt-4 w-full rounded-lg border border-purple-200 bg-purple-50 px-4 py-3 text-sm font-medium text-purple-600 transition-colors hover:bg-purple-100">打开执行主播库</button>
|
||||
</section>
|
||||
|
||||
<section class="rounded-xl border border-gray-200 bg-white p-5 shadow-sm">
|
||||
<div class="flex items-start justify-between gap-3">
|
||||
<div>
|
||||
<div class="text-sm font-medium text-gray-900">大哥池</div>
|
||||
<p class="mt-1 text-xs leading-5 text-gray-500">参考 brother_info 数据池,维护大哥列表并支持切换为大哥池模式启动任务。</p>
|
||||
</div>
|
||||
<span :class="['rounded-full px-3 py-1 text-xs font-medium', isBrotherInfoMode ? 'bg-fuchsia-100 text-fuchsia-700' : 'bg-gray-100 text-gray-600']">{{ isBrotherInfoMode ? '当前使用中' : '可切换' }}</span>
|
||||
</div>
|
||||
<button @click="showBrotherInfoDialog = true" class="mt-4 w-full rounded-lg border border-fuchsia-200 bg-fuchsia-50 px-4 py-3 text-sm font-medium text-fuchsia-600 transition-colors hover:bg-fuchsia-100">打开大哥池</button>
|
||||
</section>
|
||||
|
||||
<section class="rounded-xl bg-slate-950 p-5 shadow-sm">
|
||||
<div class="text-sm font-medium text-slate-100">本次提交参数</div>
|
||||
<pre class="mt-3 overflow-x-auto text-xs leading-6 text-slate-300">{{ payloadPreview }}</pre>
|
||||
@@ -208,6 +219,7 @@
|
||||
|
||||
<AIConfigDialog :visible="showAIDialog" :config="aiConfig" @close="showAIDialog = false" @save="handleSaveAIConfig" @change="(key, value) => aiConfig[key] = value" />
|
||||
<HostListDialog :visible="showHostDialog" @close="showHostDialog = false" @save="() => {}" />
|
||||
<BrotherInfoDialog :visible="showBrotherInfoDialog" @close="showBrotherInfoDialog = false" />
|
||||
<GreetingDialog :visible="showGreetingDialog" @close="showGreetingDialog = false" @confirm="handleGreetingConfirm" />
|
||||
</div>
|
||||
</template>
|
||||
@@ -220,6 +232,7 @@ import ViewPlaceholder from '@/components/ViewPlaceholder.vue'
|
||||
import HostListDialog from '@/components/HostListDialog.vue'
|
||||
import AIConfigDialog from '@/components/AIConfigDialog.vue'
|
||||
import GreetingDialog from '@/components/GreetingDialog.vue'
|
||||
import BrotherInfoDialog from '@/components/BrotherInfoDialog.vue'
|
||||
|
||||
const props = defineProps({ navSidebarWidth: { type: Number, default: 144 } })
|
||||
const TIKTOK_VIEW_IDS = Array.from({ length: 9 }, (_, index) => index + 10)
|
||||
@@ -231,6 +244,7 @@ const statusText = ref('待启动')
|
||||
const showAIDialog = ref(false)
|
||||
const showHostDialog = ref(false)
|
||||
const showGreetingDialog = ref(false)
|
||||
const showBrotherInfoDialog = ref(false)
|
||||
const aiConfigured = ref(false)
|
||||
const loginConfirmed = ref(false)
|
||||
const preparedConfigKey = ref('')
|
||||
|
||||
Reference in New Issue
Block a user