修复购买套餐Input框和计算数量传参的问题 &

This commit is contained in:
Eamon-meng
2025-12-18 12:28:29 +08:00
parent 4288b0de10
commit 375a6f30c0
6 changed files with 41 additions and 15 deletions

View File

@@ -100,7 +100,14 @@ export default function Center() {
type="number"
className="w-40 h-10 border border-gray-200 rounded-sm text-center"
min={10000}
step={5000}/>
step={5000}
onBlur={(e) => {
const value = Number(e.target.value)
if (value < 10000) {
form.setValue('quota', 10000)
}
}}
/>
<Button
theme="outline"
type="button"
@@ -157,6 +164,12 @@ export default function Center() {
className="w-40 h-10 border border-gray-200 rounded-sm text-center"
min={2_000}
step={1_000}
onBlur={(e) => {
const value = Number(e.target.value)
if (value < 2_000) {
form.setValue('daily_limit', 2_000)
}
}}
/>
<Button
theme="outline"