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

This commit is contained in:
chen wei bo
2025-09-02 17:22:40 +08:00
parent 29554bb0c8
commit 25b380841f
2 changed files with 65 additions and 12 deletions
@@ -48,6 +48,13 @@ export class GirlDetailConfig extends BaseConfig {
return oneData.commercialImages;
}
/** 根据 id 获取 commercialImages数量 */
public getCommercialImagesCount(id: number): any | null {
let oneData = this.getCommercialImagesById(id);
if (!oneData) return null;
return oneData.commercialImages.size;
}
/** 根据 id 和 index 获取图片类型 */
public getImageTypeById(id: number, index: number): number | null {
let oneData = this.getCommercialImagesById(id);
@@ -79,6 +86,13 @@ export class GirlDetailConfig extends BaseConfig {
return oneData.commercialVideos;
}
/** 根据 id 获取 commercialVideos数量 */
public getCommercialVideosCount(id: number): any | null {
let oneData = this.getCommercialVideosById(id);
if (!oneData) return null;
return oneData.commercialVideos.size;
}
/** 根据 id 和 index 获取视频路径 */
public getVideoPathById(id: number, index: number): string | null {
let oneData = this.getCommercialVideosById(id);