update
This commit is contained in:
@@ -232,8 +232,7 @@ export class GirlDetailPanel extends li_BaseView {
|
||||
}
|
||||
|
||||
let age = girlData.getGrilAge(this.category.toString(), this.id);
|
||||
this.descAge.string =
|
||||
LanguageUtils.getText("girldetailpanel.age") + age.toString();
|
||||
this.descAge.string = age.toString();
|
||||
|
||||
const firstPath = girlData.getFirstGrilVideoPath(
|
||||
this.category.toString(),
|
||||
@@ -326,17 +325,21 @@ export class GirlDetailPanel extends li_BaseView {
|
||||
OnClickChatBtn() {
|
||||
const girlData = DataManager.I.getDataById<GirlData>(DataId.Girl);
|
||||
|
||||
|
||||
//if (isRelease || isFree) {
|
||||
// 直接在当前页面打开ChatPanel作为子页面
|
||||
const currentPanel = NavigationManager.Instance.getCurrentActivePanelNode();
|
||||
if (currentPanel) {
|
||||
const chatData = { girlId: this.id, base: currentPanel };
|
||||
NavigationManager.Instance.openSubPanel("ChatPanel", currentPanel, chatData, {
|
||||
openAnimation: PageTransitionType.SLIDE_LEFT,
|
||||
closeAnimation: PageTransitionType.SLIDE_RIGHT,
|
||||
hideBasePanel: true,
|
||||
});
|
||||
NavigationManager.Instance.openSubPanel(
|
||||
"ChatPanel",
|
||||
currentPanel,
|
||||
chatData,
|
||||
{
|
||||
openAnimation: PageTransitionType.SLIDE_LEFT,
|
||||
closeAnimation: PageTransitionType.SLIDE_RIGHT,
|
||||
hideBasePanel: true,
|
||||
}
|
||||
);
|
||||
} else {
|
||||
logger.warn("[GirlDetailPanel] 无法获取当前激活的主页面");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user