Quellcode durchsuchen

更新 'games/yqrxd/launcher/egret_loader.js'

yunhaipiaodi vor 6 Jahren
Ursprung
Commit
7801f6c3ef
1 geänderte Dateien mit 3 neuen und 7 gelöschten Zeilen
  1. 3 7
      games/yqrxd/launcher/egret_loader.js

+ 3 - 7
games/yqrxd/launcher/egret_loader.js

@@ -48,15 +48,11 @@ egret_h5.startGame = function () {
             }
           	
           	if(e && e.keyCode == 13){       
-                if(rootContainer.curIsHomePage()){      //首页
+                 if(rootContainer.curIsHomePage()){      //首页
                     rootContainer.enterInfoPage();
-                }
-
-                if(rootContainer.curIsInfoPage()){      //内容页
+                }else if(rootContainer.curIsInfoPage()){      //内容页
                     rootContainer.startToGame();
-                }
-              
-              	  if(rootContainer.curIsGamePage()){      //游戏页
+                }else if(rootContainer.curIsGamePage()){      //游戏页
                     rootContainer.restartGame();
                 }
             }