fix
This commit is contained in:
@@ -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,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -141,13 +141,22 @@ export class GirlListItem extends Component {
|
||||
}
|
||||
}
|
||||
|
||||
refreshBuy(success: boolean) {
|
||||
if (success) {
|
||||
this.refreshData(this.category, this.id, this.baseNode);
|
||||
}
|
||||
}
|
||||
|
||||
onClickDetail() {
|
||||
if (false) {
|
||||
NavigationManager.Instance.navigateToGirlDetail(this.id);
|
||||
ViewManager.I.closeView(this.baseNode);
|
||||
} else {
|
||||
//未解锁
|
||||
ViewManager.I.openBundlesView("PopupGirlListPanel", this.id);
|
||||
ViewManager.I.openBundlesView("GirlListPopupPanel", {
|
||||
base: this,
|
||||
id: this.id,
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user