Pārlūkot izejas kodu

修改首页界面

smallqiang 5 gadi atpakaļ
vecāks
revīzija
deca853eae
2 mainītis faili ar 4 papildinājumiem un 2 dzēšanām
  1. 2 0
      assets/scripts/game/Game.js
  2. 2 2
      settings/builder.json

+ 2 - 0
assets/scripts/game/Game.js

@@ -116,6 +116,8 @@ cc.Class({
 
             if (window.tt != undefined) {
                 this.grossNode.getComponent(cc.Widget).top = 60;
+            } else {
+                this.grossNode.getComponent(cc.Widget).isAlignVerticalCenter = true;
             }
         }
 

+ 2 - 2
settings/builder.json

@@ -37,8 +37,8 @@
   "title": "taptapstar",
   "webOrientation": "auto",
   "wechatgame": {
-    "REMOTE_SERVER_ROOT": "https://pub.dwstatic.com/wxgame/taptapstar_toutiao_test",
-    "appid": "ttb715c1a8283f029e",
+    "REMOTE_SERVER_ROOT": "https://pub.dwstatic.com/wxgame/taptapstar_test",
+    "appid": "wx36581990a2e76fba",
     "isSubdomain": false,
     "orientation": "portrait",
     "subContext": ""