43 lines
1.0 KiB
JavaScript
43 lines
1.0 KiB
JavaScript
|
|
"use strict";
|
||
|
|
cc._RF.push(module, '5fc58ZIAcpCdq7tD+z1ERlx', 'cmp.achievement.rewards.item');
|
||
|
|
// Scripts/mod/home/achievement/cmp.achievement.rewards.item.js
|
||
|
|
|
||
|
|
"use strict";
|
||
|
|
|
||
|
|
/******************************************************************
|
||
|
|
*
|
||
|
|
* 成就阶段奖励预览项
|
||
|
|
*
|
||
|
|
******************************************************************/
|
||
|
|
|
||
|
|
var SVCItem = require("nx.fx.sv.expand.item");
|
||
|
|
var ItemLayout = require("cmp.item.layout");
|
||
|
|
cc.Class({
|
||
|
|
"extends": SVCItem,
|
||
|
|
properties: {
|
||
|
|
nodPoint: {
|
||
|
|
"default": null,
|
||
|
|
type: cc.Node
|
||
|
|
},
|
||
|
|
lstRewards: {
|
||
|
|
"default": null,
|
||
|
|
type: ItemLayout
|
||
|
|
},
|
||
|
|
nodDone: {
|
||
|
|
"default": null,
|
||
|
|
type: cc.Node
|
||
|
|
}
|
||
|
|
},
|
||
|
|
// 数据重置
|
||
|
|
rebind: function rebind(_idx, _data, _key) {
|
||
|
|
this._super(_idx, _data, _key);
|
||
|
|
if (nx.dt.objEmpty(_data)) {
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
nx.gui.setString(this.nodPoint, "txt", this.mdata.val);
|
||
|
|
nx.gui.setActive(this.nodDone, "", this.mdata.done);
|
||
|
|
this.lstRewards.rebuild(this.mdata.rewards);
|
||
|
|
}
|
||
|
|
});
|
||
|
|
|
||
|
|
cc._RF.pop();
|