From 423527559bdd1350e27703a55a67f0d8deb05090 Mon Sep 17 00:00:00 2001 From: "DESKTOP-PJ5G56S\\Administrator" <13478707150@163.com> Date: Tue, 8 Jul 2025 22:07:26 +0800 Subject: [PATCH] [feature] form ;layout => vertical --- src/pages/feeconfirm/components/Alipay/index.jsx | 17 ---- src/pages/feeconfirm/components/FormBar/index.jsx | 95 +++------------------- src/pages/feeconfirm/components/Wxpay/index.jsx | 19 +---- src/pages/feedback/index.jsx | 2 +- .../paymentmethod/components/Alipay/index.jsx | 3 - .../paymentmethod/components/BankPay/index.jsx | 6 +- src/pages/paymentmethod/components/Wxpay/index.jsx | 6 +- src/pages/paymentmethod/index.jsx | 2 +- src/pages/shopinfo/components/FormBar/index.jsx | 36 +++----- .../shopinfo/components/FormBar/index.module.less | 1 - src/pages/viplevelup/components/Alipay/index.jsx | 4 +- src/pages/viplevelup/components/Wxpay/index.jsx | 1 - src/pages/viplevelup/index.jsx | 5 +- 13 files changed, 34 insertions(+), 163 deletions(-) diff --git a/src/pages/feeconfirm/components/Alipay/index.jsx b/src/pages/feeconfirm/components/Alipay/index.jsx index 1fc9aa1..73ccbf0 100644 --- a/src/pages/feeconfirm/components/Alipay/index.jsx +++ b/src/pages/feeconfirm/components/Alipay/index.jsx @@ -1,7 +1,6 @@ import { View } from '@tarojs/components'; import { Form } from 'antd-mobile'; import FormLabel from '/components/FormLabel'; -import FormImage from '/components/FormImage'; import styles from './index.module.less'; @@ -12,31 +11,15 @@ export default function Alipay({ namePrefix }) { - {/* - - */} - {/* - - */} ) } diff --git a/src/pages/feeconfirm/components/FormBar/index.jsx b/src/pages/feeconfirm/components/FormBar/index.jsx index d8a9251..abfcb52 100644 --- a/src/pages/feeconfirm/components/FormBar/index.jsx +++ b/src/pages/feeconfirm/components/FormBar/index.jsx @@ -1,34 +1,19 @@ import { View } from '@tarojs/components'; -import { Button, CapsuleTabs, Form, Modal, Toast } from 'antd-mobile'; +import { Button, Form, Modal, Toast } from 'antd-mobile'; import FormImage from '/components/FormImage'; import FormLabel from '/components/FormLabel'; -import React, { useEffect, useMemo, useState } from 'react'; +import React, { useEffect } from 'react'; import { getOrderInfoAction } from '/request/actions'; import { getUrlParam } from '/utils'; import Taro from '@tarojs/taro'; -// import Alipay from '../Alipay'; -// import Wxpay from '../Wxpay'; -// import BankPay from '../BankPay'; - -// import aliSrc from '/assets/icons/ali.svg'; -// import wxSrc from '/assets/icons/wx.svg'; -// import bankSrc from '/assets/icons/bank.svg'; import { orderConfirmAction } from '../../../../request/actions'; import styles from './index.module.less'; -// const TabItem = ({ src, text }) => ( -// -// -// {text} -// -// ); - export default function FormBar() { const [form] = Form.useForm(); - // const [showFee, updateShowFee] = useState(false); useEffect(() => { getOrderInfoAction({ @@ -80,96 +65,36 @@ export default function FormBar() { }) }; - // const way = Form.useWatch('way', form); - // const feeway = Form.useWatch('feeway', form); - - // const detailRenderer = useMemo(() => { - // return { - // alipay: , - // wx: , - // bank: - // }[way]; - // }, [way]); - - // const feeDetailRenderer = useMemo(() => { - // return { - // alipay: , - // wx: , - // bank: - // }[feeway]; - // }, [feeway]); - const payImage = Form.useWatch('payImage', form); const feeImage = Form.useWatch('feeImage', form); return ( -
+ 收款信息 - + - + - + `¥${val || 0}`} /> - + `¥${val || 0}`} /> - + - + - + - {/* - - } key='alipay' /> - } key='wx' /> - } key='bank' /> - - - {detailRenderer} - {showFee && ( - - - 服务费收款信息 - - - `¥${val || 0}`} /> - - - - - - - } key='alipay' /> - } key='wx' /> - } key='bank' /> - - - {feeDetailRenderer} - - )} */}