From cd8690f355b86354ed68044f9c22a8e6a93e1b84 Mon Sep 17 00:00:00 2001 From: xixi <123@qq.com> Date: Thu, 25 Jul 2024 18:33:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E7=89=87=E7=BC=96=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ai/AiHelper.tsx | 11 ++-- src/components/payment/Payment.tsx | 87 ++++++++++++++++++++---------- src/components/payment/payment.css | 10 +++- 3 files changed, 76 insertions(+), 32 deletions(-) diff --git a/src/components/ai/AiHelper.tsx b/src/components/ai/AiHelper.tsx index 4107d5b..833bf45 100644 --- a/src/components/ai/AiHelper.tsx +++ b/src/components/ai/AiHelper.tsx @@ -619,7 +619,7 @@ export default function AiHelper(props: PropsType) { const imgSrc = `${Axios.defaults?.baseURL}/route/file/v2/download/true/${item.previewImgs}`; return (
{ setloginpageId(item.loginpageId) put({ @@ -645,12 +645,15 @@ export default function AiHelper(props: PropsType) {
+ preview={false} width={265} height={150} + style={{borderRadius:15}} />
{/*
{props.title ? props.title : '标题'}
*/}
+ +
) }) @@ -676,7 +679,7 @@ export default function AiHelper(props: PropsType) { const imgSrc = `${Axios.defaults?.baseURL}/route/file/v2/download/true/${item.previewImgs}`; return (
{ // setSelectedId(item.codeTypePageId) // setSelectedImg(item.previewImgs) @@ -702,7 +705,7 @@ export default function AiHelper(props: PropsType) {
+ preview={false} width={265} height={135} style={{borderRadius:15}} />
diff --git a/src/components/payment/Payment.tsx b/src/components/payment/Payment.tsx index b5fa9b1..d1f8abb 100644 --- a/src/components/payment/Payment.tsx +++ b/src/components/payment/Payment.tsx @@ -10,7 +10,8 @@ import { message, Radio, Spin, - Upload, UploadProps + Upload, UploadProps, + Tag } from "antd"; import { ReloadOutlined @@ -159,7 +160,7 @@ export default function Payment(props: IPaymentProps) { getPaySystemBank(); form.setFieldsValue({ thirdParty: ThirdPartyEnum.DGZZ, - rechargeMoney: 300 + rechargeMoney: 280 }) setThirdParty(ThirdPartyEnum.DGZZ) return; @@ -174,34 +175,66 @@ export default function Payment(props: IPaymentProps) { if (isRechargeMoneyEdit) { return (
- - - { - setIsRechargeMoneyEdit(false) - }} - >取消 +
+ + + { + setIsRechargeMoneyEdit(false) + }} + >取消 +
+
) } return (
- - {form.getFieldValue('rechargeMoney')} - +
+ + {form.getFieldValue('rechargeMoney')} + +
+
+ { + form.setFieldValue('rechargeMoney', '100'); + setIsRechargeMoneyEdit(false) + getPay() + }} color="volcano">100 + { + form.setFieldValue('rechargeMoney', '200'); + setIsRechargeMoneyEdit(false) + getPay() + }} color="volcano">200 + { + form.setFieldValue('rechargeMoney', '300'); + setIsRechargeMoneyEdit(false) + getPay() + }} color="volcano">300 + { + form.setFieldValue('rechargeMoney', '400'); + setIsRechargeMoneyEdit(false) + getPay() + }} color="volcano">400 + { + form.setFieldValue('rechargeMoney', '500'); + setIsRechargeMoneyEdit(false) + getPay() + }} color="volcano">500 +
) } @@ -367,8 +400,8 @@ export default function Payment(props: IPaymentProps) { return <>
-
-
+
+
正在修改,请稍后...
diff --git a/src/components/payment/payment.css b/src/components/payment/payment.css index 3995650..25850e9 100644 --- a/src/components/payment/payment.css +++ b/src/components/payment/payment.css @@ -44,4 +44,12 @@ .qr-timeout .label { padding: 15px; -} \ No newline at end of file +} +.moneyBox{ + display: flex; + margin-top: 10px; +} +.moneyBox { + display: flex; + flex-wrap: ; +}