模拟数据:技师的详细数据

This commit is contained in:
chen wei bo
2025-09-05 09:42:42 +08:00
parent cd05c4d3a8
commit 5088bcce73
2 changed files with 23 additions and 4 deletions
@@ -137,9 +137,8 @@ export class GirlDetailPanel extends li_BaseView {
tagKey: string;
category: number;
async refresh(index: number) {
// TODO,暂时这样获取,修改后从GirlData获取
const girlConfig = ConfigManager.tables.TbGirls.get(this.id);
this.category = girlConfig.category;
const girlData = DataManager.I.getDataById<GirlData>(DataId.Girl);
this.category = girlData.getGrilCategoryById(this.id);
// 请求详细数据
const reqData = {
id: this.id,
@@ -147,7 +146,6 @@ export class GirlDetailPanel extends li_BaseView {
let res = await GirlService.I.reqGetGirlDetail(reqData);
if (res && res.code === proto.cs.EnmRetCode.SUCCESS) {
// 保存数据
const girlData = DataManager.I.getDataById<GirlData>(DataId.Girl);
girlData.setGirlDetails(this.category.toString(), res.data);
// 根据数据,刷新界面
this.nameKey = girlData.getGrilName(this.category.toString(), this.id);