暂无可用套餐时取消加载中 & 登录页加返回首页 & 加联系专属客服 & 修改白名单上限10个
This commit is contained in:
@@ -167,14 +167,14 @@ export default function Center({skuData}: {
|
||||
<NumberStepperField
|
||||
name="daily_limit"
|
||||
label="每日提取上限"
|
||||
min={currentCountMin || 100}
|
||||
min={currentCountMin}
|
||||
step={100}
|
||||
/>
|
||||
) : (
|
||||
<NumberStepperField
|
||||
name="quota"
|
||||
label="IP 购买数量"
|
||||
min={currentCountMin || 500}
|
||||
min={currentCountMin}
|
||||
step={100}
|
||||
/>
|
||||
)}
|
||||
|
||||
@@ -11,9 +11,9 @@ import {PurchaseSidePanel} from '../shared/side-panel'
|
||||
const schema = z.object({
|
||||
type: z.enum(['1', '2']).default('2'),
|
||||
live: z.string(),
|
||||
quota: z.number().min(500, '购买数量不能少于 500 个'),
|
||||
quota: z.number().min(1, '购买数量不能少于 1 个'),
|
||||
expire: z.string(),
|
||||
daily_limit: z.number().min(100, '每日限额不能少于 100 个'),
|
||||
daily_limit: z.number().min(1, '每日限额不能少于 1 个'),
|
||||
pay_type: z.enum(['wechat', 'alipay', 'balance']),
|
||||
})
|
||||
export type Schema = z.infer<typeof schema>
|
||||
@@ -37,8 +37,8 @@ export default function LongForm({skuList}: {skuList: ProductItem['skus']}) {
|
||||
type: defaultMode,
|
||||
live: defaultLive,
|
||||
expire: defaultExpire,
|
||||
quota: defaultMode === '2' ? Math.max(defaultCountMin, 500) : 500,
|
||||
daily_limit: defaultMode === '1' ? Math.max(defaultCountMin, 100) : 100,
|
||||
quota: defaultCountMin,
|
||||
daily_limit: defaultCountMin,
|
||||
pay_type: 'balance', // 余额支付
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user