41 lines
892 B
JavaScript
41 lines
892 B
JavaScript
|
|
|
|
/******************************************************************
|
|
*
|
|
* 成就阶段奖励预览项
|
|
*
|
|
******************************************************************/
|
|
|
|
const SVCItem = require( "nx.fx.sv.expand.item" );
|
|
const 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( _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 );
|
|
|
|
},
|
|
|
|
|
|
} );
|