parent
367da6a389
commit
248875ae12
@ -0,0 +1,46 @@
|
||||
import Image from 'next/image';
|
||||
|
||||
import JournalCard from './JournalCard';
|
||||
|
||||
import { apiJournalList } from '@/services/server/journal';
|
||||
|
||||
const RecommondJournal = async ({
|
||||
categoryId,
|
||||
journalNoRange,
|
||||
pageNum,
|
||||
pageSize,
|
||||
}: {
|
||||
categoryId?: string;
|
||||
journalNoRange?: string;
|
||||
pageNum?: number;
|
||||
pageSize?: number;
|
||||
}) => {
|
||||
const journalList: JournalList = await apiJournalList({
|
||||
categoryId,
|
||||
journalNoRange,
|
||||
pageNum,
|
||||
pageSize,
|
||||
});
|
||||
|
||||
return (
|
||||
<div className="flex flex-col mt-[33px]">
|
||||
{/* 分类 & 电台 */}
|
||||
<div className="flex flex-row items-center justify-between">
|
||||
<div className="text-[17px] leading-[23.8px]">{'摇滚'}</div>
|
||||
<div className="flex flex-row items-center cursor-pointer">
|
||||
<Image className="mr-[6px]" width={24} height={24} src={'/img/icon/fm.svg'} alt="FM" />
|
||||
<p className="text-[15px] leading-[21px]">电台</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* 期刊 list */}
|
||||
<div className="flex flex-col gap-[60px] mt-[17px]">
|
||||
{journalList.rows.map((item: JournalInfo) => (
|
||||
<JournalCard key={item.id} {...item} />
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default RecommondJournal;
|
Loading…
Reference in new issue