"use client"; import React, { useEffect, useState, useRef } from "react"; import { Image, Avatar, Divider, Dialog, Toast } from "antd-mobile"; import { useRouter, useSearchParams } from "next/navigation"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faAngleLeft, faAngleRight, faCalendar, } from "@fortawesome/free-solid-svg-icons"; export default function Setting() { const router = useRouter(); const searchParams = useSearchParams(); const [streamerInfo, setStreamerInfo] = useState(null); const [showModal, setShowModal] = useState(false); useEffect(() => { let data = JSON.parse(decodeURIComponent(searchParams.get("data"))); setStreamerInfo(data); }, []); const handleShowVideo = () => { Dialog.className = "videoMask"; Dialog.show({ title: "是否确认退出空间?", content: (
一旦退出,您的空间成员身份将会被取消,若当前空间为付费空间,下次加入时,需要再次付费。请确保知晓以上内容后谨慎选择退出。
), bodyStyle: { // background: "none", maxHeight: "none", width: "80vw", position: "absolute", top: "calc(50% - 50px)", left: "10vw", }, actions: [ { key: "submit", text: "确定", onClick: () => { i; }, }, { key: "cancel", text: "取消", onClick: () => {}, }, ], }); }; return (
{ router.back(); }} />

空间设置

{/* 内容 */}

{streamerInfo?.name}

  • {streamerInfo?.user_id}
  • { router.back(); }} /> {streamerInfo?.user_id}
); }