update
This commit is contained in:
@@ -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) {
|
||||
// 图片
|
||||
|
||||
Reference in New Issue
Block a user