修改金额不确定不显示完成付款按钮
This commit is contained in:
parent
8fc732469e
commit
e086624dfa
@ -66,6 +66,8 @@ interface IPaymentProps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export default function Payment(props: IPaymentProps) {
|
export default function Payment(props: IPaymentProps) {
|
||||||
|
// 是否显示完成付款按钮
|
||||||
|
const [showPay ,setshowPay] = useState('unset')
|
||||||
// 支付完成弹窗
|
// 支付完成弹窗
|
||||||
const [paymentModal, setPaymentModal] = useState(false)
|
const [paymentModal, setPaymentModal] = useState(false)
|
||||||
const [mask, setMask] = useState(false)
|
const [mask, setMask] = useState(false)
|
||||||
@ -192,10 +194,12 @@ export default function Payment(props: IPaymentProps) {
|
|||||||
}
|
}
|
||||||
setIsRechargeMoneyEdit(false);
|
setIsRechargeMoneyEdit(false);
|
||||||
getPay()
|
getPay()
|
||||||
|
setshowPay('unset')
|
||||||
}}>确定</Button>
|
}}>确定</Button>
|
||||||
<span style={{ color: '#1677ff', cursor: 'pointer' }}
|
<span style={{ color: '#1677ff', cursor: 'pointer' }}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setIsRechargeMoneyEdit(false)
|
setIsRechargeMoneyEdit(false)
|
||||||
|
setshowPay('unset')
|
||||||
}}
|
}}
|
||||||
>取消</span>
|
>取消</span>
|
||||||
</div>
|
</div>
|
||||||
@ -210,6 +214,7 @@ export default function Payment(props: IPaymentProps) {
|
|||||||
<span style={{ fontWeight: 'bold', fontSize: '16px' }}>{form.getFieldValue('rechargeMoney')}</span>
|
<span style={{ fontWeight: 'bold', fontSize: '16px' }}>{form.getFieldValue('rechargeMoney')}</span>
|
||||||
<Button type="link" onClick={() => {
|
<Button type="link" onClick={() => {
|
||||||
setIsRechargeMoneyEdit(true);
|
setIsRechargeMoneyEdit(true);
|
||||||
|
setshowPay('none')
|
||||||
}}>修改</Button>
|
}}>修改</Button>
|
||||||
</div>
|
</div>
|
||||||
<div className='moneyBox' >
|
<div className='moneyBox' >
|
||||||
@ -493,8 +498,8 @@ export default function Payment(props: IPaymentProps) {
|
|||||||
{renderMoney()}
|
{renderMoney()}
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
{renderPayBody()}
|
{renderPayBody()}
|
||||||
<div style={{ marginTop: '15px', textAlign: 'center' }}>
|
<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>
|
||||||
<Button type="default" style={{ marginLeft: '15px' }} onClick={() => {
|
<Button type="default" style={{ marginLeft: '15px' }} onClick={() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user