Skip to content

Commit

Permalink
🎨 #9367
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Oct 8, 2023
1 parent 05495e7 commit 787fbf6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion app/src/config/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@ export const account = {
<button id="activationCode" class="b3-button b3-button--text" style="position: absolute;right: 0;top: 0;">${window.siyuan.languages.confirm}</button>
</div>`;
if (window.siyuan.user.userSiYuanProExpireTime === -1) {
// 终身会员
activeSubscriptionHTML = "";
subscriptionHTML = `<div class="b3-chip b3-chip--secondary">${Constants.SIYUAN_IMAGE_VIP}${window.siyuan.languages.account12}</div>`;
} else if (window.siyuan.user.userSiYuanProExpireTime > 0) {
// 订阅中
const renewHTML = `<div class="fn__hr--b"></div>
<div class="ft__on-surface ft__smaller">
${window.siyuan.languages.account6}
Expand All @@ -64,14 +66,20 @@ export const account = {
<div class="fn__hr--b"></div>`;
}
if (window.siyuan.user.userSiYuanSubscriptionPlan === 2) {
// 订阅试用
subscriptionHTML += `<div class="b3-chip b3-chip--primary"><svg><use xlink:href="#iconVIP"></use></svg>${window.siyuan.languages.account3}</div>
${renewHTML}
<div class="fn__hr--b"></div>`;
} else {
subscriptionHTML += `<div class="b3-chip b3-chip--primary"><svg class="ft__secondary"><use xlink:href="#iconVIP"></use></svg>${window.siyuan.languages.account10}</div>${renewHTML}`;
}
} else {
subscriptionHTML = payHTML;
if (window.siyuan.user.userSiYuanOneTimePayStatus === 0) {
subscriptionHTML = `<div class="b3-chip"><svg><use xlink:href="#iconVIP"></use></svg>${window.siyuan.languages.onepay}</div>
<div class="fn__hr--b"></div>${payHTML}`;
} else {
subscriptionHTML = payHTML;
}
}
return `<div class="fn__flex config-account">
<div class="config-account__center">
Expand Down

0 comments on commit 787fbf6

Please sign in to comment.