mirror of
https://github.com/woodchen-ink/nezha-dash-v1.git
synced 2025-07-18 09:31:55 +08:00
fix: amount type
This commit is contained in:
parent
9d0cbfd7d8
commit
84974f0e78
@ -72,12 +72,15 @@ export default function ServerCard({ now, serverInfo }: { now: number; serverInf
|
||||
<p className={cn("text-[10px] text-muted-foreground")}>
|
||||
剩余时间: {isNeverExpire ? "永久" : daysLeft + "天"}
|
||||
</p>
|
||||
{parsedData.billingDataMod.amount !== "0" ? (
|
||||
<p className={cn("text-[10px] text-muted-foreground")}>
|
||||
{parsedData.billingDataMod.amount !== "0" &&
|
||||
parsedData.billingDataMod.amount !== "-1" ? (
|
||||
<p className={cn("text-[10px] text-muted-foreground ")}>
|
||||
价格: {parsedData.billingDataMod.amount}/{parsedData.billingDataMod.cycle}
|
||||
</p>
|
||||
) : parsedData.billingDataMod.amount === "0" ? (
|
||||
<p className={cn("text-[10px] text-green-600 ")}>免费</p>
|
||||
) : (
|
||||
<p className={cn("text-[10px] text-green-600")}>免费</p>
|
||||
<p className={cn("text-[10px] text-pink-600 ")}>按量收费</p>
|
||||
)}
|
||||
</>
|
||||
) : (
|
||||
@ -85,12 +88,15 @@ export default function ServerCard({ now, serverInfo }: { now: number; serverInf
|
||||
<p className={cn("text-[10px] text-muted-foreground text-red-600")}>
|
||||
已过期: {daysLeft * -1} 天
|
||||
</p>
|
||||
{parsedData.billingDataMod.amount !== "0" ? (
|
||||
{parsedData.billingDataMod.amount !== "0" &&
|
||||
parsedData.billingDataMod.amount !== "-1" ? (
|
||||
<p className={cn("text-[10px] text-muted-foreground ")}>
|
||||
价格: {parsedData.billingDataMod.amount}/{parsedData.billingDataMod.cycle}
|
||||
</p>
|
||||
) : (
|
||||
) : parsedData.billingDataMod.amount === "0" ? (
|
||||
<p className={cn("text-[10px] text-green-600 ")}>免费</p>
|
||||
) : (
|
||||
<p className={cn("text-[10px] text-pink-600 ")}>按量收费</p>
|
||||
)}
|
||||
</>
|
||||
))}
|
||||
@ -202,12 +208,15 @@ export default function ServerCard({ now, serverInfo }: { now: number; serverInf
|
||||
<p className={cn("text-[10px] text-muted-foreground")}>
|
||||
剩余时间: {isNeverExpire ? "永久" : daysLeft + "天"}
|
||||
</p>
|
||||
{parsedData.billingDataMod.amount !== "0" ? (
|
||||
<p className={cn("text-[10px] text-muted-foreground")}>
|
||||
{parsedData.billingDataMod.amount !== "0" &&
|
||||
parsedData.billingDataMod.amount !== "-1" ? (
|
||||
<p className={cn("text-[10px] text-muted-foreground ")}>
|
||||
价格: {parsedData.billingDataMod.amount}/{parsedData.billingDataMod.cycle}
|
||||
</p>
|
||||
) : parsedData.billingDataMod.amount === "0" ? (
|
||||
<p className={cn("text-[10px] text-green-600 ")}>免费</p>
|
||||
) : (
|
||||
<p className={cn("text-[10px] text-green-600")}>免费</p>
|
||||
<p className={cn("text-[10px] text-pink-600 ")}>按量收费</p>
|
||||
)}
|
||||
</>
|
||||
) : (
|
||||
@ -215,12 +224,15 @@ export default function ServerCard({ now, serverInfo }: { now: number; serverInf
|
||||
<p className={cn("text-[10px] text-muted-foreground text-red-600")}>
|
||||
已过期: {daysLeft * -1} 天
|
||||
</p>
|
||||
{parsedData.billingDataMod.amount !== "0" ? (
|
||||
{parsedData.billingDataMod.amount !== "0" &&
|
||||
parsedData.billingDataMod.amount !== "-1" ? (
|
||||
<p className={cn("text-[10px] text-muted-foreground ")}>
|
||||
价格: {parsedData.billingDataMod.amount}/{parsedData.billingDataMod.cycle}
|
||||
</p>
|
||||
) : (
|
||||
) : parsedData.billingDataMod.amount === "0" ? (
|
||||
<p className={cn("text-[10px] text-green-600 ")}>免费</p>
|
||||
) : (
|
||||
<p className={cn("text-[10px] text-pink-600 ")}>按量收费</p>
|
||||
)}
|
||||
</>
|
||||
))}
|
||||
|
@ -86,12 +86,15 @@ export default function ServerCardInline({
|
||||
<p className={cn("text-[10px] text-muted-foreground")}>
|
||||
剩余时间: {isNeverExpire ? "永久" : daysLeft + "天"}
|
||||
</p>
|
||||
{parsedData.billingDataMod.amount !== "0" ? (
|
||||
<p className={cn("text-[10px] text-muted-foreground")}>
|
||||
{parsedData.billingDataMod.amount !== "0" &&
|
||||
parsedData.billingDataMod.amount !== "-1" ? (
|
||||
<p className={cn("text-[10px] text-muted-foreground ")}>
|
||||
价格: {parsedData.billingDataMod.amount}/{parsedData.billingDataMod.cycle}
|
||||
</p>
|
||||
) : parsedData.billingDataMod.amount === "0" ? (
|
||||
<p className={cn("text-[10px] text-green-600 ")}>免费</p>
|
||||
) : (
|
||||
<p className={cn("text-[10px] text-green-600")}>免费</p>
|
||||
<p className={cn("text-[10px] text-pink-600 ")}>按量收费</p>
|
||||
)}
|
||||
</>
|
||||
) : (
|
||||
@ -99,12 +102,15 @@ export default function ServerCardInline({
|
||||
<p className={cn("text-[10px] text-muted-foreground text-red-600")}>
|
||||
已过期: {daysLeft * -1} 天
|
||||
</p>
|
||||
{parsedData.billingDataMod.amount !== "0" ? (
|
||||
{parsedData.billingDataMod.amount !== "0" &&
|
||||
parsedData.billingDataMod.amount !== "-1" ? (
|
||||
<p className={cn("text-[10px] text-muted-foreground ")}>
|
||||
价格: {parsedData.billingDataMod.amount}/{parsedData.billingDataMod.cycle}
|
||||
</p>
|
||||
) : (
|
||||
) : parsedData.billingDataMod.amount === "0" ? (
|
||||
<p className={cn("text-[10px] text-green-600 ")}>免费</p>
|
||||
) : (
|
||||
<p className={cn("text-[10px] text-pink-600 ")}>按量收费</p>
|
||||
)}
|
||||
</>
|
||||
))}
|
||||
@ -241,12 +247,15 @@ export default function ServerCardInline({
|
||||
<p className={cn("text-[10px] text-muted-foreground")}>
|
||||
剩余时间: {isNeverExpire ? "永久" : daysLeft + "天"}
|
||||
</p>
|
||||
{parsedData.billingDataMod.amount !== "0" ? (
|
||||
<p className={cn("text-[10px] text-muted-foreground")}>
|
||||
{parsedData.billingDataMod.amount !== "0" &&
|
||||
parsedData.billingDataMod.amount !== "-1" ? (
|
||||
<p className={cn("text-[10px] text-muted-foreground ")}>
|
||||
价格: {parsedData.billingDataMod.amount}/{parsedData.billingDataMod.cycle}
|
||||
</p>
|
||||
) : parsedData.billingDataMod.amount === "0" ? (
|
||||
<p className={cn("text-[10px] text-green-600 ")}>免费</p>
|
||||
) : (
|
||||
<p className={cn("text-[10px] text-green-600")}>免费</p>
|
||||
<p className={cn("text-[10px] text-pink-600 ")}>按量收费</p>
|
||||
)}
|
||||
</>
|
||||
) : (
|
||||
@ -254,12 +263,15 @@ export default function ServerCardInline({
|
||||
<p className={cn("text-[10px] text-muted-foreground text-red-600")}>
|
||||
已过期: {daysLeft * -1} 天
|
||||
</p>
|
||||
{parsedData.billingDataMod.amount !== "0" ? (
|
||||
{parsedData.billingDataMod.amount !== "0" &&
|
||||
parsedData.billingDataMod.amount !== "-1" ? (
|
||||
<p className={cn("text-[10px] text-muted-foreground ")}>
|
||||
价格: {parsedData.billingDataMod.amount}/{parsedData.billingDataMod.cycle}
|
||||
</p>
|
||||
) : (
|
||||
) : parsedData.billingDataMod.amount === "0" ? (
|
||||
<p className={cn("text-[10px] text-green-600 ")}>免费</p>
|
||||
) : (
|
||||
<p className={cn("text-[10px] text-pink-600 ")}>按量收费</p>
|
||||
)}
|
||||
</>
|
||||
))}
|
||||
|
Loading…
x
Reference in New Issue
Block a user