处理到期时间
All checks were successful
site-dist-deploy / build-and-deploy (push) Successful in 1m17s

This commit is contained in:
speakeloudest 2026-01-07 18:47:49 -08:00
parent 686be3a855
commit 833cd9e305
2 changed files with 4 additions and 7 deletions

View File

@ -18,11 +18,8 @@
<div :class="'text-sm'">约${{ plan.daily }}/</div>
<div
v-if="plan.discount"
:class="[
index > 1 ? 'font-semibold' : '',
currentPlanIndex === index ? 'bg-[#A8FF53]! text-black' : ' ',
]"
class="absolute top-[20px] -right-[40px] h-[16px] w-[126px] origin-center rotate-45 bg-black text-center text-[14px] leading-[16px] font-[200] text-[#ADFF5B]"
:class="[currentPlanIndex === index ? 'bg-[#A8FF53]! text-black' : ' ']"
class="absolute top-[20px] -right-[40px] h-[16px] w-[126px] origin-center rotate-45 bg-black text-center text-[14px] leading-[16px] font-[200] font-semibold text-[#ADFF5B]"
>
{{ plan.discount }}
</div>

View File

@ -50,10 +50,10 @@ export function formatExpireDate(sub?: SubscriptionItem | null): ExpireInfo {
const hh = String(expireDate.getHours()).padStart(2, '0')
const mm = String(expireDate.getMinutes()).padStart(2, '0')
const ss = String(expireDate.getSeconds()).padStart(2, '0')
// const ss = String(expireDate.getSeconds()).padStart(2, '0')
return {
text: `到期时间:${dateStr} ${hh}:${mm}:${ss}`,
text: `到期时间:${dateStr} ${hh}:${mm}`,
highlight: false,
}
}