diff --git a/app/vip/page.jsx b/app/vip/page.jsx index 1a4cc67..c499f9f 100644 --- a/app/vip/page.jsx +++ b/app/vip/page.jsx @@ -9,26 +9,24 @@ import { useRouter, useSearchParams } from "next/navigation"; export default function Vip() { const router = useRouter(); const searchParams = useSearchParams(); - const alipayBlock = () => { - if (base?.b_mid === 161) { - createOrder("alipay_h5"); - return; - } - Toast.show({ - content: "支付渠道维护升级中,请24小时后再试", - }); - }; + + //是否显示被隐藏的支付方式 + const [isPaymentHided, setIsPaymentHided] = useState(true); //检查用户是否是vip const [isVip, setIsVip] = useState(false); const [name, setName] = useState(""); const [isFetching, setIsFetching] = useState(true); + //判断当前环境是否在app内 + const [isInApp, setIsInApp] = useState(true); + const getBase = useCallback( (webviewBase) => { let searchParamsObj = null; let currentBaseCode = searchParams.get("base"); if (currentBaseCode) { + setIsInApp(false); let currentBase = JSON.parse(currentBaseCode); searchParamsObj = { ...currentBase }; } @@ -139,7 +137,7 @@ export default function Vip() { break; case "wxpay_h5": router.push( - `https://shop.tiefen.fun/pay/wxpay_h5/${encodeURIComponent( + `https://app.tiefen.fun/wxpay_h5/${encodeURIComponent( data.data.wxpay_h5_param_str )}` ); @@ -304,7 +302,7 @@ export default function Vip() {
+ 其他支付 +
++ 微信支付 +
+确认购买即视为同意 diff --git a/app/zone/pay/[zid]/[product_id]/[moment_id]/page.jsx b/app/zone/pay/[zid]/[product_id]/[moment_id]/page.jsx index a9bb355..1a2ac31 100644 --- a/app/zone/pay/[zid]/[product_id]/[moment_id]/page.jsx +++ b/app/zone/pay/[zid]/[product_id]/[moment_id]/page.jsx @@ -16,11 +16,19 @@ export default function Pay({ params }) { //超粉商品数据 const [superfanshipData, setSuperfanshipData] = useState(); const [isFetching, setIsFetching] = useState(true); + + //是否显示被隐藏的支付方式 + const [isPaymentHided, setIsPaymentHided] = useState(true); + + //判断当前环境是否在app内 + const [isInApp, setIsInApp] = useState(true); + const getBase = useCallback( (webviewBase) => { let searchParamsObj = null; let currentBaseCode = searchParams.get("base"); if (currentBaseCode) { + setIsInApp(false); let currentBase = JSON.parse(currentBaseCode); searchParamsObj = { ...currentBase }; } @@ -158,7 +166,7 @@ export default function Pay({ params }) { break; case "wxpay_h5": router.push( - `https://shop.tiefen.fun/pay/wxpay_h5/${encodeURIComponent( + `https://app.tiefen.fun/wxpay_h5/${encodeURIComponent( data.data.wxpay_h5_param_str )}` ); @@ -327,7 +335,7 @@ export default function Pay({ params }) {
+ 其他支付 +
++ 微信支付 +
+确认购买即视为同意