协议调试
This commit is contained in:
@@ -188,26 +188,26 @@ export class GirlDetailPanel extends li_BaseView {
|
||||
|
||||
bindVideoToggle() {
|
||||
const girlData = DataManager.I.getDataById<GirlData>(DataId.Girl);
|
||||
let ids = girlData.getAllDisplayGrilVideoId(this.category.toString(), this.id);
|
||||
this.refreshImgs(2, this.category, this.id, ids);
|
||||
let resIds = girlData.getAllDisplayGrilVideoId(this.category.toString(), this.id);
|
||||
this.refreshImgs(2, this.category, this.id, resIds);
|
||||
}
|
||||
|
||||
refreshImgs(
|
||||
type: number,
|
||||
category: number,
|
||||
id: number,
|
||||
datas: number[]
|
||||
resIds: number[]
|
||||
) {
|
||||
for (let i = this.imgsLayout.children.length - 1; i >= 0; i--) {
|
||||
this.imgsLayout.children[i].destroy();
|
||||
}
|
||||
|
||||
let count = datas.length;
|
||||
let count = resIds.length;
|
||||
for (let i = 0; i < count; i++) {
|
||||
let newNode = instantiate(this.imgItemInst.node);
|
||||
let item = newNode.getComponent(DetailImageItem);
|
||||
let data = datas[i];
|
||||
item.refresh(this, type, category, id, data);
|
||||
let resId = resIds[i];
|
||||
item.refresh(this, type, category, id, resId);
|
||||
newNode.active = true;
|
||||
this.imgsLayout.addChild(newNode);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user