Browse Source

修改分享

smallqiang 5 years ago
parent
commit
2879ba607b
4 changed files with 23 additions and 14 deletions
  1. 15 12
      assets/scene/game.fire
  2. 2 1
      assets/scripts/common/Platform.js
  3. 5 0
      assets/scripts/game/Game.js
  4. 1 1
      settings/builder.json

+ 15 - 12
assets/scene/game.fire

@@ -41,8 +41,8 @@
     },
     "_scale": {
       "__type__": "cc.Vec3",
-      "x": 0.3013376124437781,
-      "y": 0.3013376124437781,
+      "x": 0.35384621353193324,
+      "y": 0.35384621353193324,
       "z": 1
     },
     "_quat": {
@@ -328,6 +328,9 @@
     "myInfoTop": {
       "__id__": 7
     },
+    "grossNode": {
+      "__id__": 8
+    },
     "sidebar": {
       "__id__": 56
     },
@@ -733,7 +736,7 @@
     "_skewY": 0,
     "_zIndex": 0,
     "groupIndex": 0,
-    "_id": "45AoVUmPtJ5rWCuqev0xnb"
+    "_id": "9aYn30/W9BhLvWS80n/QvT"
   },
   {
     "__type__": "cc.Label",
@@ -758,7 +761,7 @@
     "_N$verticalAlign": 1,
     "_N$fontFamily": "Arial",
     "_N$overflow": 0,
-    "_id": "f0MjR7gd9AN45/Cg7oQocu"
+    "_id": "3bimRK99lIcaztothfxFXW"
   },
   {
     "__type__": "cc.LabelOutline",
@@ -776,7 +779,7 @@
       "a": 255
     },
     "_width": 3,
-    "_id": "82jRxk3RxFM6ohNIvYbQx4"
+    "_id": "61ybVljk9G6p+fCr4Zcovs"
   },
   {
     "__type__": "cc.RichText",
@@ -836,12 +839,12 @@
       "__id__": 8
     },
     "_enabled": true,
-    "alignMode": 1,
+    "alignMode": 2,
     "_target": null,
-    "_alignFlags": 18,
+    "_alignFlags": 17,
     "_left": 0,
     "_right": 0,
-    "_top": 0,
+    "_top": 40,
     "_bottom": 0,
     "_verticalCenter": 0,
     "_horizontalCenter": 0,
@@ -1831,7 +1834,7 @@
     "_skewY": 0,
     "_zIndex": 0,
     "groupIndex": 0,
-    "_id": "91iDWwP7pI2oEG93OHfh56"
+    "_id": "ffckjkwUVMCrh0tnS2v87b"
   },
   {
     "__type__": "cc.Label",
@@ -1856,7 +1859,7 @@
     "_N$verticalAlign": 1,
     "_N$fontFamily": "Arial",
     "_N$overflow": 0,
-    "_id": "70qRh9XCZHF6Pe7GY4zWJX"
+    "_id": "8aklNvd0BDB49kig5RWWC9"
   },
   {
     "__type__": "cc.RichText",
@@ -2276,7 +2279,7 @@
     "_skewY": 0,
     "_zIndex": 0,
     "groupIndex": 0,
-    "_id": "f1donZxWRLn7TpNawuBeoT"
+    "_id": "806mxoHv5P7IO3hMfB79AP"
   },
   {
     "__type__": "cc.Label",
@@ -2301,7 +2304,7 @@
     "_N$verticalAlign": 1,
     "_N$fontFamily": "Arial",
     "_N$overflow": 0,
-    "_id": "28F2jvwItBk4IYc3WR9OTr"
+    "_id": "d0JqYruL1BE79dxvyfwE/v"
   },
   {
     "__type__": "cc.RichText",

+ 2 - 1
assets/scripts/common/Platform.js

@@ -386,7 +386,7 @@ class Platform {
             /// 发通知更新跟定时器相关的数据
             GameEvent.fire(GameNotificationKey.GameShowNotificationKey);
 
-            console.log('plat onshow ======= ' + GameGlobal.clickShare);
+            console.log('游戏 onshow ========= ' + GameGlobal.clickShare);
             if (GameGlobal.clickShare) {
                 let onHideTime = cc.sys.localStorage.getItem('onHideTimestamp');
 
@@ -436,6 +436,7 @@ class Platform {
     }
 
     static handelOnHide() {
+        console.log('游戏 onhide =========== ');
         GameGlobal.isOnHide = true;
         if (GameModule.userInfo) {
             GameModule.userInfo.doReport();

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

@@ -22,6 +22,7 @@ cc.Class({
         levelHomePrefab: cc.Prefab,
 
         myInfoTop: cc.Node,
+        grossNode: cc.Node,
 
         sidebar: cc.Node,
 
@@ -114,6 +115,10 @@ cc.Class({
             this.messageListNode.getComponent(cc.Widget).top = 250 + 30;
         }
 
+        if (window.tt != undefined) {
+            this.grossNode.getComponent(cc.Widget).top = tt.getMenuButtonLayout().top;
+        }
+
         this.additionTipsNode = this.additionTipsNode.getComponent('AdditionTips');
         if (GameGlobal.shareType == ShareAction.SHOW_GROUP_RANK && GameGlobal.shareTicket.length > 0) {
             if (this.homeGuide.guideState.state1.pass) {

+ 1 - 1
settings/builder.json

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