首页导航配置链接&更新支付余额计算
This commit is contained in:
@@ -35,9 +35,9 @@ export default function Footer(props: FooterProps) {
|
||||
<SiteNavList
|
||||
title="国内代理"
|
||||
items={[
|
||||
{name: `短效代理`, href: `#`},
|
||||
{name: `长效代理`, href: `#`},
|
||||
{name: `固定IP代理`, href: `#`},
|
||||
{name: `短效代理`, href: `/product?type=short`},
|
||||
{name: `长效代理`, href: `/product?type=long`},
|
||||
{name: `固定IP代理`, href: `/product?type=fixed`},
|
||||
]}
|
||||
/>
|
||||
<SiteNavList
|
||||
|
||||
@@ -14,7 +14,7 @@ export default function HelpMenu() {
|
||||
icon={h01}
|
||||
title="提取 IP"
|
||||
items={[
|
||||
{lead: '短效 IP 提取', href: '#'},
|
||||
{lead: '短效 IP 提取', href: '/collect'},
|
||||
{lead: '长效 IP 提取', href: '#'},
|
||||
]}
|
||||
/>
|
||||
|
||||
@@ -45,14 +45,6 @@ export default function Charts({initialData}: ChartsProps) {
|
||||
resource_no: zod.string().min(11, '请输入正确的套餐编号').max(11, '请输入正确的套餐编号').optional(),
|
||||
create_after: zod.date().optional(),
|
||||
create_before: zod.date().optional(),
|
||||
}).refine((data) => {
|
||||
if (data.create_after && data.create_before) {
|
||||
return data.create_before >= data.create_after
|
||||
}
|
||||
return true
|
||||
}, {
|
||||
message: '结束时间不得早于开始时间',
|
||||
path: ['create_before'],
|
||||
})
|
||||
type FormValues = zod.infer<typeof formSchema>
|
||||
|
||||
|
||||
@@ -30,24 +30,7 @@ export default function Right() {
|
||||
const quota = form.watch('quota')
|
||||
|
||||
const price = useMemo(() => {
|
||||
// var factor int32
|
||||
// switch data.Mode {
|
||||
// case 1:
|
||||
// factor = data.DailyLimit * data.Expire
|
||||
// case 2:
|
||||
// factor = data.Quota
|
||||
// }
|
||||
//
|
||||
// var base = data.Live
|
||||
// if base == 180 {
|
||||
// base = 150
|
||||
// }
|
||||
//
|
||||
// var dec = decimal.Decimal{}.
|
||||
// Add(decimal.NewFromInt32(base * factor)).
|
||||
// Div(decimal.NewFromInt(30000))
|
||||
// data.price = &dec
|
||||
const base = live === '180' ? 150 : Number(live) * 60
|
||||
const base = live === '180' ? 150 : Number(live)
|
||||
const factor = {
|
||||
1: Number(expire) * dailyLimit,
|
||||
2: quota,
|
||||
|
||||
Reference in New Issue
Block a user