+
进 入 实 验
@@ -70,16 +71,18 @@
课程简介
- {{ briefIntroduction }}123
+ {{ briefIntroduction }}
课程目标
{{ teachingObjectives }}
+
@@ -144,13 +147,17 @@ export default {
async getData() {
let { data } = await this.$post(`${this.api.curriculumDetail}?cid=${this.courseId}`);
this.courseName = data.curriculumName;
- this.coverUrl = data.coverUrl;
+ // this.coverUrl = data.coverUrl;
this.briefIntroduction = data.briefIntroduction;
this.teachingObjectives = data.teachingObjectives;
},
async getChapter() {
let res = await this.$get(`${this.api.curriculumChapter}/${this.courseId}`);
this.videoList = res.chapterList;
+ if (this.videoList.length && this.videoList[0].subsectionList && this.videoList[0].subsectionList.length) {
+ // console.log(this.videoList[0].subsectionList[0]);
+ this.preview(this.videoList[0].subsectionList[0]);
+ }
},
// 插入阿里云播放器脚本
insertScript() {
@@ -210,7 +217,7 @@ export default {
this.pdfSrc = row.fileUrl;
this.pdfVisible = true;
} else {
- this.$get(`${this.api.getSubsection}/${row.id}`).then(res => {
+ this.$get(`${this.api.curriculumGetSubsection}/${row.id}`).then(res => {
if (row.fileType == "pptx") {
this.isPPT = true;
this.isWord = false;
@@ -356,7 +363,7 @@ $height: 700px;
margin-left: 40px;
}
.list{
- height: calc(700px - 50px) ;
+ height: calc(700px - 70px) ;
overflow-y: auto;
padding: 24px 16px;
background: #fff;