/****************************************************************** * * 兑换界面 * ******************************************************************/ const BridgeWindow = require( "bridge.window" ); const FxButton = require( "nx.fx.button" ); cc.Class( { extends: BridgeWindow, properties: { nodTip: { default: null, type: cc.Node }, edtInput: { default: null, type: cc.EditBox }, btnComfirm: { default: null, type: FxButton }, }, // 重载:参数打开 onOpenConfigs: function( _params ) { this.cb = _params.cb; }, // 确定 onConfirm: function() { let str = this.edtInput.string; if( nx.dt.strEmpty( str ) ) { nx.tbox( "PLExchangeInputTip" ); return; } nx.dt.fnInvoke( this.cb, this, str ); }, } );