62 lines
2.0 KiB
JavaScript
62 lines
2.0 KiB
JavaScript
System.register(["cc"], function (_export, _context) {
|
|
"use strict";
|
|
|
|
var _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, _decorator, Component, Label, EditBox, _dec, _class, _crd, ccclass, property, WithdrawalData;
|
|
|
|
return {
|
|
setters: [function (_cc) {
|
|
_cclegacy = _cc.cclegacy;
|
|
__checkObsolete__ = _cc.__checkObsolete__;
|
|
__checkObsoleteInNamespace__ = _cc.__checkObsoleteInNamespace__;
|
|
_decorator = _cc._decorator;
|
|
Component = _cc.Component;
|
|
Label = _cc.Label;
|
|
EditBox = _cc.EditBox;
|
|
}],
|
|
execute: function () {
|
|
_crd = true;
|
|
|
|
_cclegacy._RF.push({}, "490a9P8JcRBPZFNabzsmAAR", "WithdrawalData", undefined);
|
|
|
|
__checkObsolete__(['_decorator', 'Component', 'Node', 'Label', 'EditBox']);
|
|
|
|
({
|
|
ccclass,
|
|
property
|
|
} = _decorator);
|
|
|
|
_export("WithdrawalData", WithdrawalData = (_dec = ccclass('WithdrawalData'), _dec(_class = class WithdrawalData extends Component {
|
|
constructor(...args) {
|
|
super(...args);
|
|
this.WithdrawalNum = null;
|
|
this.Toaddress = 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;
|
|
}
|
|
|
|
start() {
|
|
this.WithdrawalNum = this.node.getChildByName('WithdrawalNum');
|
|
this.Toaddress = this.node.getChildByName('Toaddress');
|
|
}
|
|
|
|
test() {
|
|
let rechagenum = this.node.getChildByName('WithdrawalNum').getComponent(EditBox).string;
|
|
let Toaddress = this.node.getChildByName('Toaddress').getComponent(EditBox).string;
|
|
console.log(rechagenum, Toaddress);
|
|
}
|
|
|
|
update(deltaTime) {}
|
|
|
|
}) || _class));
|
|
|
|
_cclegacy._RF.pop();
|
|
|
|
_crd = false;
|
|
}
|
|
};
|
|
});
|
|
//# sourceMappingURL=3854dd41b4c11f5ce19074a8d61365726c354272.js.map
|