Commit 99c316b4 authored by liujiangnan's avatar liujiangnan

debug

parent 2fe97c16
...@@ -1992,12 +1992,12 @@ ...@@ -1992,12 +1992,12 @@
} }
], ],
"_prefab": null, "_prefab": null,
"_opacity": 0, "_opacity": 187,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 0, "r": 255,
"g": 0, "g": 255,
"b": 0, "b": 255,
"a": 255 "a": 255
}, },
"_contentSize": { "_contentSize": {
......
...@@ -136,6 +136,7 @@ export default class NewClass extends middleLayerBase { ...@@ -136,6 +136,7 @@ export default class NewClass extends middleLayerBase {
initListener() { initListener() {
const exitBtn = cc.find('middleLayer/ExitBtn'); const exitBtn = cc.find('middleLayer/ExitBtn');
buttonOnClick(exitBtn, () => { buttonOnClick(exitBtn, () => {
this.showConfirm("还没有完成哦!确定离开吗?", ()=>{
cc.find('middleLayer/BtnRight').active = false; cc.find('middleLayer/BtnRight').active = false;
cc.find('middleLayer/BtnLeft').active = false; cc.find('middleLayer/BtnLeft').active = false;
...@@ -143,9 +144,12 @@ export default class NewClass extends middleLayerBase { ...@@ -143,9 +144,12 @@ export default class NewClass extends middleLayerBase {
cc.audioEngine.stopAll(); cc.audioEngine.stopAll();
(<any>window).courseware.freeAllOcMethod(); (<any>window).courseware.freeAllOcMethod();
this.loadOnlineBundle('NJ_QianShuiTing'); this.loadOnlineBundle('NJ_QianShuiTing');
});
}); });
buttonOnClick(cc.find('middleLayer/BtnRight'), () => { buttonOnClick(cc.find('middleLayer/BtnRight'), () => {
this.showConfirm("还有任务没完成哦!确定跳过吗?", ()=>{
this.goNextPage(); this.goNextPage();
});
}); });
buttonOnClick(cc.find('middleLayer/BtnLeft'), () => { buttonOnClick(cc.find('middleLayer/BtnLeft'), () => {
this.goPrePage(); this.goPrePage();
......
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