mirror of
https://github.com/certd/certd.git
synced 2026-08-09 16:45:50 +08:00
chore(i18n): add permanent VIP label and handle permanent VIP case
为国际化多语言添加永久VIP的翻译文本,同时在激活成功弹窗中处理永久会员的过期日期显示逻辑,当过期时间为-1时显示永久而非固定日期
This commit is contained in:
@@ -139,7 +139,7 @@ async function doActive() {
|
|||||||
title: t("vip.successTitle"),
|
title: t("vip.successTitle"),
|
||||||
content: t("vip.successContent", {
|
content: t("vip.successContent", {
|
||||||
vipLabel,
|
vipLabel,
|
||||||
expireDate: dayjs(settingStore.plusInfo.expireTime).format("YYYY-MM-DD"),
|
expireDate: settingStore.plusInfo.expireTime === -1 ? t("vip.permanent") : dayjs(settingStore.plusInfo.expireTime).format("YYYY-MM-DD"),
|
||||||
}),
|
}),
|
||||||
onOk() {
|
onOk() {
|
||||||
if (!(settingStore.installInfo.bindUserId > 0)) {
|
if (!(settingStore.installInfo.bindUserId > 0)) {
|
||||||
|
|||||||
@@ -104,4 +104,5 @@ export default {
|
|||||||
not_effective: "Not effective or duration not sync?",
|
not_effective: "Not effective or duration not sync?",
|
||||||
learn_more: "More privileges",
|
learn_more: "More privileges",
|
||||||
question: "More VIP related questions",
|
question: "More VIP related questions",
|
||||||
|
permanent: "Permanent",
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -103,4 +103,5 @@ export default {
|
|||||||
not_effective: "VIP没有生效/时长未同步?",
|
not_effective: "VIP没有生效/时长未同步?",
|
||||||
learn_more: "更多特权(加VIP群等)",
|
learn_more: "更多特权(加VIP群等)",
|
||||||
question: "更多VIP相关问题",
|
question: "更多VIP相关问题",
|
||||||
|
permanent: "永久",
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user