修复app无法调起微信支付的bug
This commit is contained in:
parent
a2e99c58b2
commit
0911faeefa
|
@ -162,7 +162,7 @@ export default function Pay() {
|
|||
router.push(`${data.data.alipay_h5_param_str}`);
|
||||
break;
|
||||
case "wxpay_h5":
|
||||
if (base.b_ch === "h5") {
|
||||
if (base.b_ch === "h5" && !base.b_model) {
|
||||
// 使用postMessage向父页面发送跳转请求
|
||||
const redirectUrl = `https://yibowanhe.top?url=${encodeURIComponent(
|
||||
data.data.wxpay_h5_param_str
|
||||
|
@ -258,7 +258,7 @@ export default function Pay() {
|
|||
router.push(`${data.data.alipay_h5_param_str}`);
|
||||
break;
|
||||
case "wxpay_h5":
|
||||
if (base.b_ch === "h5") {
|
||||
if (base.b_ch === "h5" && !base.b_model) {
|
||||
// 使用postMessage向父页面发送跳转请求
|
||||
const redirectUrl = `https://yibowanhe.top?url=${encodeURIComponent(
|
||||
data.data.wxpay_h5_param_str
|
||||
|
|
|
@ -6,6 +6,7 @@ import webviewBaseRequest from "@/utils/webviewBaseRequest";
|
|||
import Link from "next/link";
|
||||
import { Toast } from "antd-mobile";
|
||||
import { useRouter, useSearchParams } from "next/navigation";
|
||||
|
||||
export default function Vip() {
|
||||
const router = useRouter();
|
||||
const searchParams = useSearchParams();
|
||||
|
@ -132,7 +133,7 @@ export default function Vip() {
|
|||
router.push(`${data.data.alipay_h5_param_str}`);
|
||||
break;
|
||||
case "wxpay_h5":
|
||||
if (base.b_ch === "h5") {
|
||||
if (base.b_ch === "h5" && !base.b_model) {
|
||||
// 使用postMessage向父页面发送跳转请求
|
||||
const redirectUrl = `https://yibowanhe.top?url=${encodeURIComponent(
|
||||
data.data.wxpay_h5_param_str
|
||||
|
@ -214,7 +215,7 @@ export default function Vip() {
|
|||
router.push(`${data.data.alipay_h5_param_str}`);
|
||||
break;
|
||||
case "wxpay_h5":
|
||||
if (base.b_ch === "h5") {
|
||||
if (base.b_ch === "h5" && !base.b_model) {
|
||||
// 使用postMessage向父页面发送跳转请求
|
||||
const redirectUrl = `https://yibowanhe.top?url=${encodeURIComponent(
|
||||
data.data.wxpay_h5_param_str
|
||||
|
|
Loading…
Reference in New Issue