在应用内浏览器不再展示内容
This commit is contained in:
parent
434e32d7ed
commit
db0ecbb4d3
|
@ -68,9 +68,9 @@ export default function WechatBar({ price, streamerMid, onClickDownloadApp }) {
|
||||||
break;
|
break;
|
||||||
case "wxpay_h5":
|
case "wxpay_h5":
|
||||||
router.push(
|
router.push(
|
||||||
`https://shop.tiefen.fun/pay/wxpay_h5/${encodeURIComponent(
|
`https://shop.tiefen.space/pay/wxpay_h5/${encodeURIComponent(
|
||||||
temData.data.wxpay_h5_param_str +
|
temData.data.wxpay_h5_param_str +
|
||||||
"&redirect_url=https%3A%2F%2Fshop.tiefen.fun%2Fpurchased"
|
"&redirect_url=https%3A%2F%2Fshop.tiefen.space%2Fpurchased"
|
||||||
)}`
|
)}`
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
|
|
20
app/page.jsx
20
app/page.jsx
|
@ -1,23 +1,5 @@
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
return (
|
return <section className="flex flex-col container"></section>;
|
||||||
<section className="flex flex-col container">
|
|
||||||
<footer className="w-full px-4 py-4 z-10">
|
|
||||||
<div className="flex flex-row flex-wrap justify-center items-center">
|
|
||||||
<a
|
|
||||||
target="_blank"
|
|
||||||
href="http://beian.miit.gov.cn"
|
|
||||||
className="text-xs text-white"
|
|
||||||
>
|
|
||||||
津ICP备2023007056号-1
|
|
||||||
</a>
|
|
||||||
<span className="text-xs text-white"> | </span>
|
|
||||||
<a className="text-xs text-white">
|
|
||||||
Copyright © 2023-2024 天津觅缘天使科技有限公司
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</footer>
|
|
||||||
</section>
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
import React, { useState, useEffect } from "react";
|
import React, { useState, useEffect } from "react";
|
||||||
import { useRouter } from "next/navigation";
|
import { useRouter } from "next/navigation";
|
||||||
|
import InOtherApp from "@/components/InOtherApp";
|
||||||
|
|
||||||
export default function Zone({ params }) {
|
export default function Zone({ params }) {
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
@ -21,19 +22,12 @@ export default function Zone({ params }) {
|
||||||
setIsInOtherApp(true);
|
setIsInOtherApp(true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
router.replace(`https://tiefen.fun/zone/${params?.user_id}`);
|
router.replace(`https://tiefen.space/zone/${params?.user_id}`);
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<section className="flex flex-col flex-1">
|
<section className="flex flex-col flex-1">
|
||||||
{isInOtherApp && (
|
{isInOtherApp && <InOtherApp />}
|
||||||
<div className="flex flex-1 w-full h-full">
|
|
||||||
<iframe
|
|
||||||
src={`https://tiefen.fun/zone/${params.user_id}`}
|
|
||||||
className="w-full"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
import React, { useState, useEffect } from "react";
|
import React, { useState, useEffect } from "react";
|
||||||
import { useRouter } from "next/navigation";
|
import { useRouter } from "next/navigation";
|
||||||
|
import InOtherApp from "@/components/InOtherApp";
|
||||||
|
|
||||||
export default function Zone({ params }) {
|
export default function Zone({ params }) {
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
@ -21,19 +22,12 @@ export default function Zone({ params }) {
|
||||||
setIsInOtherApp(true);
|
setIsInOtherApp(true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
router.replace(`https://tiefen.fun/zone/${params?.user_id}`);
|
router.replace(`https://tiefen.space/zone/${params?.user_id}`);
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<section className="flex flex-col flex-1">
|
<section className="flex flex-col flex-1">
|
||||||
{isInOtherApp && (
|
{isInOtherApp && <InOtherApp />}
|
||||||
<div className="flex flex-1 w-full h-full">
|
|
||||||
<iframe
|
|
||||||
src={`https://tiefen.fun/zone/${params.user_id}`}
|
|
||||||
className="w-full"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,11 +4,11 @@ const nextConfig = {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
source: "/api/:path*",
|
source: "/api/:path*",
|
||||||
destination: "https://api.tiefen.fun/api/:path*",
|
destination: "https://api.tiefen.space/api/:path*",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
source: "/cors/:path*",
|
source: "/cors/:path*",
|
||||||
destination: "https://file.tiefen.fun/:path*",
|
destination: "https://file.tiefen.space/:path*",
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue