浏览代码

修改首页界面

smallqiang 5 年之前
父节点
当前提交
deca853eae
共有 2 个文件被更改,包括 4 次插入2 次删除
  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": ""