Commit 08da83bb authored by liujiangnan's avatar liujiangnan

feat: 弹窗

parent 9aca0a4c
......@@ -149,8 +149,9 @@ export default class NewClass extends middleLayerBase {
if (this.courseItem && this.courseItem.template_name=="NJ_game_select") {
// 如果是纸书索引页面则直接返回
exit();
} else {
this.showConfirm("还没有完成哦!确定离开吗?", exit);
}
this.showConfirm("还没有完成哦!确定离开吗?", exit);
});
buttonOnClick(cc.find('middleLayer/BtnRight'), () => {
this.showConfirm("还有任务没完成哦!确定跳过吗?", ()=>{
......
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