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} - - )} */}