diff --git a/src/components/ServerCard.tsx b/src/components/ServerCard.tsx index b0ad92b..fa73c41 100644 --- a/src/components/ServerCard.tsx +++ b/src/components/ServerCard.tsx @@ -72,12 +72,15 @@ export default function ServerCard({ now, serverInfo }: { now: number; serverInf
剩余时间: {isNeverExpire ? "永久" : daysLeft + "天"}
- {parsedData.billingDataMod.amount !== "0" ? ( -+ {parsedData.billingDataMod.amount !== "0" && + parsedData.billingDataMod.amount !== "-1" ? ( +
价格: {parsedData.billingDataMod.amount}/{parsedData.billingDataMod.cycle}
+ ) : parsedData.billingDataMod.amount === "0" ? ( +免费
) : ( -免费
+按量收费
)} > ) : ( @@ -85,12 +88,15 @@ export default function ServerCard({ now, serverInfo }: { now: number; serverInf已过期: {daysLeft * -1} 天
- {parsedData.billingDataMod.amount !== "0" ? ( + {parsedData.billingDataMod.amount !== "0" && + parsedData.billingDataMod.amount !== "-1" ? (价格: {parsedData.billingDataMod.amount}/{parsedData.billingDataMod.cycle}
- ) : ( + ) : parsedData.billingDataMod.amount === "0" ? (免费
+ ) : ( +按量收费
)} > ))} @@ -202,12 +208,15 @@ export default function ServerCard({ now, serverInfo }: { now: number; serverInf剩余时间: {isNeverExpire ? "永久" : daysLeft + "天"}
- {parsedData.billingDataMod.amount !== "0" ? ( -+ {parsedData.billingDataMod.amount !== "0" && + parsedData.billingDataMod.amount !== "-1" ? ( +
价格: {parsedData.billingDataMod.amount}/{parsedData.billingDataMod.cycle}
+ ) : parsedData.billingDataMod.amount === "0" ? ( +免费
) : ( -免费
+按量收费
)} > ) : ( @@ -215,12 +224,15 @@ export default function ServerCard({ now, serverInfo }: { now: number; serverInf已过期: {daysLeft * -1} 天
- {parsedData.billingDataMod.amount !== "0" ? ( + {parsedData.billingDataMod.amount !== "0" && + parsedData.billingDataMod.amount !== "-1" ? (价格: {parsedData.billingDataMod.amount}/{parsedData.billingDataMod.cycle}
- ) : ( + ) : parsedData.billingDataMod.amount === "0" ? (免费
+ ) : ( +按量收费
)} > ))} diff --git a/src/components/ServerCardInline.tsx b/src/components/ServerCardInline.tsx index 624cc35..ddaccc8 100644 --- a/src/components/ServerCardInline.tsx +++ b/src/components/ServerCardInline.tsx @@ -86,12 +86,15 @@ export default function ServerCardInline({剩余时间: {isNeverExpire ? "永久" : daysLeft + "天"}
- {parsedData.billingDataMod.amount !== "0" ? ( -+ {parsedData.billingDataMod.amount !== "0" && + parsedData.billingDataMod.amount !== "-1" ? ( +
价格: {parsedData.billingDataMod.amount}/{parsedData.billingDataMod.cycle}
+ ) : parsedData.billingDataMod.amount === "0" ? ( +免费
) : ( -免费
+按量收费
)} > ) : ( @@ -99,12 +102,15 @@ export default function ServerCardInline({已过期: {daysLeft * -1} 天
- {parsedData.billingDataMod.amount !== "0" ? ( + {parsedData.billingDataMod.amount !== "0" && + parsedData.billingDataMod.amount !== "-1" ? (价格: {parsedData.billingDataMod.amount}/{parsedData.billingDataMod.cycle}
- ) : ( + ) : parsedData.billingDataMod.amount === "0" ? (免费
+ ) : ( +按量收费
)} > ))} @@ -241,12 +247,15 @@ export default function ServerCardInline({剩余时间: {isNeverExpire ? "永久" : daysLeft + "天"}
- {parsedData.billingDataMod.amount !== "0" ? ( -+ {parsedData.billingDataMod.amount !== "0" && + parsedData.billingDataMod.amount !== "-1" ? ( +
价格: {parsedData.billingDataMod.amount}/{parsedData.billingDataMod.cycle}
+ ) : parsedData.billingDataMod.amount === "0" ? ( +免费
) : ( -免费
+按量收费
)} > ) : ( @@ -254,12 +263,15 @@ export default function ServerCardInline({已过期: {daysLeft * -1} 天
- {parsedData.billingDataMod.amount !== "0" ? ( + {parsedData.billingDataMod.amount !== "0" && + parsedData.billingDataMod.amount !== "-1" ? (价格: {parsedData.billingDataMod.amount}/{parsedData.billingDataMod.cycle}
- ) : ( + ) : parsedData.billingDataMod.amount === "0" ? (免费
+ ) : ( +按量收费
)} > ))}