import styles from './index.less' import Header from "./header"; import { Empty, Tag } from "antd"; import { ReactElement, JSXElementConstructor, ReactNode, ReactPortal, Key } from "react"; import { MyIcon } from "@/global"; // 猜你喜欢 export function GuessLike(props: { data: { appComponentId: number | string; componentType: string; showRightButton?: boolean; componentName?: string; remark?: string; configs?: any[]; } }) { const { data: { configs, componentName, showRightButton } } = props return
{configs?.[0]?.bookInfo ? <>
{ configs?.map((item: { bookInfo: any }, index: Key | null | undefined) => { return
{item?.bookInfo?.vipFree && } { e.target.src = localStorage.getItem("nocover") }} />
{item?.bookInfo?.bookName || "书名"} {item?.bookInfo?.bookDesc || "描述"}
{item?.bookInfo?.authorInfo?.authorName || item?.bookInfo?.authorName}·{item?.bookInfo?.wordCount}万字·{item?.bookInfo?.bookStatus == 0 ? "连载中" : "完结"} {item?.bookInfo?.labelInfoList?.[0]?.name}
}) }
:
}
}