|
@@ -9,6 +9,7 @@ class DelConfirmScene extends scene {
|
|
|
'isParentShow': true
|
|
|
}, () => {
|
|
|
let delName = document.querySelector('#del-name');
|
|
|
+
|
|
|
if ('ShopCartScene' == data.parentScene) {
|
|
|
delName.innerHTML = `确认删除“${data.title}”吗?`;
|
|
|
this.moye.root.reRender();
|
|
@@ -21,15 +22,19 @@ class DelConfirmScene extends scene {
|
|
|
};
|
|
|
return;
|
|
|
}
|
|
|
- delName.innerHTML = `确认删除“${data.title}”吗?`;
|
|
|
- this.moye.root.reRender();
|
|
|
- // 默认光标指向取消按钮
|
|
|
- this.moye.root.getWidgetById('cancle-btn').focus();
|
|
|
- // 记录下课id
|
|
|
- this.store = {
|
|
|
- lessonId: data.lessonId,
|
|
|
- parentScene: data.parentScene,
|
|
|
- };
|
|
|
+ if ('DownloadManagerScene' == data.parentScene) {
|
|
|
+ delName.innerHTML = `确认删除“${data.title}”吗?`;
|
|
|
+ this.moye.root.reRender();
|
|
|
+ // 默认光标指向取消按钮
|
|
|
+ this.moye.root.getWidgetById('cancle-btn').focus();
|
|
|
+ // 记录下课id
|
|
|
+ this.store = {
|
|
|
+ lessonId: data.lessonId,
|
|
|
+ parentScene: data.parentScene,
|
|
|
+ };
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
});
|
|
|
}
|
|
|
|
|
@@ -56,7 +61,7 @@ class DelConfirmScene extends scene {
|
|
|
// 在使用Atv时Id对应:e.target.id
|
|
|
// 非使用Atv是Id对应:e.target.id
|
|
|
onOK(e) {
|
|
|
- let parentScene = this.store['parentScene'];
|
|
|
+ let parentScene = this.store['parentScene'];
|
|
|
delete this.store.parentScene;
|
|
|
if (e.target.con.id == 'del-btn') {
|
|
|
this.store.isDelete = true;
|