|
@@ -97,7 +97,8 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<!-- 添加试题弹框 -->
|
|
<!-- 添加试题弹框 -->
|
|
|
- <div
|
|
|
|
|
|
|
+ <transition name="fade-scale">
|
|
|
|
|
+ <div
|
|
|
v-show="questionDialogVisible"
|
|
v-show="questionDialogVisible"
|
|
|
class="child-dialog-wrapper"
|
|
class="child-dialog-wrapper"
|
|
|
@click.self="handleCloseQuestionDialog"
|
|
@click.self="handleCloseQuestionDialog"
|
|
@@ -120,11 +121,11 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div v-else class="no-options">
|
|
<div v-else class="no-options">
|
|
|
- 暂无选项
|
|
|
|
|
|
|
+<!-- 暂无选项-->
|
|
|
</div>
|
|
</div>
|
|
|
<!-- 底部按钮 -->
|
|
<!-- 底部按钮 -->
|
|
|
<div class="dialog-footer">
|
|
<div class="dialog-footer">
|
|
|
- <el-button class="child-button cancel" @click="questionDialogVisible = false; showAIDialog = false">取消</el-button>
|
|
|
|
|
|
|
+<!-- <el-button class="child-button cancel" @click="questionDialogVisible = false; showAIDialog = false">取消</el-button>-->
|
|
|
<el-button class="child-button confirm" @click="handleSubmitAnswer">确定</el-button>
|
|
<el-button class="child-button confirm" @click="handleSubmitAnswer">确定</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
<!-- 右侧小图标 -->
|
|
<!-- 右侧小图标 -->
|
|
@@ -134,6 +135,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ </transition>
|
|
|
|
|
|
|
|
<!-- AI对话弹框 -->
|
|
<!-- AI对话弹框 -->
|
|
|
<div
|
|
<div
|
|
@@ -390,6 +392,17 @@ let messageHistory = ref([])
|
|
|
|
|
|
|
|
// 定义每个视频对应的暂停时间和问题
|
|
// 定义每个视频对应的暂停时间和问题
|
|
|
const videoPauseTimes = {
|
|
const videoPauseTimes = {
|
|
|
|
|
+ [video1]: {
|
|
|
|
|
+ pauseTimes: [1],
|
|
|
|
|
+ questions: [
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '视频当中发生了什么事情呢?',
|
|
|
|
|
+ options: [],
|
|
|
|
|
+ aiQuestion: '视频当中发生了什么事情呢',
|
|
|
|
|
+ aiAnswer: '让我来告诉你吧:泡泡怪篡改了Ai历史数据,导致Ai系统发生崩溃,所以要修正Ai历史抓到泡泡怪!'
|
|
|
|
|
+ }
|
|
|
|
|
+ ]
|
|
|
|
|
+ },
|
|
|
[video2]: {
|
|
[video2]: {
|
|
|
pauseTimes: [53],
|
|
pauseTimes: [53],
|
|
|
questions: [
|
|
questions: [
|
|
@@ -462,7 +475,7 @@ const videoPauseTimes = {
|
|
|
title: '在生活中,有哪些正在使用的专家系统呢?',
|
|
title: '在生活中,有哪些正在使用的专家系统呢?',
|
|
|
options: [],
|
|
options: [],
|
|
|
aiQuestion: '在生活中,有哪些正在使用的专家系统呢?',
|
|
aiQuestion: '在生活中,有哪些正在使用的专家系统呢?',
|
|
|
- aiAnswer: '在医疗健康领域有复杂疾病协同决策喝Ai医生分身与诊断辅助;在水利交通领域的水利厅专家库系统用于项目验收和抢险督查'
|
|
|
|
|
|
|
+ aiAnswer: '在医疗健康领域有复杂疾病协同决策和Ai医生分身与诊断辅助;在水利交通领域的水利厅专家库系统用于项目验收和抢险督查'
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|
|
@@ -605,6 +618,7 @@ const handleCloseAIDialog = () => {
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
<style scoped lang="scss">
|
|
|
@use 'sass:math';
|
|
@use 'sass:math';
|
|
|
|
|
+@use 'sass:color'; // 引入 color 模块
|
|
|
// 定义rpx转换函数
|
|
// 定义rpx转换函数
|
|
|
@function rpx($px) {
|
|
@function rpx($px) {
|
|
|
@return math.div($px, 750) * 100vw;
|
|
@return math.div($px, 750) * 100vw;
|
|
@@ -1054,7 +1068,7 @@ video.full-box-video::-webkit-media-controls-thumb {
|
|
|
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
&:hover {
|
|
|
- background: linear-gradient(to right, darken($primary-color, 5%), darken($secondary-color, 5%));
|
|
|
|
|
|
|
+ background: linear-gradient(to right, color.adjust($primary-color, $lightness: -5%), color.adjust($secondary-color, $lightness: -5%));
|
|
|
box-shadow: 0 rpx(3) rpx(10) rgba($primary-color, 0.4);
|
|
box-shadow: 0 rpx(3) rpx(10) rgba($primary-color, 0.4);
|
|
|
transform: translateY(-rpx(1));
|
|
transform: translateY(-rpx(1));
|
|
|
color: white;
|
|
color: white;
|
|
@@ -1187,6 +1201,18 @@ video.full-box-video::-webkit-media-controls-thumb {
|
|
|
text-indent: 1em;
|
|
text-indent: 1em;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+/* 定义淡入和缩放动画 */
|
|
|
|
|
+.fade-scale-enter-active,
|
|
|
|
|
+.fade-scale-leave-active {
|
|
|
|
|
+ transition: all 0.5s ease;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.fade-scale-enter-from,
|
|
|
|
|
+.fade-scale-leave-to {
|
|
|
|
|
+ opacity: 0.1;
|
|
|
|
|
+ transform: scale(0.9);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
// 自定义试题弹框背景
|
|
// 自定义试题弹框背景
|
|
|
.child-dialog-wrapper {
|
|
.child-dialog-wrapper {
|
|
|
position: fixed;
|
|
position: fixed;
|
|
@@ -1210,17 +1236,6 @@ video.full-box-video::-webkit-media-controls-thumb {
|
|
|
padding: rpx(20);
|
|
padding: rpx(20);
|
|
|
width: 60%;
|
|
width: 60%;
|
|
|
position: relative;
|
|
position: relative;
|
|
|
-
|
|
|
|
|
- // 添加装饰元素
|
|
|
|
|
- &::before {
|
|
|
|
|
- content: "";
|
|
|
|
|
- position: absolute;
|
|
|
|
|
- top: 0;
|
|
|
|
|
- left: 0;
|
|
|
|
|
- width: 100%;
|
|
|
|
|
- height: rpx(10);
|
|
|
|
|
- background: linear-gradient(90deg, $primary-color, $secondary-color, $accent-color);
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// AI对话弹框样式
|
|
// AI对话弹框样式
|
|
@@ -1343,7 +1358,7 @@ video.full-box-video::-webkit-media-controls-thumb {
|
|
|
transition: background-color 0.3s ease; // 颜色过渡效果
|
|
transition: background-color 0.3s ease; // 颜色过渡效果
|
|
|
|
|
|
|
|
&:hover {
|
|
&:hover {
|
|
|
- background-color: darken($primary-color, 10%); // 悬停时滑块颜色加深
|
|
|
|
|
|
|
+ //background-color: darken($primary-color, 10%); // 悬停时滑块颜色加深
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|