diff --git a/app/zone/pay/[zid]/[product_id]/[moment_id]/page.jsx b/app/zone/pay/[zid]/[product_id]/[moment_id]/page.jsx index 1c95fbe..2ce109e 100644 --- a/app/zone/pay/[zid]/[product_id]/[moment_id]/page.jsx +++ b/app/zone/pay/[zid]/[product_id]/[moment_id]/page.jsx @@ -81,7 +81,7 @@ export default function Pay({ params }) { setTimeout(() => { getData(); getSuperfanshipData(); - }, 1000); + }, 500); }, []); //是否勾选购买超粉switch组件 @@ -154,7 +154,7 @@ export default function Pay({ params }) { ); } - if (data?.has_bought === 1) { + if (data?.has_bought === 1 || superfanshipData?.has_bought === 1) { return (
diff --git a/app/zone/share/[user_id]/page.jsx b/app/zone/share/[user_id]/page.jsx index cdea7f7..d152c94 100644 --- a/app/zone/share/[user_id]/page.jsx +++ b/app/zone/share/[user_id]/page.jsx @@ -4,17 +4,13 @@ import React, { useState, useEffect } from "react"; import html2canvas from "html2canvas"; import baseRequest from "@/utils/baseRequest"; import { Toast } from "antd-mobile"; -import Divider from "@/components/Divider"; import { generateSignature } from "@/utils/crypto"; -import Image from "next/image"; -import icon_without_bg from "@/public/images/icon_without_bg.png"; -import invite_girl from "@/public/images/invite_girl.png"; -import ID from "@/public/images/ID.png"; export default function Share({ params }) { //获取页面数据、生成二维码 const [data, setData] = useState({}); const [qrcodeUrl, setQrcodeUrl] = useState(""); + const [isFetching, setIsFetching] = useState(true); useEffect(() => { const getData = async () => { try { @@ -51,6 +47,7 @@ export default function Share({ params }) { setQrcodeUrl(url); } ); + setIsFetching(false); } catch (error) { console.error(error); } @@ -62,10 +59,10 @@ export default function Share({ params }) { const Poster = () => { return (
-
-
+
+
@@ -73,9 +70,9 @@ export default function Share({ params }) {
-
+
@@ -86,7 +83,7 @@ export default function Share({ params }) {

- +

ID

{data?.user_id}

@@ -94,7 +91,7 @@ export default function Share({ params }) {
-
+

邀您加入我的 @@ -144,11 +141,19 @@ export default function Share({ params }) { window.ReactNativeWebView.postMessage( JSON.stringify({ type: "COPY_URL", - data: `https://tiefen.fun/${params.user_id}`, + data: `https://tiefen.fun/zone/${params.user_id}`, }) ); }; + if (isFetching) { + return ( +

+ +
+ ); + } + return (