41 lines
1.3 KiB
TypeScript
41 lines
1.3 KiB
TypeScript
import { _decorator, Component, Node, EditBox,Label} from 'cc';
|
|
const { ccclass, property } = _decorator;
|
|
import {rachageModel} from './rachageModel'
|
|
import { tanchuan } from './TanChuang';
|
|
|
|
|
|
@ccclass('rechargeNum')
|
|
export class rechargeNum extends Component {
|
|
@property(Label)
|
|
public Name = null;
|
|
@property(Label)
|
|
public EthPrice = null;
|
|
@property(Label)
|
|
public UsdtPrice = null;
|
|
@property(rachageModel)
|
|
RachageModel:rachageModel = null;
|
|
@property(tanchuan)
|
|
tanchuan:tanchuan = null;
|
|
public_address=null;
|
|
private_address =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
|
|
}
|
|
rechagenum = null;
|
|
start() {
|
|
this.rechagenum = this.node.getChildByName('RechageNum')
|
|
}
|
|
text(){
|
|
this.tanchuan.init("已发起提现申请")
|
|
this.tanchuan.node.active = true
|
|
// let rechagenum = this.rechagenum.getComponent(EditBox).string
|
|
}
|
|
update(deltaTime: number) {
|
|
|
|
}
|
|
}
|
|
|