update
This commit is contained in:
@@ -92,15 +92,13 @@ export class GirlListItem extends Component {
|
||||
this.nameKey = girlData.getGrilName(this.category.toString(), this.id);
|
||||
this.girlName.string = LanguageUtils.getText(this.nameKey);
|
||||
this.tagKey = girlData.getGrilTagKey(this.category.toString(), this.id);
|
||||
// 是否已经解锁
|
||||
const isRelease = girlData.getIsRelease(this.category.toString(), this.id);
|
||||
let desc = "";
|
||||
const tags = LanguageUtils.getText(this.tagKey).split("|");
|
||||
for (let i = 0; i < tags.length; i++) {
|
||||
if (i != 0) desc += "|";
|
||||
desc += tags[i];
|
||||
}
|
||||
this.tags.string = desc;
|
||||
// let desc = "";
|
||||
// const tags = LanguageUtils.getText(this.tagKey).split("|");
|
||||
// for (let i = 0; i < tags.length; i++) {
|
||||
// if (i != 0) desc += "|";
|
||||
// desc += tags[i];
|
||||
// }
|
||||
this.tags.string = LanguageUtils.getText(this.tagKey);
|
||||
let priceType = girlData.getGrilPriceType(
|
||||
this.category.toString(),
|
||||
this.id
|
||||
@@ -126,11 +124,14 @@ export class GirlListItem extends Component {
|
||||
for (let i = 0; i < this.stars.length; i++) {
|
||||
const element = this.stars[i];
|
||||
if (star > i) {
|
||||
ResManager.I.changeResourceSpriteFrame(element, "ui/common/heart");
|
||||
ResManager.I.changeResourceSpriteFrame(
|
||||
element,
|
||||
"ui/common/heart/heart"
|
||||
);
|
||||
} else {
|
||||
ResManager.I.changeResourceSpriteFrame(
|
||||
element,
|
||||
"ui/common/heart_empty"
|
||||
"ui/common/heart/heart_empty"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -73,11 +73,14 @@ export class PastGirlListItem extends Component {
|
||||
for (let i = 0; i < this.stars.length; i++) {
|
||||
const element = this.stars[i];
|
||||
if (star > i) {
|
||||
ResManager.I.changeResourceSpriteFrame(element, "ui/common/heart");
|
||||
ResManager.I.changeResourceSpriteFrame(
|
||||
element,
|
||||
"ui/common/heart/heart"
|
||||
);
|
||||
} else {
|
||||
ResManager.I.changeResourceSpriteFrame(
|
||||
element,
|
||||
"ui/common/heart_empty"
|
||||
"ui/common/heart/heart_empty"
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -99,13 +102,13 @@ export class PastGirlListItem extends Component {
|
||||
this.tagKey = girlData.getGrilTagKey(this.category.toString(), this.id);
|
||||
|
||||
// 标签显示
|
||||
let desc = "";
|
||||
const tags = LanguageUtils.getText(this.tagKey).split("|");
|
||||
for (let i = 0; i < tags.length; i++) {
|
||||
if (i != 0) desc += "|";
|
||||
desc += tags[i];
|
||||
}
|
||||
this.tags.string = desc;
|
||||
// let desc = "";
|
||||
// const tags = LanguageUtils.getText(this.tagKey).split("|");
|
||||
// for (let i = 0; i < tags.length; i++) {
|
||||
// if (i != 0) desc += "|";
|
||||
// desc += tags[i];
|
||||
// }
|
||||
this.tags.string = LanguageUtils.getText(this.tagKey);
|
||||
|
||||
// 由于都是已解锁的,直接显示聊天图标
|
||||
this.starParent.active = true;
|
||||
@@ -125,11 +128,14 @@ export class PastGirlListItem extends Component {
|
||||
for (let i = 0; i < this.stars.length; i++) {
|
||||
const element = this.stars[i];
|
||||
if (star > i) {
|
||||
ResManager.I.changeResourceSpriteFrame(element, "ui/common/heart");
|
||||
ResManager.I.changeResourceSpriteFrame(
|
||||
element,
|
||||
"ui/common/heart/heart"
|
||||
);
|
||||
} else {
|
||||
ResManager.I.changeResourceSpriteFrame(
|
||||
element,
|
||||
"ui/common/heart_empty"
|
||||
"ui/common/heart/heart_empty"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -64,9 +64,15 @@ export class RecomandItem extends Component {
|
||||
for (let i = 0; i < this.hearts.length; i++) {
|
||||
const element = this.hearts[i];
|
||||
if (starCount > i) {
|
||||
ResManager.I.changeResourceSpriteFrame(element, "ui/common/ZY_UI_AX1");
|
||||
ResManager.I.changeResourceSpriteFrame(
|
||||
element,
|
||||
"ui/common/heart/heart"
|
||||
);
|
||||
} else {
|
||||
ResManager.I.changeResourceSpriteFrame(element, "ui/common/ZY_UI_AX2");
|
||||
ResManager.I.changeResourceSpriteFrame(
|
||||
element,
|
||||
"ui/common/heart/heart_empty"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user