2 Commits 5d56745aaa ... ab72f9e8c7

Author SHA1 Message Date
  tang biao ab72f9e8c7 修改提现 5 years ago
  tang biao f5b61ff1f8 修改商城和提现 5 years ago

+ 11 - 7
assets/resources/prefabs/precedence/draw_content.prefab

@@ -660,7 +660,7 @@
     "asset": {
       "__uuid__": "ccee106e-a016-4055-9d7e-3862f77f1109"
     },
-    "fileId": "cdTdk0ACtJW5yc/d+ao4NZ",
+    "fileId": "5dFDgdFEFEpbGrbVtfdPvq",
     "sync": false
   },
   {
@@ -1529,7 +1529,7 @@
     "asset": {
       "__uuid__": "ccee106e-a016-4055-9d7e-3862f77f1109"
     },
-    "fileId": "38yIf3zsFNXJE7SzB3yLHM",
+    "fileId": "14RuiQHXtP7ryEPfPoTiZr",
     "sync": false
   },
   {
@@ -1628,7 +1628,7 @@
     "asset": {
       "__uuid__": "ccee106e-a016-4055-9d7e-3862f77f1109"
     },
-    "fileId": "3c+d1QxQ9H368MVym3THq2",
+    "fileId": "77df/HDelHw7cMFD1kCTht",
     "sync": false
   },
   {
@@ -2316,7 +2316,7 @@
     "asset": {
       "__uuid__": "ccee106e-a016-4055-9d7e-3862f77f1109"
     },
-    "fileId": "13FPUlgcFP2pKFTJ5Yl7O7",
+    "fileId": "0diqsoDc9CDavkBQev6uiU",
     "sync": false
   },
   {
@@ -2415,7 +2415,7 @@
     "asset": {
       "__uuid__": "ccee106e-a016-4055-9d7e-3862f77f1109"
     },
-    "fileId": "87GVtyTHZOJoJqjddvQkDI",
+    "fileId": "0cJLfuwnlDsLtteo3uF7CN",
     "sync": false
   },
   {
@@ -3115,7 +3115,7 @@
     "asset": {
       "__uuid__": "ccee106e-a016-4055-9d7e-3862f77f1109"
     },
-    "fileId": "eajVuXZiZA86v+rNclIijq",
+    "fileId": "c2rvwwyclKa4xxU2UlVWGA",
     "sync": false
   },
   {
@@ -3214,7 +3214,7 @@
     "asset": {
       "__uuid__": "ccee106e-a016-4055-9d7e-3862f77f1109"
     },
-    "fileId": "a3wFEB6vhOF7Av0+ZcyKo9",
+    "fileId": "39EHkLruZCp7+hE+9CNM07",
     "sync": false
   },
   {
@@ -4367,6 +4367,10 @@
     "drawMoneyLabel": {
       "__id__": 112
     },
+    "drawRecordButton": {
+      "__id__": 122
+    },
+    "_adState": 0,
     "_id": ""
   },
   {

+ 6 - 0
assets/scripts/draw/DrawContent.js

@@ -26,6 +26,8 @@ cc.Class({
         shareActionNode: cc.Node,
         drawMoneyLabel: cc.RichText,
 
+        drawRecordButton: cc.Button,
+
         /// 1视频广告  0普通分享
         _adState: 0
     },
@@ -33,6 +35,10 @@ cc.Class({
      // LIFE-CYCLE CALLBACKS:
 
     onLoad () {
+        ///头条隐藏提现
+        if (window.tt !== undefined) {
+            this.drawRecordButton.node.active = false;
+        }
         this.setUpUIIsShow(false);
         if (GameGlobal.isCheck) {
             this.shareActionNode.active = false;

+ 4 - 4
assets/scripts/game/Game.js

@@ -52,7 +52,7 @@ cc.Class({
     // LIFE-CYCLE CALLBACKS:
 
     onLoad () {
-        this.isShowBar = false;
+        GameGlobal.isShowBar = false;
         this._isTimer = false;
         this.winSize = cc.view.getVisibleSize();
         GameGlobal.winSize = this.winSize;
@@ -376,7 +376,7 @@ cc.Class({
             return;
         }
 
-        this.isShowBar = true;
+        GameGlobal.isShowBar = true;
         let action = cc.moveBy(0.3, cc.v2(-this.sidebar.width, 0));
         this.sidebar.runAction(action);
         this.sliderNode.getComponent('HomeSideCtrl').handelShowRedDot();
@@ -400,10 +400,10 @@ cc.Class({
     },
 
     finishState29() {
-        if (this.isShowBar) {
+        if (GameGlobal.isShowBar) {
             return;
         }
-        this.isShowBar = true;
+        GameGlobal.isShowBar = true;
         let action = cc.moveBy(0.3, cc.v2(-this.sidebar.width, 0));
         this.sidebar.runAction(action);
         this.sliderNode.getComponent('HomeSideCtrl').handelShowRedDot();

+ 6 - 1
assets/scripts/game/HomeSideCtrl.js

@@ -51,6 +51,11 @@ cc.Class({
             this.drawNode.active = false;
         }
 
+        /// 如果是头条那么隐藏商城
+        if (window.tt != undefined) {
+            this.storeNode.active = false;
+        }
+
         //判断正在审核中的版本隐藏7天登录按钮或已完成7天登录任务
         if (GameGlobal.isCheck || (GameGlobal.userLoginReward.isLoginReward && GameGlobal.userLoginReward.rewardCount == 7)) {
             this.loginRewardNode.active = false;
@@ -143,7 +148,7 @@ cc.Class({
         this.helpRedNode.active = redTypes.indexOf(GameRedDot.friendAward) != -1;
         /// 只要这里一个有红点就都有红点
         this.giftRedNode.active = this.awardRedNode.active || this.inviteFriendRedNode.active || this.signRedNode.active;
-        if (this.isShowBar) {
+        if (GameGlobal.isShowBar) {
             let isStoreRed = (redTypes.indexOf(GameRedDot.storeDiamond) != -1 || redTypes.indexOf(GameRedDot.storeCoin) != -1);
             this.storeRedNode.active = isStoreRed;
             if (isStoreRed) {