Merge branch 'player-20251117-v1' into master-20251210

This commit is contained in:
joshen
2025-12-10 17:27:20 +08:00
3 changed files with 35 additions and 19 deletions

View File

@@ -1,7 +1,7 @@
<template>
<div class="ai-script">
<!-- 搜索和语言选择区域 -->
<div class="search-container">
<div v-if="selectableLang && selectableLang.length > 0" class="search-container">
<el-input
v-model="searchKeyword"
placeholder="请输入关键词查找文稿内容"
@@ -21,7 +21,7 @@
</div>
<!-- 内容展示区域 -->
<div class="content-container">
<div v-if="selectableLang && selectableLang.length > 0" class="content-container">
<!-- 动态渲染内容块 -->
<div v-for="(item, index) in contentList" :key="index" class="content-item" :class="{'active': currentTime >= item.start && currentTime <= item.end}">
<div class="timestamp">
@@ -35,6 +35,10 @@
</el-card>
</div>
</div>
<div v-else class="no-data">
<img src="../../assets/images/course/noData.png" alt="">
<span >生成中过程可能耗时较长<br>无需在此等待哦</span>
</div>
</div>
</template>
@@ -299,21 +303,20 @@ export default {
flex: 1;
}
:deep(.el-input__inner) {
border-radius: 20px;
::v-deep .el-input__inner {
border-color: #2688FF;
}
:deep(.el-input__inner:focus) {
::v-deep .el-input__inner:focus {
border-color: #1a6fe0;
box-shadow: 0 0 0 2px rgba(38, 136, 255, 0.2);
}
:deep(.el-input__prefix) {
left: 15px;
::v-deep .el-input__prefix {
left: 5px;
}
:deep(.el-input__icon) {
::v-deep .el-input__icon {
color: #2688FF;
}
@@ -332,9 +335,6 @@ export default {
width: 90px;
}
:deep(.el-select__inner) {
border-radius: 4px;
}
.content-container {
display: flex;
@@ -370,10 +370,6 @@ export default {
}
}
:deep(.el-icon-time) {
color: #2688FF;
}
.content-text {
cursor: pointer;
line-height: 1.6;
@@ -404,7 +400,9 @@ export default {
:deep(.el-card.is-hover-shadow:focus, .el-card.is-hover-shadow:hover) {
box-shadow: 0 2px 12px 0 rgba(38, 136, 255, 0.2);
}
:deep(.el-input__inner) {
border-radius: 4px!important;
}
/* 响应式设计 */
@media (max-width: 768px) {
.search-container {
@@ -420,4 +418,22 @@ export default {
justify-content: flex-end;
}
}
.no-data{
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
padding-top: 60px;
color: rgba(0, 0, 0, 0.34);
font-size: 12px;
font-weight: 400;
line-height: 21px;
letter-spacing: 0.26px;
text-align: center;
img{
width: 96px;
height: 50px;
}
}
</style>

View File

@@ -220,7 +220,7 @@
</div>
</div>
<!-- <img slot="reference" src="../../../assets/images/course/courseAbstract.png" alt="摘要" style="width: 94px;height: 44px;margin-left: -10px;"> -->
<img v-show="cinfo.aiAbstract == 1" slot="reference" src="../../../assets/images/course/courseAbstract.png" alt="摘要" style="width: 94px;height: 44px;margin-left: -10px;">
<img v-show="cinfo.aiSet == 1 && cinfo.aiAbstract == 1" slot="reference" src="../../../assets/images/course/courseAbstract.png" alt="摘要" style="width: 94px;height: 44px;margin-left: -10px;">
</el-popover>
<div class="course-info-user" style="max-width: 100px;" v-if="cinfo.teacher">
<el-tooltip :content="cinfo.teacher" placement="bottom" effect="light">

View File

@@ -376,7 +376,7 @@
<!-- ai播放器相关 开发阶段先放开 v-if="courseInfo.aiDraft == 1" -->
<div
@click="heartabthree"
v-if="courseInfo.aiDraft == 1 && contentData.contentType == 10"
v-if="courseInfo.aiSet == 1 && courseInfo.aiDraft == 1 && contentData.contentType == 10"
:class="tab == 3 ? 'control-tab-active' : ' '"
style="position: relative"
>
@@ -669,7 +669,7 @@
<!-- ai播放器相关 -->
<div
@click="coutab(4)"
v-if="courseInfo.aiAbstract == 1"
v-if="courseInfo.aiSet == 1 && courseInfo.aiAbstract == 1"
style="position: relative;"
:class="courestab == 4 ? 'course-info-tab-active' : ''"
>