"use strict"; cc._RF.push(module, 'dffc8JCcppJDIbzca2UTvfR', 'cmp.partner.reform.equips.compound.record.wnd'); // Scripts/mod/partner/cmps/reform/cmp/cmp.partner.reform.equips.compound.record.wnd.js "use strict"; /****************************************************************** * * 装备合成记录 * ******************************************************************/ var BridgeWindow = require("bridge.window"); var FxSVC = require("nx.fx.sv.expand"); var ForgehouseController = require("forgehouse_controller"); cc.Class({ "extends": BridgeWindow, properties: { svcList: { "default": null, type: FxSVC } }, // 载入 onLoad: function onLoad() { // 事件监听 this.bindGEvent(EventId.COMPOSITE_RECORD, this.onFreshRecords.bind(this)); }, // 重载:参数打开 onOpenConfigs: function onOpenConfigs(_params) { // 置空 this.setEmpty(); // 发送请求 var FC = ForgehouseController.getInstance(); FC.send11082(); }, // 重载:关闭前 onPreClosed: function onPreClosed() { this.svcList.rebuild([]); }, // 置空 setEmpty: function setEmpty() { this.svcList.rebuild([]); nx.gui.setActive(this.svcList, "empty", true); }, // 重建 onFreshRecords: function onFreshRecords(_data) { var records = _data ? _data.logs : []; this.svcList.rebuild(records); nx.gui.setActive(this.svcList, "empty", nx.dt.arrEmpty(records)); } }); cc._RF.pop();