协议调试

This commit is contained in:
chen wei bo
2025-09-09 18:16:37 +08:00
parent f9f2077665
commit e89d515bde
10 changed files with 468 additions and 32 deletions
@@ -91,6 +91,8 @@ 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++) {
@@ -148,13 +150,17 @@ export class GirlListItem extends Component {
}
onClickDetail() {
if (false) {
const girlData = DataManager.I.getDataById<GirlData>(DataId.Girl);
// 是否已经解锁
const isRelease = girlData.getIsRelease(this.category.toString(), this.id);
if (isRelease) {
NavigationManager.Instance.navigateToGirlDetail(this.id);
ViewManager.I.closeView(this.baseNode);
} else {
//未解锁
ViewManager.I.openBundlesView("GirlListPopupPanel", {
base: this,
category: this.category,
id: this.id,
});
}