12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- 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}), (i.ShopItem = void 0);
- const s = t("App"),
- o = t("ControllerConst"),
- a = t("ShopConst"),
- {property: n, ccclass: r, menu: l} = cc._decorator;
- t = class extends cc.Component {
- constructor() {
- super(...arguments), (this.content = null), (this.icon = null), (this.costLab = null), (this.isShow = !1);
- }
- setData(t) {
- this.data = t;
- }
- updateItem() {}
- initItem() {}
- showItem() {
- (this.content.active = !0), this.isShow || this.initItem();
- }
- hideItem() {
- this.content.active = !1;
- }
- updateTime(t) {}
- onTouchBuyBtn() {
- s.default.ControllerManager.applyFunc(o.ControllerConst.Shop, a.ShopConst.BUY, this.data);
- }
- onTouchUseBtn() {}
- };
- e([n(cc.Node)], t.prototype, "content", void 0),
- e([n(cc.Sprite)], t.prototype, "icon", void 0),
- e([n(cc.Label)], t.prototype, "costLab", void 0),
- (t = e([r, l("view/Shop/ShopItem")], t)),
- (i.ShopItem = t);
|