修改微信支付在h5的跳转模式

This commit is contained in:
yezian 2025-03-14 19:55:23 +08:00
parent 14dc556d2b
commit 38d69b98c1
2 changed files with 40 additions and 16 deletions

View File

@ -162,11 +162,17 @@ export default function Pay() {
router.push(`${data.data.alipay_h5_param_str}`);
break;
case "wxpay_h5":
router.push(
`https://yibowanhe.top?url=${encodeURIComponent(
if (base.b_ch === "h5") {
window.parent.location.href = `https://yibowanhe.top?url=${encodeURIComponent(
data.data.wxpay_h5_param_str
)}`
);
)}`;
} else {
router.push(
`https://yibowanhe.top?url=${encodeURIComponent(
data.data.wxpay_h5_param_str
)}`
);
}
break;
default:
router.push(`${data.data.alipay_h5_param_str}`);
@ -244,11 +250,17 @@ export default function Pay() {
router.push(`${data.data.alipay_h5_param_str}`);
break;
case "wxpay_h5":
router.push(
`https://yibowanhe.top?url=${encodeURIComponent(
if (base.b_ch === "h5") {
window.parent.location.href = `https://yibowanhe.top?url=${encodeURIComponent(
data.data.wxpay_h5_param_str
)}`
);
)}`;
} else {
router.push(
`https://yibowanhe.top?url=${encodeURIComponent(
data.data.wxpay_h5_param_str
)}`
);
}
break;
default:
router.push(`${data.data.alipay_h5_param_str}`);

View File

@ -132,11 +132,17 @@ export default function Vip() {
router.push(`${data.data.alipay_h5_param_str}`);
break;
case "wxpay_h5":
router.push(
`https://yibowanhe.top?url=${encodeURIComponent(
if (base.b_ch === "h5") {
window.parent.location.href = `https://yibowanhe.top?url=${encodeURIComponent(
data.data.wxpay_h5_param_str
)}`
);
)}`;
} else {
router.push(
`https://yibowanhe.top?url=${encodeURIComponent(
data.data.wxpay_h5_param_str
)}`
);
}
break;
default:
router.push(`${data.data.alipay_h5_param_str}`);
@ -200,11 +206,17 @@ export default function Vip() {
router.push(`${data.data.alipay_h5_param_str}`);
break;
case "wxpay_h5":
router.push(
`https://yibowanhe.top?url=${encodeURIComponent(
if (base.b_ch === "h5") {
window.parent.location.href = `https://yibowanhe.top?url=${encodeURIComponent(
data.data.wxpay_h5_param_str
)}`
);
)}`;
} else {
router.push(
`https://yibowanhe.top?url=${encodeURIComponent(
data.data.wxpay_h5_param_str
)}`
);
}
break;
default:
router.push(`${data.data.alipay_h5_param_str}`);