提高付款上限

This commit is contained in:
lyp 2025-03-02 20:00:05 +08:00
parent f3e5c8e978
commit d64cb9f1f2

View File

@ -286,7 +286,7 @@ export default function Payment(props: IPaymentProps) {
});
const [countdownTime, setCountdownTime] = useState('');
// const [isCountdownTimeout, setIsCountdownTimeout] = useState(false);
const moneyRange: number[] = [0.01, 20000];
const moneyRange: number[] = [0.01, 100000];
const countdownIntervalRef = useRef<any>();
const [refreshQrCodeCount, setRefreshQrCodeCount] = useState(0);
@ -383,7 +383,7 @@ export default function Payment(props: IPaymentProps) {
return (
<div>
<div>
<InputNumber min={0.01} max={2000} defaultValue={form.getFieldValue('rechargeMoney')} />
<InputNumber min={0.01} max={100000} defaultValue={form.getFieldValue('rechargeMoney')} />
<Button type="link" onClick={() => {
const money = form.getFieldValue('rechargeMoney');
if (money < moneyRange[0]) {
@ -885,9 +885,20 @@ export default function Payment(props: IPaymentProps) {
form={form}
onFinish={() => {
setPaymentModal(true)
// if (!isRechargeMoneyEdit) {
// setPaymentModal(true);
// } else {
// messageApi.error('请先完成充值金额的修改');
// }
}}
autoComplete="off"
onKeyDown={(e) => {
if (e.key === 'Enter') {
e.preventDefault();
}
}}
>
<div style={{
display: 'flex',