mirror of
https://github.com/hi2shark/nazhua.git
synced 2026-01-12 15:20:43 +08:00
✨ 修复账单周期标签的显示逻辑,确保在适当情况下显示周期信息
This commit is contained in:
parent
7bbd8455e9
commit
fb3267f978
@ -60,6 +60,7 @@ export default (params) => {
|
||||
months = 6;
|
||||
break;
|
||||
default:
|
||||
cycleLabel = billingDataMod.cycle;
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -69,12 +70,12 @@ export default (params) => {
|
||||
let label;
|
||||
if (billingDataMod.amount.toString() === '-1') {
|
||||
amountValue = '按量';
|
||||
label = `每${cycleLabel}`;
|
||||
label = cycleLabel ? `每${cycleLabel}` : '';
|
||||
} else if (billingDataMod.amount.toString() === '0') {
|
||||
amountValue = config.nazhua.freeAmount || '免费';
|
||||
isFree = true;
|
||||
} else {
|
||||
label = `${cycleLabel}付`;
|
||||
label = cycleLabel ? `${cycleLabel}付` : '';
|
||||
}
|
||||
obj.billing = {
|
||||
label,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user