feat(员工培训): 完善新人入职培训聊天闭环交互
This commit is contained in:
1 parent
eb0466245b
commit
3f13bb5b46
19 files changed
+2975
-12
No files matched your search
@@ -0,0 +1,37 @@
|
||||
/**
|
||||
* features/chat/components/messages/TrainingVideoMessage.vue
|
||||
* 用途:在聊天气泡中渲染培训视频占位符。
|
||||
* 逻辑:点击占位符触发视频播放弹窗(复用工作区逻辑)。
|
||||
*/
|
||||
<script setup lang="ts">
|
||||
import { PlayCircle } from 'lucide-vue-next';
|
||||
|
||||
defineProps<{
|
||||
isThinking: boolean;
|
||||
}>();
|
||||
|
||||
const emit = defineEmits<{
|
||||
play: [];
|
||||
}>();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="my-1.5 flex flex-col gap-3 rounded-2xl border border-brand-100 bg-white p-3 shadow-sm ring-1 ring-brand-50/30">
|
||||
<div
|
||||
class="relative group cursor-pointer overflow-hidden rounded-xl border border-default bg-slate-900 shadow-sm aspect-video flex items-center justify-center"
|
||||
:class="{ 'opacity-50 pointer-events-none': isThinking }"
|
||||
@click="emit('play')"
|
||||
>
|
||||
<img
|
||||
src="https://coresg-normal.trae.ai/api/ide/v1/text_to_image?prompt=Professional%20corporate%20training%20video%20cover%2C%20high-quality%2C%20modern%20office%20background%2C%20play%20button%20overlay&image_size=landscape_16_9"
|
||||
class="absolute inset-0 w-full h-full object-cover opacity-60 group-hover:scale-105 transition-transform duration-500"
|
||||
/>
|
||||
<div class="relative z-10 flex flex-col items-center gap-2">
|
||||
<div class="h-12 w-12 flex items-center justify-center rounded-full bg-white/20 backdrop-blur-md border border-white/30 group-hover:bg-brand-600 group-hover:border-brand-500 transition-all duration-300">
|
||||
<PlayCircle class="h-6 w-6 text-white fill-white/20" />
|
||||
</div>
|
||||
<span class="text-white text-xs font-medium drop-shadow-md">点击播放视频</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
Reference in new issue
Block a user