149 lines
6.0 KiB
JavaScript
149 lines
6.0 KiB
JavaScript
System.register(["cc"], function (_export, _context) {
|
|
"use strict";
|
|
|
|
var _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, _decorator, Component, Label, _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _crd, ccclass, property, ReItemTemplate;
|
|
|
|
function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
|
|
|
|
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
|
|
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }
|
|
|
|
return {
|
|
setters: [function (_cc) {
|
|
_cclegacy = _cc.cclegacy;
|
|
__checkObsolete__ = _cc.__checkObsolete__;
|
|
__checkObsoleteInNamespace__ = _cc.__checkObsoleteInNamespace__;
|
|
_decorator = _cc._decorator;
|
|
Component = _cc.Component;
|
|
Label = _cc.Label;
|
|
}],
|
|
execute: function () {
|
|
_crd = true;
|
|
|
|
_cclegacy._RF.push({}, "58076eB6hRA24L0yGCgLg0l", "ReItemTemplate", undefined);
|
|
|
|
__checkObsolete__(['_decorator', 'Component', 'Node', 'Label']);
|
|
|
|
({
|
|
ccclass,
|
|
property
|
|
} = _decorator);
|
|
|
|
_export("ReItemTemplate", ReItemTemplate = (_dec = ccclass("ReItemTemplate"), _dec2 = property(Label), _dec3 = property(Label), _dec4 = property(Label), _dec5 = property(Label), _dec6 = property(Label), _dec7 = property(Label), _dec8 = property(Label), _dec(_class = (_class2 = class ReItemTemplate extends Component {
|
|
constructor() {
|
|
super(...arguments);
|
|
|
|
_initializerDefineProperty(this, "Name", _descriptor, this);
|
|
|
|
_initializerDefineProperty(this, "num", _descriptor2, this);
|
|
|
|
_initializerDefineProperty(this, "status", _descriptor3, this);
|
|
|
|
_initializerDefineProperty(this, "toaddress", _descriptor4, this);
|
|
|
|
_initializerDefineProperty(this, "type", _descriptor5, this);
|
|
|
|
_initializerDefineProperty(this, "time", _descriptor6, this);
|
|
|
|
_initializerDefineProperty(this, "price", _descriptor7, this);
|
|
}
|
|
|
|
start() {}
|
|
|
|
init(data) {
|
|
this.Name.string = "金币";
|
|
this.num.string = data.number;
|
|
this.status.string = data.status;
|
|
this.toaddress.string = data.toaddress;
|
|
this.type.string = data.type;
|
|
this.price.string = data.price;
|
|
this.time.string = this.formatDateTime(data.time);
|
|
}
|
|
|
|
formatDateTime(timeStamp) {
|
|
var date = new Date();
|
|
date.setTime(timeStamp * 1000);
|
|
var y = date.getFullYear();
|
|
var m = date.getMonth() + 1;
|
|
|
|
var _m = m < 10 ? "0" + m : m;
|
|
|
|
var d = date.getDate();
|
|
|
|
var _d = d < 10 ? "0" + d : d;
|
|
|
|
var h = date.getHours();
|
|
|
|
var _h = h < 10 ? "0" + h : h;
|
|
|
|
var minute = date.getMinutes();
|
|
var second = date.getSeconds();
|
|
|
|
var _minute = minute < 10 ? "0" + minute : minute;
|
|
|
|
var _second = second < 10 ? "0" + second : second;
|
|
|
|
return y + "-" + _m + "-" + _d + " " + _h + ":" + _minute + ":" + _second;
|
|
}
|
|
|
|
update(deltaTime) {}
|
|
|
|
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "Name", [_dec2], {
|
|
configurable: true,
|
|
enumerable: true,
|
|
writable: true,
|
|
initializer: function initializer() {
|
|
return null;
|
|
}
|
|
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "num", [_dec3], {
|
|
configurable: true,
|
|
enumerable: true,
|
|
writable: true,
|
|
initializer: function initializer() {
|
|
return null;
|
|
}
|
|
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "status", [_dec4], {
|
|
configurable: true,
|
|
enumerable: true,
|
|
writable: true,
|
|
initializer: function initializer() {
|
|
return null;
|
|
}
|
|
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "toaddress", [_dec5], {
|
|
configurable: true,
|
|
enumerable: true,
|
|
writable: true,
|
|
initializer: function initializer() {
|
|
return null;
|
|
}
|
|
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "type", [_dec6], {
|
|
configurable: true,
|
|
enumerable: true,
|
|
writable: true,
|
|
initializer: function initializer() {
|
|
return null;
|
|
}
|
|
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "time", [_dec7], {
|
|
configurable: true,
|
|
enumerable: true,
|
|
writable: true,
|
|
initializer: function initializer() {
|
|
return null;
|
|
}
|
|
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "price", [_dec8], {
|
|
configurable: true,
|
|
enumerable: true,
|
|
writable: true,
|
|
initializer: function initializer() {
|
|
return null;
|
|
}
|
|
})), _class2)) || _class));
|
|
|
|
_cclegacy._RF.pop();
|
|
|
|
_crd = false;
|
|
}
|
|
};
|
|
});
|
|
//# sourceMappingURL=3f46191d807caaf7a77de0381a19246141a21138.js.map
|