完善个人中心

This commit is contained in:
CaIon
2023-11-21 16:35:51 +08:00
parent fa45f3ba7b
commit fd57a1df08
9 changed files with 812 additions and 492 deletions

View File

@@ -37,6 +37,12 @@ export function renderNumber(num) {
}
}
export function getQuotaPerUnit() {
let quotaPerUnit = localStorage.getItem('quota_per_unit');
quotaPerUnit = parseFloat(quotaPerUnit);
return quotaPerUnit;
}
export function renderQuota(quota, digits = 2) {
let quotaPerUnit = localStorage.getItem('quota_per_unit');
let displayInCurrency = localStorage.getItem('display_in_currency');