"use strict"; cc._RF.push(module, '74982fkAW5ONowhJ1yU+JdG', 'cmp.personal.exchange.wnd'); // Scripts/mod/personal/cmps/cmp.personal.exchange.wnd.js "use strict"; /****************************************************************** * * 兑换界面 * ******************************************************************/ var BridgeWindow = require("bridge.window"); var 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 onOpenConfigs(_params) { this.cb = _params.cb; }, // 确定 onConfirm: function onConfirm() { var str = this.edtInput.string; if (nx.dt.strEmpty(str)) { nx.tbox("PLExchangeInputTip"); return; } nx.dt.fnInvoke(this.cb, this, str); } }); cc._RF.pop();