易宝支付

This commit is contained in:
yezian 2024-05-27 17:54:45 +08:00
parent 937becc748
commit cc02c10a98
1 changed files with 8 additions and 2 deletions

View File

@ -129,6 +129,12 @@ export default function Pay() {
return;
}
switch (type) {
case "yeepay_alipay_h5":
router.push(`${data.data.yeepay_alipay_h5_param_str}`);
break;
case "yeepay_wxpay_h5":
router.push(`${data.data.yeepay_wxpay_h5_param_str}`);
break;
case "alipay_h5":
router.push(`${data.data.alipay_h5_param_str}`);
break;
@ -275,7 +281,7 @@ export default function Pay() {
<div className="flex mt-auto mb-12">
<div className="basis-1/2 px-2">
<button
onClick={() => createOrder("alipay_h5")}
onClick={() => createOrder("yeepay_alipay_h5")}
className="flex flex-row h-12 w-full items-center justify-center bg-primary rounded-full py-2"
>
<svg viewBox="0 0 1024 1024" width="18" height="18">
@ -289,7 +295,7 @@ export default function Pay() {
</div>
<div className="basis-1/2 px-2">
<button
onClick={() => createOrder("wxpay_h5")}
onClick={() => createOrder("yeepay_wxpay_h5")}
className="flex flex-row h-12 w-full items-center justify-center bg-primary rounded-full py-2"
>
<svg viewBox="0 0 1228 1024" width="18" height="18">