Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/routes/showstart/artist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,6 @@ async function handler(ctx: Context): Promise<Data> {
description: artist.content,
link: `${HOST}/artist/${artist.id}`,
item: artist.activityList,
allowEmpty: true,
};
}
1 change: 1 addition & 0 deletions lib/routes/showstart/brand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,6 @@ async function handler(ctx: Context): Promise<Data> {
description: brand.content,
link: `${HOST}/host/${brand.id}`,
item: brand.activityList,
allowEmpty: true,
};
}
3 changes: 2 additions & 1 deletion lib/routes/showstart/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ async function handler(ctx: Context): Promise<Data> {
const tags = [cityName, showName].filter(Boolean).join(' - ');
return {
title: `${TITLE} - ${tags}`,
link: HOST,
link: `${HOST}/event/list?cityCode=${cityCode}${showStyle ? `&showStyle=${showStyle}` : ''}`,
item: items,
allowEmpty: true,
};
}
8 changes: 7 additions & 1 deletion lib/routes/showstart/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,43 +64,49 @@ async function handler(ctx: Context): Promise<Data> {
title: `${TITLE} - 搜演出 - ${keyword || '全部'}`,
link: HOST,
item: await fetchActivityList({ keyword }),
allowEmpty: true,
};
case 'artist':
return {
title: `${TITLE} - 搜艺人 - ${keyword || '全部'}`,
link: HOST,
item: await fetchPerformerList({ searchKeyword: keyword }),
allowEmpty: true,
};
case 'site':
return {
title: `${TITLE} - 搜场地 - ${keyword || '全部'}`,
link: HOST,
item: await fetchSiteList({ searchKeyword: keyword }),
allowEmpty: true,
};
case 'brand':
return {
title: `${TITLE} - 搜厂牌 - ${keyword || '全部'}`,
link: HOST,
item: await fetchBrandList({ searchKeyword: keyword }),
allowEmpty: true,
};
case 'city':
return {
title: `${TITLE} - 搜城市 - ${keyword || '全部'}`,
link: HOST,
item: await fetchCityList(keyword),
allowEmpty: true,
};
case 'style':
return {
title: `${TITLE} - 搜风格 - ${keyword || '全部'}`,
link: HOST,
item: await fetchStyleList(keyword),
allowEmpty: true,
};
default:
return {
title: `${TITLE} - 搜演出 - ${type || '全部'}`,
link: HOST,
allowEmpty: true,
item: await fetchActivityList({ keyword: type }),
allowEmpty: true,
};
}
}
3 changes: 2 additions & 1 deletion lib/routes/showstart/site.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ async function handler(ctx: Context): Promise<Data> {
return {
title: `${TITLE} - ${siteInfo.name}`,
description: siteInfo.address,
link: HOST,
link: `${HOST}/venue/${siteId}`,
item: activityList,
allowEmpty: true,
};
}