This commit is contained in:
2025-09-09 16:09:10 +08:00
parent 5e3e639638
commit f9f2077665
12 changed files with 123 additions and 26 deletions
@@ -6,6 +6,7 @@ import {
Node,
Sprite,
UITransform,
View,
} from "cc";
import { Config18x } from "db://assets/Scripts/Main/Config/Config18x";
import ResManager from "db://assets/Scripts/Main/Manager/ResManager";
@@ -58,9 +59,19 @@ export class DetailImageItem extends Component {
this.base.setVideEnable(true);
},
};
if (this.url) {
ViewManager.I.openBundlesView("ShowPanel", data);
this.base.setVideEnable(false);
//判断是否已经解锁此资源
const isRelease = false;
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,
});
}
}