123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- var t = require;
- var e = module;
- var i = exports;
- e =
- (this && this.__decorate) ||
- function (t, e, i, s) {
- var o,
- a = arguments.length,
- n = a < 3 ? e : null === s ? (s = Object.getOwnPropertyDescriptor(e, i)) : s;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) n = Reflect.decorate(t, e, i, s);
- else
- for (var r = t.length - 1; 0 <= r; r--)
- (o = t[r]) && (n = (a < 3 ? o(n) : 3 < a ? o(e, i, n) : o(e, i)) || n);
- return 3 < a && n && Object.defineProperty(e, i, n), n;
- };
- Object.defineProperty(i, "__esModule", {value: !0});
- const s = t("BaseView"),
- o = t("CountDownLab"),
- a = (t("ViewConst"), t("LayerManager"), t("HelperCatInfoItem")),
- n = t("HelperCatService"),
- {ccclass: r, property: l} = cc._decorator;
- t = class extends s.default {
- constructor() {
- super(...arguments),
- (this.emptyNode = null),
- (this.nromalNode = null),
- (this.helperCatInfoItem = null),
- (this.countDownLab = null),
- (this.bgType = 1);
- }
- open() {
- super.open();
- var t = n.default.ins.getState();
- t === n.HelperCatState.READY
- ? this.onTouchClose()
- : t === n.HelperCatState.CD
- ? ((this.emptyNode.active = !0), (this.nromalNode.active = !1))
- : t === n.HelperCatState.WORKING &&
- ((this.emptyNode.active = !1),
- (this.nromalNode.active = !0),
- this.helperCatInfoItem.setData(n.default.ins.curHelprCatData),
- this.countDownLab.setEndTime(
- n.default.ins.saveData.hireTime + 1e3 * n.default.ins.define.invite_appear_timer
- ),
- this.countDownLab.startCount());
- }
- initUI() {
- super.initUI();
- }
- close() {
- super.close();
- }
- };
- (t.VIEW_INFO = {prefabName: "HelperCatInfoView", zIndex: 100, key: 42, dir: "helpercat"}),
- e([l({type: cc.Node})], t.prototype, "emptyNode", void 0),
- e([l({type: cc.Node})], t.prototype, "nromalNode", void 0),
- e([l(a.default)], t.prototype, "helperCatInfoItem", void 0),
- e([l(o.default)], t.prototype, "countDownLab", void 0),
- (t = e([r], t)),
- (i.default = t);
|