From 3bdc39b8fb4f96967470a9ada7338a69fe63c516 Mon Sep 17 00:00:00 2001 From: lyp Date: Thu, 8 May 2025 17:33:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=90=88=E5=90=8C=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E8=8E=B7=E5=8F=96=E6=94=AF=E4=BB=98=E6=96=B9=E5=BC=8F?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/payment/Payment.tsx | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/components/payment/Payment.tsx b/src/components/payment/Payment.tsx index aef9813..ce0a190 100644 --- a/src/components/payment/Payment.tsx +++ b/src/components/payment/Payment.tsx @@ -142,16 +142,18 @@ export default function Payment(props: IPaymentProps) { url: '/api/user-info/get-user-self', onSuccess({ data }) { // console.log('信息',data); - if(data.isWxPay){ - setShowWX(true) - }else{ - setShowWX(false) - } - if(data.isZfbPay){ - setShowZFB(true) - }else{ - setShowZFB(false) - } + // if(data.isWxPay){ + // setShowWX(true) + // }else{ + // setShowWX(false) + // } + // if(data.isZfbPay){ + // setShowZFB(true) + // }else{ + // setShowZFB(false) + // } + setShowWX(data.isWxPay == 1 ? true : false); + setShowZFB(data.isZfbPay == 1 ? true : false); }