[LayaAirIDE 2.0]图片显示异常


a4f7172beec173e4533debef123316e.png

 
已邀请:



赞同来自:

private applk(listNode: Laya.List, listData) {
var data: any[] = [];
listData.sort(function () {
return 0.5 - Math.random();
}); 
listData.map((item, index) => {
var hotShow: boolean = false;
var newShow: boolean = false; 
if (index >= 3 && index < 8) {
hotShow = true;

if (index >= 11 && index < 16) {
newShow = true;

data.push({
gameName: {
text: item.name
},
gameIcon: {
skin: item.pic
},
hot: {
visible: hotShow
},
new: {
visible: newShow
},
name: JSON.stringify(item)
});
})
// console.log("表的数据:", JSON.stringify(data));
listNode.array = data;
}



赞同来自:

7a151ff21a9fa608791f57e6f8d6a60.png

这四个图片都是已经加载好了的, 但是第二张图就显示成纯白色的图了

kylin9718

赞同来自:

麻烦提供一个demo吧

ParadiseKiss

赞同来自:

方便提供一下部分代码或者demo?

该问题目前已经被锁定, 无法添加新回复

商务合作
商务合作