bdc2890a-6e2c-46fe-9de3-4ffea85639bb.js 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. "use strict";
  2. cc._RF.push(module, 'bdc28kKbixG/p3jT/6oVjm7', 'InsufficientPanel');
  3. // Script/view/insufficientPanel/InsufficientPanel.ts
  4. "use strict";
  5. var __extends = (this && this.__extends) || (function () {
  6. var extendStatics = function (d, b) {
  7. extendStatics = Object.setPrototypeOf ||
  8. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  9. function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
  10. return extendStatics(d, b);
  11. };
  12. return function (d, b) {
  13. extendStatics(d, b);
  14. function __() { this.constructor = d; }
  15. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  16. };
  17. })();
  18. var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
  19. var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
  20. if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
  21. else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
  22. return c > 3 && r && Object.defineProperty(target, key, r), r;
  23. };
  24. Object.defineProperty(exports, "__esModule", { value: true });
  25. var BaseView_1 = require("../../../lightMVC/core/base/BaseView");
  26. var App_1 = require("../../Manager/App");
  27. var SDK_1 = require("../../sdk/SDK");
  28. var SoundManager_1 = require("../../Manager/SoundManager");
  29. var _a = cc._decorator, ccclass = _a.ccclass, property = _a.property;
  30. var InsufficientPanel = /** @class */ (function (_super) {
  31. __extends(InsufficientPanel, _super);
  32. function InsufficientPanel() {
  33. return _super !== null && _super.apply(this, arguments) || this;
  34. }
  35. InsufficientPanel.prototype.drawView = function () {
  36. var _this = this;
  37. // 返回
  38. var closeBtn = this.ui.getNode("close");
  39. closeBtn.on(cc.Node.EventType.TOUCH_END, function () {
  40. _this.closeView();
  41. }, this);
  42. var confirmBtn = this.ui.getNode("confirm");
  43. confirmBtn.on(cc.Node.EventType.TOUCH_END, function () {
  44. SoundManager_1.SoundManager.getInstance().VideoStartStop();
  45. SDK_1.default.Instance.showRewardVideo(function () {
  46. App_1.App.DataManager.UpdateTili(App_1.App.DataManager.VideoAddTili);
  47. SoundManager_1.SoundManager.getInstance().VideoEndOpen();
  48. _this.closeView();
  49. }, function () {
  50. SoundManager_1.SoundManager.getInstance().VideoEndOpen();
  51. }, function () {
  52. SoundManager_1.SoundManager.getInstance().VideoEndOpen();
  53. });
  54. }, this);
  55. };
  56. InsufficientPanel.path = function () {
  57. return "/prefabs/InsufficientPanel";
  58. };
  59. InsufficientPanel = __decorate([
  60. ccclass
  61. ], InsufficientPanel);
  62. return InsufficientPanel;
  63. }(BaseView_1.BaseView));
  64. exports.default = InsufficientPanel;
  65. cc._RF.pop();