cc.Class({ extends: cc.Component, properties: {}, start: function () { this.game = "game1"; cc.PlatformTools.executeShowBanner(); cc.PlatformTools.executeShowInterstitial(); }, onClickBtnEvent: function (e) { cc.global.Source.onPlayBtnEffect("buttonClick"); switch (e.target.name) { case "btnts_video": var o = this; cc.PlatformTools.executeShowAwardVideo(function () { o.node.removeFromParent(true); cc.global.LoadPreFtabData("".concat(o.game, "/prefab/gameui/").concat(o.game, "_TiShi"), function () {}.bind(this)); }, function () {}); break; case "btn_guanbi": GlobData.GameBtnClose(this.node, false); } } });