This commit is contained in:
parent
686be3a855
commit
833cd9e305
@ -18,11 +18,8 @@
|
|||||||
<div :class="'text-sm'">约${{ plan.daily }}/天</div>
|
<div :class="'text-sm'">约${{ plan.daily }}/天</div>
|
||||||
<div
|
<div
|
||||||
v-if="plan.discount"
|
v-if="plan.discount"
|
||||||
:class="[
|
:class="[currentPlanIndex === index ? 'bg-[#A8FF53]! text-black' : ' ']"
|
||||||
index > 1 ? 'font-semibold' : '',
|
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]"
|
||||||
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]"
|
|
||||||
>
|
>
|
||||||
{{ plan.discount }}
|
{{ plan.discount }}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -50,10 +50,10 @@ export function formatExpireDate(sub?: SubscriptionItem | null): ExpireInfo {
|
|||||||
|
|
||||||
const hh = String(expireDate.getHours()).padStart(2, '0')
|
const hh = String(expireDate.getHours()).padStart(2, '0')
|
||||||
const mm = String(expireDate.getMinutes()).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 {
|
return {
|
||||||
text: `到期时间:${dateStr} ${hh}:${mm}:${ss}`,
|
text: `到期时间:${dateStr} ${hh}:${mm}`,
|
||||||
highlight: false,
|
highlight: false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user