This commit is contained in:
2025-10-14 15:19:12 +08:00
parent 7999c0b9ad
commit a389733596
7 changed files with 398 additions and 155 deletions
@@ -28,6 +28,8 @@ export class DetailImageItem extends Component {
@property(Sprite)
video: Sprite;
@property(Sprite)
videoReady: Sprite;
@property(Node)
priceFrame: Node;
@@ -166,6 +168,8 @@ export class DetailImageItem extends Component {
const girlData = DataManager.I.getDataById<GirlData>(DataId.Girl);
let imgPath = "";
this.video.enabled = type === proto.cs.EnmResType.ERT_Video;
this.videoReady.enabled = false;
this.priceFrame.active = type === proto.cs.EnmResType.ERT_Video;
let price = 0;
// 是否可见,不可见代表需要解锁
@@ -183,6 +187,13 @@ export class DetailImageItem extends Component {
this.girlId,
this.resId
);
if (this.isVisible) {
this.video.enabled = false;
this.videoReady.enabled = true;
} else {
this.video.enabled = true;
this.videoReady.enabled = false;
}
}
if (type === proto.cs.EnmResType.ERT_Image) {
// 图片