diff --git a/app/vip/page.jsx b/app/vip/page.jsx index c499f9f..1a4cc67 100644 --- a/app/vip/page.jsx +++ b/app/vip/page.jsx @@ -9,24 +9,26 @@ import { useRouter, useSearchParams } from "next/navigation"; export default function Vip() { const router = useRouter(); const searchParams = useSearchParams(); - - //是否显示被隐藏的支付方式 - const [isPaymentHided, setIsPaymentHided] = useState(true); + const alipayBlock = () => { + if (base?.b_mid === 161) { + createOrder("alipay_h5"); + return; + } + Toast.show({ + content: "支付渠道维护升级中,请24小时后再试", + }); + }; //检查用户是否是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 }; } @@ -137,7 +139,7 @@ export default function Vip() { break; case "wxpay_h5": router.push( - `https://app.tiefen.fun/wxpay_h5/${encodeURIComponent( + `https://shop.tiefen.fun/pay/wxpay_h5/${encodeURIComponent( data.data.wxpay_h5_param_str )}` ); @@ -302,7 +304,7 @@ export default function Vip() {
-
+
createOrder("alipay_h5")} className="flex flex-row cursor-pointer gap-1.5 h-11 items-center justify-center bg-primary rounded-full" @@ -320,42 +322,6 @@ export default function Vip() {

- {isInApp && - (isPaymentHided ? ( -
-
setIsPaymentHided(false)} - className="flex flex-row cursor-pointer gap-1.5 h-11 items-center justify-center bg-[#2E2E2E] rounded-full" - > - - - -

- 其他支付 -

-
-
- ) : ( -
-
createOrder("wxpay_h5")} - className="flex flex-row cursor-pointer gap-1.5 h-11 items-center justify-center bg-primary rounded-full" - > - - - -

- 微信支付 -

-
-
- ))}

确认购买即视为同意 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 1a2ac31..a9bb355 100644 --- a/app/zone/pay/[zid]/[product_id]/[moment_id]/page.jsx +++ b/app/zone/pay/[zid]/[product_id]/[moment_id]/page.jsx @@ -16,19 +16,11 @@ 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 }; } @@ -166,7 +158,7 @@ export default function Pay({ params }) { break; case "wxpay_h5": router.push( - `https://app.tiefen.fun/wxpay_h5/${encodeURIComponent( + `https://shop.tiefen.fun/pay/wxpay_h5/${encodeURIComponent( data.data.wxpay_h5_param_str )}` ); @@ -335,7 +327,7 @@ export default function Pay({ params }) {

-
+
createOrder("alipay_h5")} className="flex flex-row cursor-pointer gap-1.5 h-11 items-center justify-center bg-primary rounded-full" @@ -353,42 +345,6 @@ export default function Pay({ params }) {

- {isInApp && - (isPaymentHided ? ( -
-
setIsPaymentHided(false)} - className="flex flex-row cursor-pointer gap-1.5 h-11 items-center justify-center bg-[#2E2E2E] rounded-full" - > - - - -

- 其他支付 -

-
-
- ) : ( -
-
createOrder("wxpay_h5")} - className="flex flex-row cursor-pointer gap-1.5 h-11 items-center justify-center bg-primary rounded-full" - > - - - -

- 微信支付 -

-
-
- ))}

确认购买即视为同意