删除error页面;ios暂时不展示打开微信扫一扫步骤

This commit is contained in:
yezian 2024-02-06 01:09:05 +08:00
parent 86a11d6c8f
commit ad51c89ea5
3 changed files with 9 additions and 45 deletions

View File

@ -1,23 +0,0 @@
"use client";
export default function GlobalError({ error, reset }) {
return (
<html
lang="zh-CN"
className="bg-[#07050A]"
data-prefers-color-scheme="dark"
>
<body className="box-border min-h-screen flex flex-col">
<section className="flex flex-1 flex-col container py-4">
<div className="mt-24 flex flex-col gap-2">
<h1 className="text-white text-2xl font-semibold text-center">
请打开微信扫码支付
<br />
完成支付后关闭此页面即可
</h1>
</div>
</section>
</body>
</html>
);
}

View File

@ -1,15 +0,0 @@
"use client"; // Error components must be Client Components
export default function Error() {
return (
<section className="flex flex-1 flex-col container py-4">
<div className="mt-24 flex flex-col gap-2">
<h1 className="text-white text-2xl font-semibold text-center">
请打开微信扫码支付
<br />
完成支付后关闭此页面即可
</h1>
</div>
</section>
);
}

View File

@ -68,14 +68,16 @@ export default function Weixin({ params }) {
onClick={saveQrcode} onClick={saveQrcode}
className="btn btn-primary rounded-full text-white text-base" className="btn btn-primary rounded-full text-white text-base"
> >
点此保存二维码 {device === 0 ? "① 点此保存二维码" : "点此保存二维码"}
</button>
<button
onClick={openWechat}
className="btn btn-primary rounded-full text-white text-base"
>
{device === 0 ? "② 点此打开微信" : "② 点此打开微信扫一扫"}
</button> </button>
{device === 0 && (
<button
onClick={openWechat}
className="btn btn-primary rounded-full text-white text-base"
>
{device === 0 ? "② 点此打开微信" : "② 点此打开微信扫一扫"}
</button>
)}
</div> </div>
<div className="mt-4 flex justify-center"> <div className="mt-4 flex justify-center">
{qrcodeUrl && ( {qrcodeUrl && (