diff --git a/src/assets/images/ban.png b/src/assets/images/ban.png new file mode 100644 index 00000000..dd0cba3e Binary files /dev/null and b/src/assets/images/ban.png differ diff --git a/src/assets/images/ban1.png b/src/assets/images/ban1.png new file mode 100644 index 00000000..dd0cba3e Binary files /dev/null and b/src/assets/images/ban1.png differ diff --git a/src/assets/images/newBan.png b/src/assets/images/newBan.png new file mode 100644 index 00000000..8d99fc3e Binary files /dev/null and b/src/assets/images/newBan.png differ diff --git a/src/assets/images/not.png b/src/assets/images/not.png new file mode 100644 index 00000000..a3a02f57 Binary files /dev/null and b/src/assets/images/not.png differ diff --git a/src/assets/images/not1.png b/src/assets/images/not1.png new file mode 100644 index 00000000..d021d1b7 Binary files /dev/null and b/src/assets/images/not1.png differ diff --git a/src/assets/images/notNew.png b/src/assets/images/notNew.png new file mode 100644 index 00000000..32395aa8 Binary files /dev/null and b/src/assets/images/notNew.png differ diff --git a/src/assets/images/nowNot.png b/src/assets/images/nowNot.png new file mode 100644 index 00000000..1ce91018 Binary files /dev/null and b/src/assets/images/nowNot.png differ diff --git a/src/assets/images/over.png b/src/assets/images/over.png new file mode 100644 index 00000000..ed62321d Binary files /dev/null and b/src/assets/images/over.png differ diff --git a/src/views/study/coursenew.vue b/src/views/study/coursenew.vue index 6e41a945..bf809265 100644 --- a/src/views/study/coursenew.vue +++ b/src/views/study/coursenew.vue @@ -170,13 +170,51 @@
-
+
+ + + + +
+ +
+
{{i+1}}. {{ ele.contentName }}
+
+ 学习中 + + + + + + + +
+
+
+
+
+
+
+
+
@@ -320,6 +358,9 @@ }, data() { return { + activeId: '', + isFalse: false, + defaultOpeneds: [], sendEventProgress: 0, trueFalse: true, audiences:'', @@ -455,6 +496,16 @@ this.stopStudyTime(); }, methods: { + handleOpen(key,path){ + // console.log(key,path,'handleOpen') + if(this.isFalse){ + this.defaultOpeneds = [key] + } + this.isFalse = false + }, + handleClose(key,path){ + // console.log(key,path,'handleClose') + }, toUserHome(tea){ this.$router.push({path:this.$xpage.getHomePath(tea.teacherId)}) }, @@ -593,7 +644,7 @@ window.open(url, '_blank'); }, //替换播放区域 - changePlayRes(r){ + changePlayRes(r,item){ if(this.appendStudyOtherHandle!=null){ window.clearTimeout(this.appendStudyOtherHandle); @@ -604,6 +655,11 @@ let $this = this; this.resType = r.contentType; this.contentData = r; + this.activeId = this.contentData.id + if(item){ + this.isFalse = true + this.handleOpen(item.section.id,[item.section.id]) + } this.contentData.name = this.courseInfo.name; this.saveStudyDuration(); @@ -738,7 +794,7 @@ //console.log(h,$this.controlHeight,'$this.controlHeight'); }) }, - showRes(r, i, index) { //i:子节下标,index:章下标 + showRes(r, i, index,item) { //i:子节下标,index:章下标 // 无权限查看不能点击 if(!this.isCrowd){ return @@ -786,7 +842,7 @@ } } } - this.changePlayRes(r); + this.changePlayRes(r,item); }, loadScorePraiseAndTrample() { //加载是否请过分 @@ -1537,7 +1593,7 @@ finishStudyItem() { //设置完成学习的内容,针对于音视频的内容 if (!this.contentData.studyItemId) { - // 这种可能没有,不过这里也是为了万中那个1 + //这种可能没有,不过这里也是为了万中那个1 this.saveStudyInfo(); } else { let params = { @@ -1618,7 +1674,31 @@