"use client"; import React, { useEffect, useRef, useState } from "react"; import { JumboTabs, List, InfiniteScroll, Avatar } from "antd-mobile"; // import { useRouter } from "next/navigation"; import { useRouter } from "next/navigation"; import {useSearchParams, usePathname,useParams} from "next/navigation" import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faAngleLeft } from "@fortawesome/free-solid-svg-icons"; import Empty from "@/components/Empty"; import styles from "./index.module.scss" import webviewBaseRequest from "@/utils/webviewBaseRequest"; import { generateSignature } from "@/utils/crypto"; export default function Relationship() { const [currentKey, setCurrentKey] = useState("follow"); const [hasMore, setHasMore] = useState(true); // const router = useRouter(); const router = useRouter(); const searchParams = useSearchParams(); const pathname = usePathname(); const params = useParams(); const [scrollHeight, setScrollHeight] = useState(0); // 获取屏幕高度 // const scrollHeight = 600; useEffect(() => { const data = getData(); console.log("getData",getData) }, []); useEffect(() => { const key = searchParams.get("key"); // console.log('nnnnn',searchParams.get("key")) key && setCurrentKey(key) }, [searchParams]) async function loadMore() { const append = await mockRequest(); setData((val) => [...val, ...append]); setHasMore(append.length > 0); } const getData = async () => { const base = webviewBaseRequest(); const signature = generateSignature({ ...base, b_mid:182308 }); return await fetch( `/api/vas/income_page?signature=${signature}`, { method: "POST", headers: { "Content-Type": "application/json", }, body: JSON.stringify({ ...base, b_mid:182308 }), } ) }; return (
{ router.back(); }} />

关系

{/* 内容 */}
setCurrentKey(key)} activeKey={currentKey} className={`bg-deepBg ${styles.jumboTabs}`} >
) } destroyOnClose={true} >

XXXXXX

专属圈内容都在空间里,永久更新外面看不到哟

关注

XXXXXX

专属圈内容都在空间里,永久更新外面看不到哟

已关注
) } destroyOnClose={true} >
); }