function updateItem(cell, index) {
// console.log("更新元素:", cell, index, cell._dataSource);
// console.log(cell.getChildByName("btnGet"));
cell.getChildByName("lblID").text = cell._dataSource.total_score;
cell.getChildByName('headIcon').skin = cell._dataSource.icon_big == "" ? 'wxlocal/Common/avstar.png' : cell._dataSource.icon_big;
cell.getChildByName("item0").getChildByName('propIcon0').skin = "wxlocal/props/icon_" + cell._dataSource.icon_arr[0].icon_url + '.png';
cell.getChildByName("up").getChildByName('lblUp').text = cell._dataSource.icon_arr[0].reward_num;
cell.getChildByName("item1").getChildByName('propIcon1').skin = "wxlocal/props/icon_" + cell._dataSource.icon_arr[1].icon_url + '.png';
cell.getChildByName("down").getChildByName('lblDown').text = cell._dataSource.icon_arr[1].reward_num;
cell.getChildByName("btnGet").disabled = true;
cell.getChildByName("redPoint").visible = false;
if (cell._dataSource.status == "running") {
} else if (cell._dataSource.status == "waiting") {
cell.getChildByName("redPoint").disabled = false;
cell.getChildByName("btnGet").disabled = false;
cell.getChildByName("btnGet").gray = false
// cell.getChildByName("btnGet").clickHandler = Laya.Handler.create(this, function (res) {
cell.getChildByName("btnGet").clickHandler = Laya.Handler.create(this, function () {
// cell.getChildByName("btnGet").on(Event.CLICK, this, function (res) {
console.log(cell)
// cell.disabled=true;
cell.getChildAt(8).disabled = true //根据节点顺序控制节点
}
cell.getChildAt(8).disabled = true
根据列表顺序 获取节点