|
@@ -116,6 +116,8 @@ class DownloadManagerScene extends scene {
|
|
|
// 删除按钮是否可点击
|
|
|
let delDisable = downloadStatus === Consts.DOWNLOAD_STATUS_ONGOING ? true : false;
|
|
|
let feRole = delDisable ? '' : 'fe-role="Widget"';
|
|
|
+ let delImg = delDisable ? '<img src="./assets/img/DownloadScene/download_del_disable_btn.png" class="img-btn"/> '
|
|
|
+ : '<img src="./assets/img/DownloadScene/download_del_btn.png" class="img-btn"/>'
|
|
|
|
|
|
if (!rec['lessonName']) {
|
|
|
rec['lessonName'] = rec['courseName'];
|
|
@@ -131,9 +133,7 @@ class DownloadManagerScene extends scene {
|
|
|
<div id="enter-btn-lesson-${rec['lessonId']}" class="download-enter-btn" fe-role="Widget" data-id="${rec['lessonId']}">
|
|
|
<img src="./assets/img/DownloadScene/download_enter_btn.png" class="img-btn"/>
|
|
|
</div>
|
|
|
- <div id="del-btn-lesson-${rec['lessonId']}" class="download-del-btn" ${feRole} data-id="${rec['lessonId']}" >
|
|
|
- <img src="./assets/img/DownloadScene/download_del_btn.png" class="${delDisable ? 'img-disable-btn' : 'img-btn'}"/>
|
|
|
- </div>
|
|
|
+ <div id="del-btn-lesson-${rec['lessonId']}" class="download-del-btn" ${feRole} data-id="${rec['lessonId']}" >${delImg}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>`
|