Commit c3265068 authored by wildfirecode's avatar wildfirecode

1

parent 15baa120
...@@ -8,6 +8,7 @@ import { PassType } from "../something/enum/PassType"; ...@@ -8,6 +8,7 @@ import { PassType } from "../something/enum/PassType";
import { getPropNums } from "../getHomeData"; import { getPropNums } from "../getHomeData";
import PropType from "../PropType"; import PropType from "../PropType";
import hdGameDoDojoin from "../../libs/new_tw/ctrls/hdGameDoDojoin"; import hdGameDoDojoin from "../../libs/new_tw/ctrls/hdGameDoDojoin";
import Loading from "../../libs/new_wx/components/Loading";
export default class StartPanel extends Panel { export default class StartPanel extends Panel {
private _level; private _level;
...@@ -44,8 +45,7 @@ export default class StartPanel extends Panel { ...@@ -44,8 +45,7 @@ export default class StartPanel extends Panel {
} }
onTap_startBtn() { onTap_startBtn() {
this.hidePanel(); Loading.instace.show();
// this.enabled
this['startBtn'].enabled = false; this['startBtn'].enabled = false;
try { try {
if (window['getRST']) window['getRST'](); if (window['getRST']) window['getRST']();
...@@ -54,8 +54,10 @@ export default class StartPanel extends Panel { ...@@ -54,8 +54,10 @@ export default class StartPanel extends Panel {
} }
hdGameDoDojoin((success) => { hdGameDoDojoin((success) => {
Loading.instace.hide();
this['startBtn'].enabled = true; this['startBtn'].enabled = true;
if (success) { if (success) {
this.hidePanel();
SceneCtrl.instance.change(ModuleTypes.MAIN_SCENE, { chapter: this._level }); SceneCtrl.instance.change(ModuleTypes.MAIN_SCENE, { chapter: this._level });
} }
}, this._level) }, this._level)
......
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