Commit c8dd5e2e authored by liujiangnan's avatar liujiangnan

feat

parent 883f6e6b
...@@ -326,14 +326,14 @@ export default class NewClass extends middleLayerBase { ...@@ -326,14 +326,14 @@ export default class NewClass extends middleLayerBase {
star.active = true; star.active = true;
star.getComponent(dragonBones.ArmatureDisplay).playAnimation('normal', 1); star.getComponent(dragonBones.ArmatureDisplay).playAnimation('normal', 1);
setTimeout(() => { // setTimeout(() => {
this.showConfirm('还想再来一次吗?', () => { // this.showConfirm('还想再来一次吗?', () => {
this.hideGetParterAnim(); // this.hideGetParterAnim();
// 识别页 // // 识别页
const gameSelectData = this.getData('NJ_game_select'); // const gameSelectData = this.getData('NJ_game_select');
this.loadOnlineCourseWare(gameSelectData.courseId, true); // this.loadOnlineCourseWare(gameSelectData.courseId, true);
}, () => { // }, () => {
// 潜水艇页 // 潜水艇页
this.hideGetParterAnim(); this.hideGetParterAnim();
cc.find('middleLayer/BtnRight').active = false; cc.find('middleLayer/BtnRight').active = false;
...@@ -348,8 +348,8 @@ export default class NewClass extends middleLayerBase { ...@@ -348,8 +348,8 @@ export default class NewClass extends middleLayerBase {
} else if (idx == '2') { } else if (idx == '2') {
this.loadOnlineBundle('NJ_NongChang'); this.loadOnlineBundle('NJ_NongChang');
} }
}); // });
}, 1000); // }, 1000);
} }
hideGetParterAnim() { hideGetParterAnim() {
......
...@@ -532,8 +532,8 @@ export function buttonOnClick(button: cc.Node, callback: Function, scale = 1.0) ...@@ -532,8 +532,8 @@ export function buttonOnClick(button: cc.Node, callback: Function, scale = 1.0)
.to(0.1, { scale: scale * 1.1 }) .to(0.1, { scale: scale * 1.1 })
.to(0.1, { scale: scale }) .to(0.1, { scale: scale })
.call(() => { .call(() => {
button['cantClick'] = false;
callback && callback(); callback && callback();
button['cantClick'] = false;
}) })
.start(); .start();
}); });
......
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