114 lines
5.1 KiB
JavaScript
114 lines
5.1 KiB
JavaScript
System.register(["__unresolved_0", "cc", "__unresolved_1"], function (_export, _context) {
|
|
"use strict";
|
|
|
|
var _reporterNs, _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, _decorator, Component, EditBox, Label, rachageModel, _dec, _dec2, _dec3, _dec4, _dec5, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _crd, ccclass, property, rechargeNum;
|
|
|
|
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.'); }
|
|
|
|
function _reportPossibleCrUseOfrachageModel(extras) {
|
|
_reporterNs.report("rachageModel", "./rachageModel", _context.meta, extras);
|
|
}
|
|
|
|
return {
|
|
setters: [function (_unresolved_) {
|
|
_reporterNs = _unresolved_;
|
|
}, function (_cc) {
|
|
_cclegacy = _cc.cclegacy;
|
|
__checkObsolete__ = _cc.__checkObsolete__;
|
|
__checkObsoleteInNamespace__ = _cc.__checkObsoleteInNamespace__;
|
|
_decorator = _cc._decorator;
|
|
Component = _cc.Component;
|
|
EditBox = _cc.EditBox;
|
|
Label = _cc.Label;
|
|
}, function (_unresolved_2) {
|
|
rachageModel = _unresolved_2.rachageModel;
|
|
}],
|
|
execute: function () {
|
|
_crd = true;
|
|
|
|
_cclegacy._RF.push({}, "46eadJwItZJGYB5TfwbBK+G", "RechageNum", undefined);
|
|
|
|
__checkObsolete__(['_decorator', 'Component', 'Node', 'EditBox', 'Label']);
|
|
|
|
({
|
|
ccclass,
|
|
property
|
|
} = _decorator);
|
|
|
|
_export("rechargeNum", rechargeNum = (_dec = ccclass('rechargeNum'), _dec2 = property(Label), _dec3 = property(Label), _dec4 = property(Label), _dec5 = property(_crd && rachageModel === void 0 ? (_reportPossibleCrUseOfrachageModel({
|
|
error: Error()
|
|
}), rachageModel) : rachageModel), _dec(_class = (_class2 = class rechargeNum extends Component {
|
|
constructor(...args) {
|
|
super(...args);
|
|
|
|
_initializerDefineProperty(this, "Name", _descriptor, this);
|
|
|
|
_initializerDefineProperty(this, "EthPrice", _descriptor2, this);
|
|
|
|
_initializerDefineProperty(this, "UsdtPrice", _descriptor3, this);
|
|
|
|
_initializerDefineProperty(this, "RachageModel", _descriptor4, this);
|
|
|
|
this.public_address = null;
|
|
this.private_address = null;
|
|
this.rechagenum = null;
|
|
}
|
|
|
|
init(data) {
|
|
this.node.getChildByName('name').getComponent(Label).string = data.name;
|
|
this.node.getChildByName('usdtPrice').getComponent(Label).string = data.usdt_price;
|
|
this.node.getChildByName('ethPrice').getComponent(Label).string = data.eth_price;
|
|
this.node.getChildByName('privateddress').getComponent(Label).string = data.private_address;
|
|
}
|
|
|
|
start() {
|
|
this.rechagenum = this.node.getChildByName('RechageNum');
|
|
}
|
|
|
|
text() {
|
|
let rechagenum = this.rechagenum.getComponent(EditBox).string;
|
|
}
|
|
|
|
update(deltaTime) {}
|
|
|
|
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "Name", [_dec2], {
|
|
configurable: true,
|
|
enumerable: true,
|
|
writable: true,
|
|
initializer: function () {
|
|
return null;
|
|
}
|
|
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "EthPrice", [_dec3], {
|
|
configurable: true,
|
|
enumerable: true,
|
|
writable: true,
|
|
initializer: function () {
|
|
return null;
|
|
}
|
|
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "UsdtPrice", [_dec4], {
|
|
configurable: true,
|
|
enumerable: true,
|
|
writable: true,
|
|
initializer: function () {
|
|
return null;
|
|
}
|
|
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "RachageModel", [_dec5], {
|
|
configurable: true,
|
|
enumerable: true,
|
|
writable: true,
|
|
initializer: function () {
|
|
return null;
|
|
}
|
|
})), _class2)) || _class));
|
|
|
|
_cclegacy._RF.pop();
|
|
|
|
_crd = false;
|
|
}
|
|
};
|
|
});
|
|
//# sourceMappingURL=0f5002504afa464bd8c3c7658310770229d4cd22.js.map
|