Kaynağa Gözat

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

yunhaipiaodi 6 yıl önce
ebeveyn
işleme
7801f6c3ef
1 değiştirilmiş dosya ile 3 ekleme ve 7 silme
  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();
                 }
             }