|
|
@@ -29,14 +29,6 @@ export class TravalContentApi extends CommonContentApi {
|
|
|
super(undefined, 17, "路线");
|
|
|
}
|
|
|
|
|
|
- async getTravalList(id: number) {
|
|
|
- const res = await this.getContentDetail(id, GetContentDetailItem, 17, {
|
|
|
- 'scenic_spots': '1',
|
|
|
- });
|
|
|
- res.scenicSpotsList = (res.scenicSpotsList as any[]).map(p => transformDataModel<TravalListItem>(TravalListItem, p));
|
|
|
- res.keywords = (res.scenicSpotsList as any[]).map(p => p.name);
|
|
|
- return res;
|
|
|
- }
|
|
|
async getTravalRouteList(params: GetContentListParams) {
|
|
|
params.setSelfValues({
|
|
|
pid: 8768,
|
|
|
@@ -48,7 +40,6 @@ export class TravalContentApi extends CommonContentApi {
|
|
|
p.scenicSpotsList = transformArrayDataModel<TravalListItem>(TravalListItem, p.scenicSpotsList as any[], '路线景点列表', true);
|
|
|
}
|
|
|
});
|
|
|
- res.list.unshift(await this.getTravalList(8768) as any);
|
|
|
return res;
|
|
|
}
|
|
|
|