设置页面资源
This commit is contained in:
2025-09-10 18:12:26 +08:00
parent cb2b8e76ea
commit 24c2a946a3
64 changed files with 7534 additions and 1023 deletions
@@ -53,19 +53,18 @@ export class DetailImageItem extends Component {
}
isVisible: boolean;
onClickThis() {
let data = {
url: this.url,
isImg: this.isImage,
closeFunc: () => {
this.base.setVideEnable(true);
},
};
// 数据
const girlData = DataManager.I.getDataById<GirlData>(DataId.Girl);
// 是否可见,不可见代表需要解锁
if (this.isVisible) {
let data = {
url: this.url,
isImg: this.isImage,
closeFunc: () => {
this.base.setVideEnable(true);
},
};
if (this.url) {
ViewManager.I.openBundlesView("ShowPanel", data);
this.base.setVideEnable(false);
@@ -199,12 +198,13 @@ export class DetailImageItem extends Component {
if (this.isVisible) {
imgPath = this.url + "_thumbnail";
this.priceFrame.active = false;
} else {
this.priceFrame.active = true;
this.videoPrice.string = price.toString();
imgPath = this.url + "_thumbnail_blur";
}
this.priceFrame.active = price > 0;
this.videoPrice.string = price.toString();
ResManager.I.changeBundleSpriteFrame(this.img, imgPath, "Girls", () => {
this.question.active = false; // 图片加载成功后隐藏问号
@@ -214,6 +214,8 @@ export class DetailImageItem extends Component {
refreshVideoBuy(success: boolean) {
if (success) {
this.priceFrame.active = false;
this.isVisible = true;
const imgPath = this.url + "_thumbnail";
ResManager.I.changeBundleSpriteFrame(this.img, imgPath, "Girls", () => {
this.question.active = false; // 图片加载成功后隐藏问号
@@ -106,6 +106,9 @@ export class GirlListItem extends Component {
this.category.toString(),
this.id
);
this.price.string = girlData
.getGrilOriginalPrice(this.category.toString(), this.id)
.toString();
if (isRelease) {
this.price.node.active = false;
@@ -150,11 +153,8 @@ export class GirlListItem extends Component {
}
);
//虚假好感度
const star = girlData.getStar(this.category.toString(), this.id);
// this.starParent.active = ratio != 0;
// this.chatIcon.active = ratio != 0;
// this.price.node.active = ratio == 0;
for (let i = 0; i < this.stars.length; i++) {
const element = this.stars[i];
if (star > i) {