Merge pull request '为微信native支付页面添加error页面' (#39) from feat-20240118 into main

Reviewed-on: https://git.wishpal.cn/wishpal_ironfan/tiefen_space_web/pulls/39
This commit is contained in:
yezian 2024-02-06 00:49:55 +08:00
commit 6be7f50a0b
2 changed files with 16 additions and 1 deletions

View File

@ -0,0 +1,15 @@
"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

@ -40,7 +40,7 @@ export default function Weixin({ params }) {
window.open("weixin://", "_blank");
return;
}
window.open("weixin://", "_blank");
window.open("weixin://scanqrcode", "_blank");
};
if (isLoading) {