解决我的账单页面报错 & 提交记录添加套餐号筛选
This commit is contained in:
@@ -73,20 +73,6 @@ export default function Extract(props: ExtractProps) {
|
||||
)}
|
||||
>
|
||||
<CardSection>
|
||||
{/* <Alert variant="warn" className="flex items-center justify-between">
|
||||
<span className="flex items-center gap-2">
|
||||
<CircleAlert/>
|
||||
<AlertTitle className="flex text-gray-900">提取IP前需要将本机IP添加到白名单后才可使用</AlertTitle>
|
||||
</span>
|
||||
<Link
|
||||
href="/admin/whitelist"
|
||||
className="flex-none text-orange-600 font-medium ml-2 flex gap-0.5 items-center"
|
||||
>
|
||||
<span>添加白名单</span>
|
||||
<ArrowRight className="size-4"/>
|
||||
</Link>
|
||||
</Alert> */}
|
||||
|
||||
<FormFields/>
|
||||
</CardSection>
|
||||
|
||||
@@ -516,8 +502,6 @@ function SelectRegion() {
|
||||
const regionType = useWatch({control, name: 'regionType'})
|
||||
const prov = useWatch({control, name: 'prov'})
|
||||
const city = useWatch({control, name: 'city'})
|
||||
console.log(regionType, 'regionType')
|
||||
console.log(prov, 'prov', city, 'city')
|
||||
|
||||
return (
|
||||
<div className="flex flex-col gap-4 md:max-w-[calc(160px*2+1rem)]">
|
||||
@@ -696,9 +680,9 @@ function name(resource: Resource) {
|
||||
// 短效套餐
|
||||
switch (resource.short.type) {
|
||||
case 1:
|
||||
return `短效包时 ${resource.short.live} 分钟`
|
||||
return `${resource.short?.sku?.name}`
|
||||
case 2:
|
||||
return `短效包量 ${resource.short.live} 分钟`
|
||||
return `${resource.short?.sku?.name}`
|
||||
}
|
||||
break
|
||||
|
||||
@@ -706,9 +690,9 @@ function name(resource: Resource) {
|
||||
// 长效套餐
|
||||
switch (resource.long.type) {
|
||||
case 1:
|
||||
return `长效包时 ${resource.long.live} 小时`
|
||||
return `${resource.long?.sku?.name}`
|
||||
case 2:
|
||||
return `长效包量 ${resource.long.live} 小时`
|
||||
return `${resource.long?.sku?.name}`
|
||||
}
|
||||
break
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user