|
@@ -346,8 +346,18 @@ class CourseScene extends scene {
|
|
|
this.showScene(require('./DownloadTipScene.js'), {});
|
|
|
return;
|
|
|
}
|
|
|
+
|
|
|
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'), {});
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
if (e.target.con.classList.contains('text-wrapper')) {
|
|
|
let i = 0;
|
|
|
for (i < e.target.parentWidget.childWidgets; i++;) {
|
|
@@ -419,7 +429,6 @@ class CourseScene extends scene {
|
|
|
|| e.target.con.classList.contains('download-btn-lesson-icon-ready')) {
|
|
|
let courseID = this.id;
|
|
|
let courseName = this.title;
|
|
|
- TVUtil.Toast.show('点击下载', 1500);
|
|
|
let lessonID = e.target.con.dataset.id;
|
|
|
let lessonName = e.target.con.dataset.name;
|
|
|
|