修复购买套餐每日限购字段参数 & 底部服务保障链接

This commit is contained in:
Eamon-meng
2025-12-17 18:46:45 +08:00
parent 03d00af418
commit 4288b0de10
5 changed files with 38 additions and 24 deletions

View File

@@ -17,7 +17,7 @@ export default function Center() {
const type = useWatch({name: 'type'})
useEffect(() => {
if (type === '1') {
form.setValue('quota', 100)
form.setValue('daily_limit', 100)
}
else {
form.setValue('quota', 500)
@@ -144,7 +144,7 @@ export default function Center() {
{/* 包时:每日提取上限 */}
<FormField
className="space-y-4"
name="quota"
name="daily_limit"
label="每日提取上限">
{({id, field}) => {
const value = Number(field.value) || 100
@@ -159,7 +159,7 @@ export default function Center() {
className={`h-10 w-10 border border-gray-200 rounded-sm flex items-center justify-center text-lg ${
value === minValue ? 'opacity-50 cursor-not-allowed' : ''
}`}
onClick={() => form.setValue('quota', Math.max(minValue, value - step))}
onClick={() => form.setValue('daily_limit', Math.max(minValue, value - step))}
disabled={value === minValue}>
<Minus/>
</Button>
@@ -172,7 +172,7 @@ export default function Center() {
theme="outline"
type="button"
className="h-10 w-10 border border-gray-200 rounded-sm flex items-center justify-center text-lg"
onClick={() => form.setValue('quota', value + step)}>
onClick={() => form.setValue('daily_limit', value + step)}>
<Plus/>
</Button>
</div>