|
@@ -346,19 +346,17 @@ class CourseScene extends scene {
|
|
|
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.con.classList.contains('download-btn-lesson-icon-ready')) {
|
|
|
- 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(课列表)
|
|
|
- // 当前是否是正在下载的课件,禁止重新下载行为等待下载动作结束
|
|
|
+ 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;
|
|
|
//检查课的权限
|
|
@@ -419,9 +417,9 @@ class CourseScene extends scene {
|
|
|
//点击课的下载按钮
|
|
|
if (e.target.con.classList.contains('download-btn-lesson-list-ready')
|
|
|
|| e.target.con.classList.contains('download-btn-lesson-icon-ready')) {
|
|
|
- let courseID = this.id;
|
|
|
+ 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;
|
|
|
|