修改微信支付在h5的跳转模式
This commit is contained in:
parent
14dc556d2b
commit
38d69b98c1
|
@ -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}`);
|
||||
|
|
|
@ -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}`);
|
||||
|
|
Loading…
Reference in New Issue