{
  "code": "import { DispatcherManager } from \"../Game/DispatcherManager\";\r\nimport { ui } from \"../ui/layaMaxUI\";\r\nimport { DisplayerCarController } from \"../Net/DisplayerCarController\";\r\nimport { GuangGao } from \"../Net/GuangGao\";\r\nimport { ViewManager, ViewType } from \"../Net/ViewManager\";\r\nimport MainView from \"./MainView\";\r\nimport { MateManager } from \"../Manager/MateManager\";\r\nimport { WXSdk } from \"../Net/WXSdk\";\r\nexport default class TrialView extends ui.TrialViewUI {\r\n    constructor() {\r\n        super();\r\n        this.Resize();\r\n        DispatcherManager.on(Laya.Event.RESIZE, this, this.Resize);\r\n    }\r\n    OnShow(data) {\r\n        this.RegButton();\r\n        this.RefreshData();\r\n        this.RegButton();\r\n        this.RefreshUI();\r\n        GuangGao.CheatBanner(this.btnBox);\r\n    }\r\n    RefreshUI() {\r\n        DisplayerCarController.Instance.InitDis(this.viewPort);\r\n    }\r\n    RefreshData() {\r\n    }\r\n    RegButton() {\r\n        this.videoBtn.CZ = () => {\r\n            this.VideoHandler();\r\n        };\r\n        this.backBtn.CZ = () => {\r\n            DisplayerCarController.Instance.Reset();\r\n            this.BackUi();\r\n        };\r\n    }\r\n    VideoHandler() {\r\n        GuangGao.ShowVideo((isok) => {\r\n            if (isok) {\r\n                WXSdk.AldEvent(\"看视屏试用\");\r\n                this.VideoCom();\r\n            }\r\n        });\r\n    }\r\n    VideoCom() {\r\n        DisplayerCarController.Instance.Reset();\r\n        this.BackUi();\r\n        MateManager.Instance.Trial();\r\n    }\r\n    BackUi() {\r\n        ViewManager.Instance.CloseView(ViewType.TrialView);\r\n        if (MainView.Instance)\r\n            MainView.Instance.TryClick();\r\n    }\r\n    OnClose() {\r\n        DispatcherManager.off(Laya.Event.RESIZE, this, this.Resize);\r\n        GuangGao.Clear();\r\n    }\r\n    Resize() {\r\n        this.height = Laya.stage.height;\r\n    }\r\n}\r\n//# sourceMappingURL=TrialView.js.map",
  "references": [
    "C:/Users/Administrator/Desktop/gungang/src/Game/DispatcherManager.ts",
    "C:/Users/Administrator/Desktop/gungang/src/ui/layaMaxUI.ts",
    "C:/Users/Administrator/Desktop/gungang/src/Net/DisplayerCarController.ts",
    "C:/Users/Administrator/Desktop/gungang/src/Net/GuangGao.ts",
    "C:/Users/Administrator/Desktop/gungang/src/Net/ViewManager.ts",
    "C:/Users/Administrator/Desktop/gungang/src/View/MainView.ts",
    "C:/Users/Administrator/Desktop/gungang/src/Manager/MateManager.ts",
    "C:/Users/Administrator/Desktop/gungang/src/Net/WXSdk.ts"
  ],
  "map": "{\"version\":3,\"file\":\"TrialView.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../src/View/TrialView.ts\"],\"names\":[],\"mappings\":\"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAC,sBAAsB,EAAC,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAC;AACzC,OAAQ,EAAC,WAAW,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,EAAC,WAAW,EAAC,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAErC,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,EAAE,CAAC,WAAW;IAEjD;QACI,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,MAAM,EAAE,CAAC;QACd,iBAAiB,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IAC/D,CAAC;IACD,MAAM,CAAC,IAAU;QACb,IAAI,CAAC,SAAS,EAAE,CAAC;QACjB,IAAI,CAAC,WAAW,EAAE,CAAC;QACnB,IAAI,CAAC,SAAS,EAAE,CAAC;QACjB,IAAI,CAAC,S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