Commit 22c90075 authored by haiyoucuv's avatar haiyoucuv

整理一下代码

parent 866235d6
...@@ -47,10 +47,13 @@ export default class NoBoxPanel extends Panel { ...@@ -47,10 +47,13 @@ export default class NoBoxPanel extends Panel {
this.btnEnable(this.ok, false); this.btnEnable(this.ok, false);
const success = await GameMgr.ins.start(); const success = await GameMgr.ins.start();
this.btnEnable(this.ok, true); this.btnEnable(this.ok, true);
if (success) { if (!success) {
changeScene(MainGame); changeScene(HomeScene);
this.hidePanel(); this.hidePanel();
return;
} }
changeScene(MainGame);
this.hidePanel();
} }
/** /**
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
<script src="//yun.duiba.com.cn/polaris/SVGA.Lite.v2.1.1.d3a67cbc13c591c53c6f87ab34c57ce387010374.js" crossorigin="anonymous"></script> <script src="//yun.duiba.com.cn/polaris/SVGA.Lite.v2.1.1.d3a67cbc13c591c53c6f87ab34c57ce387010374.js" crossorigin="anonymous"></script>
<script src="//yun.duiba.com.cn/aurora/assets/2403d1edf2acd15b179306b6ddaa5f0967d78a8f.js"></script> <script src="//yun.duiba.com.cn/aurora/assets/2403d1edf2acd15b179306b6ddaa5f0967d78a8f.js"></script>
<link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1718965518389/style.css"/> <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1718965603979/style.css"/>
<style> <style>
.sui-captcha { .sui-captcha {
...@@ -94,17 +94,17 @@ ...@@ -94,17 +94,17 @@
</div> </div>
<!-- Polyfills bundle. --> <!-- Polyfills bundle. -->
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1718965518389/src/polyfills.bundle.js" charset="utf-8"></script> <script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1718965603979/src/polyfills.bundle.js" charset="utf-8"></script>
<!-- SystemJS support. --> <!-- SystemJS support. -->
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1718965518389/src/system.bundle.js" charset="utf-8"></script> <script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1718965603979/src/system.bundle.js" charset="utf-8"></script>
<!-- Import map --> <!-- Import map -->
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1718965518389/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script> <script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1718965603979/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>
<script> <script>
System.import('//yun.duiba.com.cn/db_games/ccc_game/template3d/1718965518389/index.js').catch(function (err) { System.import('//yun.duiba.com.cn/db_games/ccc_game/template3d/1718965603979/index.js').catch(function (err) {
console.error(err); console.error(err);
}) })
</script> </script>
......
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