修改金额不确定不显示完成付款按钮

This commit is contained in:
xixi 2024-10-30 17:10:27 +08:00
parent 8fc732469e
commit e086624dfa

View File

@ -66,6 +66,8 @@ interface IPaymentProps {
}
export default function Payment(props: IPaymentProps) {
// 是否显示完成付款按钮
const [showPay ,setshowPay] = useState('unset')
// 支付完成弹窗
const [paymentModal, setPaymentModal] = useState(false)
const [mask, setMask] = useState(false)
@ -192,10 +194,12 @@ export default function Payment(props: IPaymentProps) {
}
setIsRechargeMoneyEdit(false);
getPay()
setshowPay('unset')
}}></Button>
<span style={{ color: '#1677ff', cursor: 'pointer' }}
onClick={() => {
setIsRechargeMoneyEdit(false)
setshowPay('unset')
}}
></span>
</div>
@ -210,6 +214,7 @@ export default function Payment(props: IPaymentProps) {
<span style={{ fontWeight: 'bold', fontSize: '16px' }}>{form.getFieldValue('rechargeMoney')}</span>
<Button type="link" onClick={() => {
setIsRechargeMoneyEdit(true);
setshowPay('none')
}}></Button>
</div>
<div className='moneyBox' >
@ -494,7 +499,7 @@ export default function Payment(props: IPaymentProps) {
</Form.Item>
{renderPayBody()}
<div style={{ marginTop: '15px', textAlign: 'center' }}>
<Button type="primary" htmlType="submit" style={{ backgroundColor: 'var(--color-primary)' }}>
<Button type="primary" htmlType="submit" style={{ backgroundColor: 'var(--color-primary)' ,display:showPay}}>
</Button>
<Button type="default" style={{ marginLeft: '15px' }} onClick={() => {