diff --git a/src/components/ServerCard.tsx b/src/components/ServerCard.tsx index 2c3c46e..b0ad92b 100644 --- a/src/components/ServerCard.tsx +++ b/src/components/ServerCard.tsx @@ -66,16 +66,56 @@ export default function ServerCard({ now, serverInfo }: { now: number; serverInf > {name}
- {parsedData && + {parsedData?.billingDataMod && (daysLeft >= 0 ? ( -- 剩余时间: {isNeverExpire ? "永久" : daysLeft + "天"} -
+ <> ++ 剩余时间: {isNeverExpire ? "永久" : daysLeft + "天"} +
+ {parsedData.billingDataMod.amount !== "0" ? ( ++ 价格: {parsedData.billingDataMod.amount}/{parsedData.billingDataMod.cycle} +
+ ) : ( +免费
+ )} + > ) : ( -- 已过期: {daysLeft * -1} 天 -
+ <> ++ 已过期: {daysLeft * -1} 天 +
+ {parsedData.billingDataMod.amount !== "0" ? ( ++ 价格: {parsedData.billingDataMod.amount}/{parsedData.billingDataMod.cycle} +
+ ) : ( +免费
+ )} + > ))} + {parsedData?.planDataMod && ( ++ {parsedData.planDataMod.bandwidth} +
+ )} + {parsedData.planDataMod.trafficVol !== "" && ( ++ {parsedData.planDataMod.trafficVol} +
+ )} +{name}
+ {parsedData?.billingDataMod && + (daysLeft >= 0 ? ( + <> ++ 剩余时间: {isNeverExpire ? "永久" : daysLeft + "天"} +
+ {parsedData.billingDataMod.amount !== "0" ? ( ++ 价格: {parsedData.billingDataMod.amount}/{parsedData.billingDataMod.cycle} +
+ ) : ( +免费
+ )} + > + ) : ( + <> ++ 已过期: {daysLeft * -1} 天 +
+ {parsedData.billingDataMod.amount !== "0" ? ( ++ 价格: {parsedData.billingDataMod.amount}/{parsedData.billingDataMod.cycle} +
+ ) : ( +免费
+ )} + > + ))} + {parsedData?.planDataMod && ( ++ {parsedData.planDataMod.bandwidth} +
+ )} + {parsedData.planDataMod.trafficVol !== "" && ( ++ {parsedData.planDataMod.trafficVol} +
+ )} +- 剩余时间: {isNeverExpire ? "永久" : daysLeft + "天"} -
+ <> ++ 剩余时间: {isNeverExpire ? "永久" : daysLeft + "天"} +
+ {parsedData.billingDataMod.amount !== "0" ? ( ++ 价格: {parsedData.billingDataMod.amount}/{parsedData.billingDataMod.cycle} +
+ ) : ( +免费
+ )} + > ) : ( -- 已过期: {daysLeft * -1} 天 -
+ <> ++ 已过期: {daysLeft * -1} 天 +
+ {parsedData.billingDataMod.amount !== "0" ? ( ++ 价格: {parsedData.billingDataMod.amount}/{parsedData.billingDataMod.cycle} +
+ ) : ( +免费
+ )} + > ))} + {parsedData?.planDataMod && ( ++ {parsedData.planDataMod.bandwidth} +
+ )} + {parsedData.planDataMod.trafficVol !== "" && ( ++ {parsedData.planDataMod.trafficVol} +
+ )} +{name}
+ {parsedData?.billingDataMod && + (daysLeft >= 0 ? ( + <> ++ 剩余时间: {isNeverExpire ? "永久" : daysLeft + "天"} +
+ {parsedData.billingDataMod.amount !== "0" ? ( ++ 价格: {parsedData.billingDataMod.amount}/{parsedData.billingDataMod.cycle} +
+ ) : ( +免费
+ )} + > + ) : ( + <> ++ 已过期: {daysLeft * -1} 天 +
+ {parsedData.billingDataMod.amount !== "0" ? ( ++ 价格: {parsedData.billingDataMod.amount}/{parsedData.billingDataMod.cycle} +
+ ) : ( +免费
+ )} + > + ))} + {parsedData?.planDataMod && ( ++ {parsedData.planDataMod.bandwidth} +
+ )} + {parsedData.planDataMod.trafficVol !== "" && ( ++ {parsedData.planDataMod.trafficVol} +
+ )} +