"use client"; import React from "react"; import { useRouter } from "next/navigation"; import OwnImage from "../OwnImage"; import OwnIcon from "../OwnIcon"; export default function FoundItem({ data = {} }) { const router = useRouter(); return (
{ router.push("/profile/" + data.mid); }} >
{data?.name}
{data?.gender === 1 ? ( ) : ( )} {data?.age}岁
{data?.city}
全网粉丝:{data?.fans}万
{data?.album?.images.map((item, index) => { if (index > 1) return; return (
{index === 1 && data?.album?.images.length > 2 && (
+{data?.album?.images.length - 2}
)}
); })}
{/* 下方标签区 */}
{data?.is_active_within_a_week === 1 && ( )} {data?.tag?.map((item, index) => { if (index > 2) return; if (data?.is_active_within_a_week === 1 && index > 1) return; return (
{item}
); })}
{data?.platforms?.map((item, index) => { if (index > 5) return; return (
{index < 5 && ( )} {index === 5 && (
+{data?.platforms.length - 5}
)}
); })}
{/* 分割线 */}
); }