Commit c3265068 authored by wildfirecode's avatar wildfirecode

1

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