fix
This commit is contained in:
@@ -78,23 +78,7 @@ export class DetailImageItem extends Component {
|
||||
base: this,
|
||||
type: this.type,
|
||||
});
|
||||
|
||||
// ViewManager.I.openBundlesView("PopupGirlDetailPanel", {
|
||||
// category: this.category,
|
||||
// resId: this.resId,
|
||||
// girlId: this.girlId,
|
||||
// base: this,
|
||||
// type: this.type,
|
||||
// });
|
||||
}
|
||||
// if (!this.isImage) {
|
||||
// //判断是否已经解锁此资源
|
||||
// } else {
|
||||
// if (this.url) {
|
||||
// ViewManager.I.openBundlesView("ShowPanel", data);
|
||||
// this.base.setVideEnable(false);
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -251,6 +235,13 @@ export class DetailImageItem extends Component {
|
||||
ResManager.I.changeRemoteSpriteFrame(this.img, newPath, () => {
|
||||
this.scaleToFillItem();
|
||||
});
|
||||
if (this.isVisible) {
|
||||
this.video.enabled = false;
|
||||
this.videoReady.enabled = true;
|
||||
} else {
|
||||
this.video.enabled = true;
|
||||
this.videoReady.enabled = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user