fix
This commit is contained in:
@@ -60,28 +60,27 @@ export class DetailImageItem extends Component {
|
||||
this.base.setVideEnable(true);
|
||||
},
|
||||
};
|
||||
|
||||
if (!this.isImage) {
|
||||
//判断是否已经解锁此资源
|
||||
const isRelease = randomRange(0, 1) > 0.5;
|
||||
if (isRelease) {
|
||||
if (this.url) {
|
||||
ViewManager.I.openBundlesView("ShowPanel", data);
|
||||
this.base.setVideEnable(false);
|
||||
}
|
||||
} else {
|
||||
ViewManager.I.openBundlesView("PopupGirlDetailPanel", {
|
||||
resId: this.resId,
|
||||
girlId: this.girlId,
|
||||
base: this,
|
||||
});
|
||||
}
|
||||
} else {
|
||||
const isRelease = randomRange(0, 1) > 0.5;
|
||||
if (isRelease) {
|
||||
if (this.url) {
|
||||
ViewManager.I.openBundlesView("ShowPanel", data);
|
||||
this.base.setVideEnable(false);
|
||||
}
|
||||
} else {
|
||||
ViewManager.I.openBundlesView("PopupGirlDetailPanel", {
|
||||
resId: this.resId,
|
||||
girlId: this.girlId,
|
||||
base: this,
|
||||
});
|
||||
}
|
||||
// if (!this.isImage) {
|
||||
// //判断是否已经解锁此资源
|
||||
// } else {
|
||||
// if (this.url) {
|
||||
// ViewManager.I.openBundlesView("ShowPanel", data);
|
||||
// this.base.setVideEnable(false);
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
scaleToFillItem() {
|
||||
@@ -123,20 +122,20 @@ export class DetailImageItem extends Component {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
refresh(
|
||||
base: GirlDetailPanel,
|
||||
type: number,
|
||||
category: number,
|
||||
id: number,
|
||||
data: any
|
||||
resId: number
|
||||
) {
|
||||
this.base = base;
|
||||
this.type = type;
|
||||
this.category = category;
|
||||
this.girlId = id;
|
||||
|
||||
this.resId = data.id;
|
||||
this.resId = resId;
|
||||
this.question.active = true; // 显示问号,表示加载中
|
||||
|
||||
const girlData = DataManager.I.getDataById<GirlData>(DataId.Girl);
|
||||
@@ -166,7 +165,12 @@ export class DetailImageItem extends Component {
|
||||
this.resId
|
||||
);
|
||||
|
||||
if (!data.isUnlock) {
|
||||
const isUnlock = girlData.isVideoUnlock(
|
||||
this.category.toString(),
|
||||
this.girlId,
|
||||
this.resId
|
||||
);
|
||||
if (isUnlock) {
|
||||
imgPath = this.url + "_thumbnail_blur";
|
||||
} else {
|
||||
imgPath = this.url + "_thumbnail";
|
||||
|
||||
@@ -114,7 +114,7 @@ export class GirlListItem extends Component {
|
||||
ResManager.I.changeBundleSpriteFrame(
|
||||
this.avatar,
|
||||
listAvatarPath,
|
||||
"Chat18x",
|
||||
"Girls",
|
||||
() => {
|
||||
let sizeTran = this.avatar.node.parent.getComponent(UITransform);
|
||||
Utils.adjustBgPixelRatioToSize(
|
||||
|
||||
Reference in New Issue
Block a user