{
  "code": "import { ui } from \"../ui/layaMaxUI\";\r\nimport { ViewType, ViewManager } from \"./ViewManager\";\r\nimport { ServerManager, BlastToMerge } from \"../Net/ServerManager\";\r\nimport { AccountManager } from \"../Net/AccountManager\";\r\nimport { EventManager, StageMode } from \"../Tool/EventManager\";\r\nimport { GameManager } from \"../Main/GameManager\";\r\nexport default class WinView extends ui.WinViewUI {\r\n    constructor() {\r\n        super();\r\n    }\r\n    static get Instance() {\r\n        if (WinView.ins) {\r\n            return WinView.ins;\r\n        }\r\n        else {\r\n            return new WinView();\r\n        }\r\n    }\r\n    Show() {\r\n        this.BackBtn.clickHandler = Laya.Handler.create(this, this.ClickBack);\r\n        this.NextBtn.clickHandler = Laya.Handler.create(this, this.ClickNextLevel);\r\n        this.height = Laya.stage.height;\r\n        this.BG.height = Laya.stage.height;\r\n        Laya.stage.on(Laya.Event.RESIZE, this, () => {\r\n            this.height = Laya.stage.height;\r\n            this.BG.height = Laya.stage.height;\r\n        });\r\n    }\r\n    Close() {\r\n        Laya.timer.clearAll(this);\r\n    }\r\n    ClickBack() {\r\n        var args = [{ \"t\": AccountManager.Instance.ServerTime.toString() }, { \"play_id\": GameManager.Instance.play_id }, { \"win\": \"1\" }];\r\n        ServerManager.Instance.SendHttp(BlastToMerge.JieShu, args, Laya.Handler.create(this, this.BackMain), null);\r\n    }\r\n    ClickNextLevel() {\r\n        var args = [{ \"t\": AccountManager.Instance.ServerTime.toString() }, { \"play_id\": GameManager.Instance.play_id }, { \"win\": \"1\" }];\r\n        ServerManager.Instance.SendHttp(BlastToMerge.JieShu, args, Laya.Handler.create(this, this.NextLevel), null);\r\n    }\r\n    BackMain() {\r\n        EventManager.StageTrigger(StageMode.Over);\r\n        ViewManager.Instance.ShowView(ViewType.MainView);\r\n    }\r\n    NextLevel() {\r\n        var agrs = [{ \"t\": AccountManager.Instance.ServerTime.toString() }];\r\n        ServerManager.Instance.SendHttp(BlastToMerge.KaiShi, agrs, Laya.Handler.create(this, this.StartNextLevel), null);\r\n    }\r\n    StartNextLevel(_data) {\r\n        ViewManager.Instance.ClosePopView(ViewType.WinView);\r\n        let stage = AccountManager.Instance.curplayerData.GainAccount(\"stage\");\r\n        GameManager.Instance.play_id = _data.play_id;\r\n        GameManager.Instance.STAGE = Number(AccountManager.Instance.curplayerData.GainAccount(\"stage\"));\r\n        console.log(GameManager.Instance.STAGE);\r\n        console.log(Number(AccountManager.Instance.curplayerData.GainAccount(\"stage\")));\r\n        EventManager.StageTrigger(StageMode.ReStart, [true]);\r\n    }\r\n}\r\n//# sourceMappingURL=WinView.js.map",
  "references": [
    "E:/LayaProject/2048_laya/src/ui/layaMaxUI.ts",
    "E:/LayaProject/2048_laya/src/View/ViewManager.ts",
    "E:/LayaProject/2048_laya/src/Net/ServerManager.ts",
    "E:/LayaProject/2048_laya/src/Net/AccountManager.ts",
    "E:/LayaProject/2048_laya/src/View/MainView.ts",
    "E:/LayaProject/2048_laya/src/Tool/EventManager.ts",
    "E:/LayaProject/2048_laya/src/Main/GameManager.ts",
    "E:/LayaProject/2048_laya/src/Tool/GamePool.ts",
    "E:/LayaProject/2048_laya/src/Tool/DropRule.ts"
  ],
  "map": "{\"version\":3,\"file\":\"WinView.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../src/View/WinView.ts\"],\"names\":[],\"mappings\":\"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAM,QAAQ,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAIlD,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,EAAE,CAAC,SAAS;IAE7C;QACI,K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