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