diff --git a/app/my/page.js b/app/my/page.js index e614305..dc5fea0 100644 --- a/app/my/page.js +++ b/app/my/page.js @@ -5,7 +5,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faAngleRight } from "@fortawesome/free-solid-svg-icons"; import { Avatar, Toast, Space } from "antd-mobile"; import { useRouter } from "next/navigation"; -import { get } from "@/utils/storeInfo"; +import { get, save } from "@/utils/storeInfo"; import requireAPI from "@/utils/requireAPI"; import OwnIcon from "@/components/OwnIcon"; import OwnImage from "@/components/OwnImage"; @@ -29,6 +29,7 @@ const My = () => { null, true ); + console.log("------", data); if (data.ret === -1) { Toast.show({ icon: "fail", @@ -65,6 +66,7 @@ const My = () => { }); return; } + save("account", account.data.account); const statuses = await requireAPI( "POST", "/api/streamer_auth_approval/get_statuses", @@ -118,13 +120,13 @@ const My = () => { subTitle: account.data.account.role == 3 ? "创作者功能" : "完善资料后解锁", }, - // { - // url: `my/refund/refundList`, - // iconUrl: "/icons/32DP/wallet.png", - // title: "退款审核", - // subTitle: - // account.data.account.role == 3 ? "创作者功能" : "完善资料后解锁", - // }, + { + url: `my/refund/refundList`, + iconUrl: "/icons/32DP/wallet.png", + title: "退款审核", + subTitle: + account.data.account.role == 3 ? "创作者功能" : "完善资料后解锁", + }, // ...currentOld, ]; if (isInJoinProgress) { diff --git a/app/my/refund/refundDetail/[id]/page.jsx b/app/my/refund/refundDetail/[id]/page.jsx index 7145d56..ac98970 100644 --- a/app/my/refund/refundDetail/[id]/page.jsx +++ b/app/my/refund/refundDetail/[id]/page.jsx @@ -142,7 +142,11 @@ export default function RefundDetail() {
diff --git a/app/my/refund/refundList/components/Reviewed/index.jsx b/app/my/refund/refundList/components/Reviewed/index.jsx index c647efc..d7e418a 100644 --- a/app/my/refund/refundList/components/Reviewed/index.jsx +++ b/app/my/refund/refundList/components/Reviewed/index.jsx @@ -66,7 +66,7 @@ export default function PendingReview({ currentIndex }) { roundedFull />
-
+
{item.account.name} @@ -99,9 +99,9 @@ export default function PendingReview({ currentIndex }) {
-
+
- + {item?.refunds_status === 4 ? "已自动退款" : item?.refunds_status === -1 diff --git a/app/search/conponents/HostList/index.jsx b/app/search/conponents/HostList/index.jsx index 7892663..b60b074 100644 --- a/app/search/conponents/HostList/index.jsx +++ b/app/search/conponents/HostList/index.jsx @@ -64,9 +64,13 @@ export default function HostList() { style={{ "--padding-left": 0 }} >
- router.push(`space/person_space_introduce/${item.mid}`) - } + onClick={() => { + if (item.hyperlinks[0].action === "outward") { + window.open(item.hyperlinks[0].url); + } else { + router.push(`space/person_space_introduce/${item.mid}`); + } + }} className="grid grid-cols-[48px,calc(100vw-48px-2rem)]" >
diff --git a/components/PostItem/index.js b/components/PostItem/index.js index 713b6c7..e64c918 100644 --- a/components/PostItem/index.js +++ b/components/PostItem/index.js @@ -284,6 +284,7 @@ export default function PostItem({ {type == "post" ? (
router.push("/space/person_space_introduce/" + data.mid) } @@ -324,8 +325,7 @@ export default function PostItem({ /> ) : ( - data?.streamer_ext?.zones?.length !== 0 && - !isOwn && ( + data?.streamer_ext?.zones?.length !== 0 && (
查看TA的空间