Commit d557c1ea authored by 邱旭's avatar 邱旭

1

parent d68ee068
......@@ -31,7 +31,7 @@ export default class TaskCenterNoPrize extends Panel {
// 修改按钮监听
// 修改提示文案
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((getHomeData().levels.length + 1) > window['last_level']) {
......@@ -41,7 +41,8 @@ export default class TaskCenterNoPrize extends Panel {
}
PanelCtrl.instance.show("StartPanel", getHomeData().levels.length + 1);
} else {
window.open(taskData.data.appIncompletelink);
window.open(taskData.appIncompletelink);
super.hidePanel();
}
}, this);
......
......@@ -31,7 +31,7 @@ export default class TaskCenterPrize extends Panel {
if(taskData.limit == taskData.done) {
NetManager.ins.showLog(getlogItem(66));
}
this.btnLabel.addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
this.btn.addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
if(taskData.limit == taskData.done) {
NetManager.ins.clickLog(getlogItem(66));
// 去闯关
......@@ -42,7 +42,8 @@ export default class TaskCenterPrize extends Panel {
}
PanelCtrl.instance.show("StartPanel", getHomeData().levels.length + 1);
} else {
window.open(taskData.data.appIncompletelink);
window.open(taskData.appIncompletelink);
super.hidePanel();
}
}, 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