Files
fc/dev/project/library/imports/5b/5b32ea3f-009c-44b6-98b5-f7bfb3b25ddf.js
T
2026-05-24 10:21:26 +08:00

42 lines
959 B
JavaScript

"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();