|
@@ -349,24 +349,17 @@ class CourseScene extends scene {
|
|
|
|
|
|
if (e.target.con.classList.contains('img-wrapper') || e.target.con.classList.contains('text-wrapper')) {
|
|
|
// 课件模版 COURSE_WARE_VIDEO(课视频模版) COURSE_WARE_LIST(课列表)
|
|
|
+
|
|
|
var targetSeq =(e.target.id).split("lesson-btn-")[1];
|
|
|
let downloadElements = document.getElementsByClassName('download-btn-lesson-list-ongoing');
|
|
|
for ( let i = 0;i< downloadElements.length;i++) {
|
|
|
let goingAeq = downloadElements[i].getAttribute("data-seq");
|
|
|
if( targetSeq == goingAeq ) {
|
|
|
this.showScene(require('./DownloadTipScene.js'), {});
|
|
|
+ return;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (e.target.con.classList.contains('text-wrapper')) {
|
|
|
- let i = 0;
|
|
|
- for (i < e.target.parentWidget.childWidgets; i++;) {
|
|
|
- if(e.target.parentWidget.childWidgets[i].con.classList.contains('download-btn-lesson-list-ongoing') || e.target.parentWidget.childWidgets[i].con.classList.contains('download-btn-lesson-icon-ready')) {
|
|
|
- this.showScene(require('./DownloadTipScene.js'), {});
|
|
|
- return;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
|
|
|
let id = e.target.con.dataset.id;
|
|
|
//检查课的权限
|