From ad51c89ea5c8b3e7a20565cd9e1b205793fea667 Mon Sep 17 00:00:00 2001 From: yezian Date: Tue, 6 Feb 2024 01:09:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4error=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=EF=BC=9Bios=E6=9A=82=E6=97=B6=E4=B8=8D=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E6=89=93=E5=BC=80=E5=BE=AE=E4=BF=A1=E6=89=AB=E4=B8=80=E6=89=AB?= =?UTF-8?q?=E6=AD=A5=E9=AA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/global-error.jsx | 23 ----------------------- app/pay/[weixin]/error.jsx | 15 --------------- app/pay/[weixin]/page.jsx | 16 +++++++++------- 3 files changed, 9 insertions(+), 45 deletions(-) delete mode 100644 app/global-error.jsx delete mode 100644 app/pay/[weixin]/error.jsx diff --git a/app/global-error.jsx b/app/global-error.jsx deleted file mode 100644 index 443ae9a..0000000 --- a/app/global-error.jsx +++ /dev/null @@ -1,23 +0,0 @@ -"use client"; - -export default function GlobalError({ error, reset }) { - return ( - - -
-
-

- 请打开微信扫码支付 -
- 完成支付后关闭此页面即可 -

-
-
- - - ); -} diff --git a/app/pay/[weixin]/error.jsx b/app/pay/[weixin]/error.jsx deleted file mode 100644 index 81e8876..0000000 --- a/app/pay/[weixin]/error.jsx +++ /dev/null @@ -1,15 +0,0 @@ -"use client"; // Error components must be Client Components - -export default function Error() { - return ( -
-
-

- 请打开微信扫码支付 -
- 完成支付后关闭此页面即可 -

-
-
- ); -} diff --git a/app/pay/[weixin]/page.jsx b/app/pay/[weixin]/page.jsx index 3faf14e..be97480 100644 --- a/app/pay/[weixin]/page.jsx +++ b/app/pay/[weixin]/page.jsx @@ -68,14 +68,16 @@ export default function Weixin({ params }) { onClick={saveQrcode} className="btn btn-primary rounded-full text-white text-base" > - ① 点此保存二维码 - - + {device === 0 && ( + + )}
{qrcodeUrl && (