模拟数据:技师的详细数据
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user