Procházet zdrojové kódy

【bug】修改13关无法弹窗问题

mojunshou před 7 měsíci
rodič
revize
212f4f7c79

+ 5 - 5
assets/bundle/gui/eliminate/eliminate.prefab

@@ -137,7 +137,7 @@
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 720,
-      "height": 1600
+      "height": 1599.9999999999998
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -377,7 +377,7 @@
     "_lpos": {
       "__type__": "cc.Vec3",
       "x": 0,
-      "y": 790.143,
+      "y": 790.1429999999999,
       "z": 0
     },
     "_lrot": {
@@ -7516,7 +7516,7 @@
     "_lpos": {
       "__type__": "cc.Vec3",
       "x": 0,
-      "y": -800.134,
+      "y": -800.1339999999999,
       "z": 0
     },
     "_lrot": {
@@ -12420,7 +12420,7 @@
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 720,
-      "height": 1600
+      "height": 1599.9999999999998
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -12497,7 +12497,7 @@
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 720,
-      "height": 1600
+      "height": 1599.9999999999998
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",

+ 3 - 3
assets/bundle/gui/eliminate/prefab/popup/wechatTransferring.prefab

@@ -1,7 +1,7 @@
 [
   {
     "__type__": "cc.Prefab",
-    "_name": "wechatTransferring",
+    "_name": "WechatTransfer",
     "_objFlags": 0,
     "__editorExtras__": {},
     "_native": "",
@@ -13,7 +13,7 @@
   },
   {
     "__type__": "cc.Node",
-    "_name": "wechatTransferring",
+    "_name": "WechatTransfer",
     "_objFlags": 0,
     "__editorExtras__": {},
     "_parent": null,
@@ -9176,7 +9176,7 @@
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 720,
-      "height": 1600.0000000000002
+      "height": 1599.9999999999998
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",

+ 2 - 2
assets/bundle/gui/eliminate/prefab/popup/wechatTransferring.prefab.meta

@@ -2,12 +2,12 @@
   "ver": "1.1.50",
   "importer": "prefab",
   "imported": true,
-  "uuid": "3ff39a87-c6e4-4aea-9593-29a84460a3c0",
+  "uuid": "1268d069-1dbd-4486-b6ef-5a58ccf18757",
   "files": [
     ".json"
   ],
   "subMetas": {},
   "userData": {
-    "syncNodeName": "wechatTransferring"
+    "syncNodeName": "WechatTransfer"
   }
 }

+ 3 - 3
assets/script/game/common/config/GameUIConfig.ts

@@ -1,7 +1,7 @@
 /*
  * @Date: 2021-08-12 09:33:37
  * @LastEditors: mojunshou 1637302775@qq.com
- * @LastEditTime: 2025-04-24 16:51:05
+ * @LastEditTime: 2025-04-28 17:09:35
  */
 import { LayerType, UIConfig } from "../../../../../extensions/oops-plugin-framework/assets/core/gui/layer/LayerManager";
 
@@ -61,7 +61,7 @@ export enum UIID {
     /**提现预约表*/
     ReservePopup,
     /**微信转账中*/
-    WechaatTransfer
+    WechatTransfer
 }
 
 /** 打开界面方式的配置数据 */
@@ -92,7 +92,7 @@ export var UIConfigData: { [key: number]: UIConfig } = {
     [UIID.AutoWithdrawProgress]: { layer: LayerType.PopUp, prefab: "gui/eliminate/prefab/popup/AutoWithdrawProgress", mask: true },
     [UIID.UnlockFunction]: { layer: LayerType.PopUp, prefab: "gui/eliminate/prefab/popup/UnlockFunction", mask: true },
     [UIID.ReservePopup]: { layer: LayerType.PopUp, prefab: "gui/eliminate/prefab/popup/ReservePopup", mask: true },
-    [UIID.WechaatTransfer]: { layer: LayerType.PopUp, prefab: "gui/eliminate/prefab/popup/WechatTransferring", mask: true },
+    [UIID.WechatTransfer]: { layer: LayerType.PopUp, prefab: "gui/eliminate/prefab/popup/WechatTransfer", mask: true },
 
 
 

+ 4 - 3
assets/script/game/common/manager/ProtocolEvent.ts

@@ -2,13 +2,14 @@
  * @Author: mojunshou 1637302775@qq.com
  * @Date: 2025-04-07 10:17:16
  * @LastEditors: mojunshou 1637302775@qq.com
- * @LastEditTime: 2025-04-28 15:59:05
+ * @LastEditTime: 2025-04-28 16:42:49
  * @Description: 消息定义
  */
 
-const server_url = "http://192.168.10.103:8880";
+// const server_url = "http://192.168.10.103:8880";
 // https://central-test.atmob.com
-// const server_url = "https://central-test.atmob.com";
+const server_url = "https://central-test.atmob.com";
+
 export enum ProtocolEvent {
     /**微信登录*/
     WechatLogin = server_url + "/project/playlet/v1/user/login",

+ 28 - 36
assets/script/game/view/EliminateViewComp.ts

@@ -2,7 +2,7 @@
  * @Author: mojunshou 1637302775@qq.com
  * @Date: 2025-03-20 15:01:09
  * @LastEditors: mojunshou 1637302775@qq.com
- * @LastEditTime: 2025-04-28 16:38:40
+ * @LastEditTime: 2025-04-28 16:59:17
  * @Description: 消除游戏主场景
  */
 import { _decorator, Button, Color, EventTouch, instantiate, JsonAsset, v3, Label, Node, Prefab, randomRangeInt, Sprite, tween, UITransform, Vec2, Vec3, Widget } from "cc";
@@ -2048,16 +2048,6 @@ export class EliminateViewComp extends CCComp {
 
     //自动放置,不让点击方块
     private btn_auto(event: EventTouch) {
-        //这要有一个tweeen 放大缩小效果
-        // if (this.autoBtnNode) {
-        //     tween(this.autoBtnNode)
-        //         .to(0.1, { scale: v3(1.2, 1.2) })
-        //         .call(() => {
-        //             this.autoBtnNode.scale_x = 1;
-        //             this.autoBtnNode.scale_y = 1;
-        //         })
-        //         .start();
-        // }
         this.autoGame();
     }
 
@@ -2387,7 +2377,7 @@ export class EliminateViewComp extends CCComp {
                     oops.gui.open(UIID.ReservePopup);
                     break;
                 case "handlingCharge":
-                    oops.gui.open(UIID.WechaatTransfer);
+                    oops.gui.open(UIID.WechatTransfer);
                     break;
             }
             smc.game.GameModel.popupShow = true;
@@ -2409,31 +2399,33 @@ export class EliminateViewComp extends CCComp {
     }
 
     btn_text() {
-        const param = {
-            "code": 0,
-            "data": {
-                "ssid": "9201d75d019f46f98b8663adfd515a58",
-                "props": {
-                    "1004": 7077279,
-                    "1005": 2143634,
-                    "1006": 12,
-                    "1007": 186,
-                    "1008": 22,
-                    "1009": 299980,
-                    "2001": 2,
-                    "8001": 530,
-                    "9001": 2
-                },
-                "changes": {
-                    "1004": 1,
-                    "1007": 1
-                },
-                "tipThreshold": true
-            }
-        }
-        let str = JSON.stringify(param);
-        ServerHandler.inst.onGetVideorReward(str);
+        // const param = {
+        //     "code": 0,
+        //     "data": {
+        //         "ssid": "9201d75d019f46f98b8663adfd515a58",
+        //         "props": {
+        //             "1004": 7077279,
+        //             "1005": 2143634,
+        //             "1006": 12,
+        //             "1007": 186,
+        //             "1008": 22,
+        //             "1009": 299980,
+        //             "2001": 2,
+        //             "8001": 530,
+        //             "9001": 2
+        //         },
+        //         "changes": {
+        //             "1004": 1,
+        //             "1007": 1
+        //         },
+        //         "tipThreshold": true
+        //     }
+        // }
+        // let str = JSON.stringify(param);
+        // ServerHandler.inst.onGetVideorReward(str);
         // ServerHandler.inst.GetGuideInfo();
+        // oops.gui.open(UIID.WechatTransfer);
+
     }
 
     getRandomUniqueInts(count: number = 3): number[] {

+ 1 - 1
assets/script/game/view/popup/WechatTransfer.ts

@@ -131,7 +131,7 @@ export class WechatTransfer extends VMParent {
                 level: smc.account.AccountModel.curLevel,
                 type: smc.game.GameModel.popupType
             })
-            oops.gui.remove(UIID.WechaatTransfer)
+            oops.gui.remove(UIID.WechatTransfer)
         }, 4)
     }
 }