{
  "code": "import { ui } from \"../ui/layaMaxUI\";\r\nimport { GameManager } from \"../Manager/GameManager\";\r\nimport { LevelManager } from \"../Manager/LevelManager\";\r\nimport { AccountManager } from \"../NetWork/AccountManager\";\r\nimport { ServerManager, TeamWave } from \"../NetWork/ServerManager\";\r\nimport GuangGao from \"../NetWork/GuangGao\";\r\nexport class GameResultView extends ui.GameResultViewUI {\r\n    constructor() {\r\n        super();\r\n        GameResultView.ins = this;\r\n    }\r\n    static get Instance() {\r\n        if (GameResultView.ins == null) {\r\n            return new GameResultView();\r\n        }\r\n        return GameResultView.ins;\r\n    }\r\n    OnShow(data) {\r\n        this._result = data;\r\n        if (data) {\r\n            this.WinBox.visible = true;\r\n            this.FailBox.visible = false;\r\n        }\r\n        else {\r\n            this.WinBox.visible = false;\r\n            this.FailBox.visible = true;\r\n        }\r\n        LevelManager.Instance.BackMain();\r\n        this.RefreshUI();\r\n        this.RegButton();\r\n        this.height = Laya.stage.height;\r\n        Laya.stage.on(Laya.Event.RESIZE, this, () => {\r\n            this.height = Laya.stage.height;\r\n        });\r\n    }\r\n    RegButton() {\r\n        this.Win_BackBtn.clickHandler = new Laya.Handler(this, this.BackHome);\r\n        this.Win_VideoBtn.clickHandler = new Laya.Handler(this, this.WinVideoGet);\r\n        this.Win_kuangbtn.clickHandler = new Laya.Handler(this, this.ClickWinKuang);\r\n        this.Fail_BackBtn.clickHandler = new Laya.Handler(this, this.BackHome);\r\n        this.Fail_VideoBtn.clickHandler = new Laya.Handler(this, this.LoseVideoGet);\r\n        this.Fail_kuangbtn.clickHandler = new Laya.Handler(this, this.ClickLoseKuang);\r\n    }\r\n    RefreshUI() {\r\n        this.Win_GoldNum.text = (AccountManager.Instance.curplayerData.LevelReward(this._result) + GameManager.GoldNum) + \"\";\r\n        this.Fail_GoldNum.text = (AccountManager.Instance.curplayerData.LevelReward(this._result) + GameManager.GoldNum) + \"\";\r\n    }\r\n    ClickWinKuang() {\r\n        this.win_dian.visible = !this.win_dian.visible;\r\n    }\r\n    ClickLoseKuang() {\r\n        this.fail_dian.visible = !this.fail_dian.visible;\r\n    }\r\n    WinVideoGet() {\r\n        GuangGao.ShowVideo((isLoad) => {\r\n            if (isLoad) {\r\n            }\r\n        });\r\n    }\r\n    LoseVideoGet() {\r\n        GuangGao.ShowVideo((isLoad) => {\r\n            if (isLoad) {\r\n            }\r\n        });\r\n    }\r\n    BackHome() {\r\n        let stage = AccountManager.Instance.curplayerData.STAGE;\r\n        var iswin = this._result ? \"1\" : \"0\";\r\n        var coinnum = (AccountManager.Instance.curplayerData.LevelReward(this._result) + GameManager.GoldNum) + \"\";\r\n        var args = [{ \"t\": AccountManager.Instance.ServerTime.toString() }, { \"play_id\": GameManager.play_id }, { \"win\": iswin }, { \"money\": coinnum }];\r\n        ServerManager.Instance.SendHttp(TeamWave.JieShu, args, Laya.Handler.create(this, this.Success), null);\r\n    }\r\n    Success() {\r\n        GameManager.GoldNum = 0;\r\n        GameManager.Instance.GameOver();\r\n    }\r\n    OnHide() {\r\n    }\r\n}\r\n//# sourceMappingURL=GameResultView.js.map",
  "references": [
    "E:/LayaProject/DanceLine/RubikCube/src/ui/layaMaxUI.ts",
    "E:/LayaProject/DanceLine/RubikCube/src/Manager/PlayerManager.ts",
    "E:/LayaProject/DanceLine/RubikCube/src/Resources/AssetManager.ts",
    "E:/LayaProject/DanceLine/RubikCube/src/Manager/GameManager.ts",
    "E:/LayaProject/DanceLine/RubikCube/src/Manager/LevelManager.ts",
    "E:/LayaProject/DanceLine/RubikCube/src/NetWork/AccountManager.ts",
    "E:/LayaProject/DanceLine/RubikCube/src/NetWork/ServerManager.ts",
    "E:/LayaProject/DanceLine/RubikCube/src/NetWork/GuangGao.ts"
  ],
  "map": "{\"version\":3,\"file\":\"GameResultView.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../src/View/GameResultView.ts\"],\"names\":[],\"mappings\":\"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AAGrC,OAAO,EAAE,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