@@ -320,6 +320,7 @@
},
data() {
return {
+ trueFalse: true,
audiences:'',
isCrowd:false,
cutOrgNamePath,
@@ -444,6 +445,7 @@
}
treeList.push(treeNode);
});
+ console.log(treeList,'treeList')
return treeList;
}
},
@@ -1188,6 +1190,7 @@
audiences:this.audiences
}).then(rs => {
if (rs.status == 200) {
+ this.contentStudysLength = rs.result.contentStudys
if(rs.result.contents.length==0){
$this.$message.error('课程内容已删除或课程已不再使用');
return;
@@ -1582,7 +1585,25 @@
},
heartabtwo() {
this.tab = 2
- }
+ },
+ handleAudioTimeUpdate(currentTime) {
+ // if(this.contentStudysLength.length == 0){
+ let params = {
+ studyId: this.studyId, //学习id,
+ courseId: this.courseId, //课程id,
+ contentId: this.contentData.id, //内容id,
+ contentType: this.contentData.contentType,
+ contentName: this.contentData.contentName, //内容名称
+ progress: 1,
+ status: 2,
+ contentTotal: this.totalContent
+ };
+ if(currentTime > 2 && this.trueFalse){
+ apiStudy.studyContent(params)
+ this.trueFalse = false
+ }
+ // }
+ },
},
}