"use strict"; cc._RF.push(module, '5b32eo/AJxEtpi197+zsl3f', 'cmp.bindaccount.wnd'); // Scripts/mod/setting/cmps/cmp.bindaccount.wnd.js "use strict"; var BridgeWindow = require("bridge.window"); cc.Class({ "extends": BridgeWindow, properties: { nodRewards: { type: cc.Node, "default": null }, nodOp: { type: cc.Node, "default": null } }, onLoad: function onLoad() { var cfg = game.configs.misc_data.data_const.auth_award; if (cfg) { var rewards = cfg.val; var cmp = nx.gui.getComponent(this.nodRewards, "", "cmp.common.itemlayout"); if (cmp) { cmp.rebuild(rewards); } } }, // 重载:参数打开 onOpenConfigs: function onOpenConfigs(_params) { this.cb = _params.cb; var desc = _params.desc; nx.gui.setString(this.nodOp, "txt", desc); }, onTouchBtn: function onTouchBtn() { nx.dt.fnInvoke(this.cb); this.close(); } }); cc._RF.pop();