修改金额不确定不显示完成付款按钮
This commit is contained in:
parent
8fc732469e
commit
e086624dfa
@ -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={() => {
|
||||
|
Loading…
Reference in New Issue
Block a user