Commit d557c1ea authored by 邱旭's avatar 邱旭

1

parent d68ee068
...@@ -31,7 +31,7 @@ export default class TaskCenterNoPrize extends Panel { ...@@ -31,7 +31,7 @@ export default class TaskCenterNoPrize extends Panel {
// 修改按钮监听 // 修改按钮监听
// 修改提示文案 // 修改提示文案
this.btnLabel.text = (taskData.limit == taskData.done) ? "继续闯关" : (taskData.tips || '继续完成'); this.btnLabel.text = (taskData.limit == taskData.done) ? "继续闯关" : (taskData.tips || '继续完成');
this.btnLabel.addEventListener(egret.TouchEvent.TOUCH_TAP, () => { this.btn.addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
if(taskData.limit == taskData.done) { if(taskData.limit == taskData.done) {
// 去闯关 // 去闯关
if((getHomeData().levels.length + 1) > window['last_level']) { if((getHomeData().levels.length + 1) > window['last_level']) {
...@@ -41,7 +41,8 @@ export default class TaskCenterNoPrize extends Panel { ...@@ -41,7 +41,8 @@ export default class TaskCenterNoPrize extends Panel {
} }
PanelCtrl.instance.show("StartPanel", getHomeData().levels.length + 1); PanelCtrl.instance.show("StartPanel", getHomeData().levels.length + 1);
} else { } else {
window.open(taskData.data.appIncompletelink); window.open(taskData.appIncompletelink);
super.hidePanel();
} }
}, this); }, this);
......
...@@ -31,7 +31,7 @@ export default class TaskCenterPrize extends Panel { ...@@ -31,7 +31,7 @@ export default class TaskCenterPrize extends Panel {
if(taskData.limit == taskData.done) { if(taskData.limit == taskData.done) {
NetManager.ins.showLog(getlogItem(66)); NetManager.ins.showLog(getlogItem(66));
} }
this.btnLabel.addEventListener(egret.TouchEvent.TOUCH_TAP, () => { this.btn.addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
if(taskData.limit == taskData.done) { if(taskData.limit == taskData.done) {
NetManager.ins.clickLog(getlogItem(66)); NetManager.ins.clickLog(getlogItem(66));
// 去闯关 // 去闯关
...@@ -42,7 +42,8 @@ export default class TaskCenterPrize extends Panel { ...@@ -42,7 +42,8 @@ export default class TaskCenterPrize extends Panel {
} }
PanelCtrl.instance.show("StartPanel", getHomeData().levels.length + 1); PanelCtrl.instance.show("StartPanel", getHomeData().levels.length + 1);
} else { } else {
window.open(taskData.data.appIncompletelink); window.open(taskData.appIncompletelink);
super.hidePanel();
} }
}, this); }, this);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment