From 1bfd80e57d291eaf9a466c7d9c021002ac72b096 Mon Sep 17 00:00:00 2001 From: lyp Date: Wed, 5 Mar 2025 04:02:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/payment/Payment.tsx | 48 ++++++++++++++++-------------- 1 file changed, 25 insertions(+), 23 deletions(-) diff --git a/src/components/payment/Payment.tsx b/src/components/payment/Payment.tsx index 53a6aa9..6167e6a 100644 --- a/src/components/payment/Payment.tsx +++ b/src/components/payment/Payment.tsx @@ -604,27 +604,28 @@ export default function Payment(props: IPaymentProps) { 打款凭证* - { - if (e.file.status === 'done') { - rechargeVoucherArray.push(e.file.response.data.fileId); - setRechargeVoucherArray(rechargeVoucherArray); - } - if (e.file.status === 'removed') { - const idArray = rechargeVoucherArray.filter(item => item != e.file.response.data.fileId); - setRechargeVoucherArray(idArray); - } - return e.fileList; - }} - rules={[{ required: true, message: '请上传打款凭证' }]} - > - {/*
*/} +
+ { + if (e.file.status === 'done') { + rechargeVoucherArray.push(e.file.response.data.fileId); + setRechargeVoucherArray(rechargeVoucherArray); + } + if (e.file.status === 'removed') { + const idArray = rechargeVoucherArray.filter(item => item != e.file.response.data.fileId); + setRechargeVoucherArray(idArray); + } + return e.fileList; + }} + rules={[{ required: true, message: '请上传打款凭证' }]} + > + - {/*
*/} - + + +