瀏覽代碼

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

yunhaipiaodi 6 年之前
父節點
當前提交
7801f6c3ef
共有 1 個文件被更改,包括 3 次插入7 次删除
  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();
                 }
             }