2
0

feat:仪表盘中英文修复

This commit is contained in:
zhongzm
2025-01-23 20:54:30 +08:00
parent ec087caaaf
commit 6199041d21
3 changed files with 10 additions and 4 deletions

View File

@@ -571,6 +571,9 @@ const local: any = {
maxspeed:'Max',
deviceCount: "Device",
nolimit:'Unlimited',
nopackage:'No package',
money:' yuan',
device:' Device',
},
userInfo:{
kyc:'KYC certification',

View File

@@ -573,6 +573,9 @@ const local:any = {
maxspeed:'峰值',
deviceCount: "设备数",
nolimit:'无限制',
nopackage:'暂无套餐',
money:'元',
device:'台',
},
userInfo:{
kyc:'KYC认证',

View File

@@ -279,7 +279,7 @@ async function mockDataUpdate() {
if (response && typeof response === 'object' && !response.error) {
// 更新套餐信息
packageInfo.value = {
packageName: response.packageName || '暂无套餐',
packageName: response.packageName || t('page.headerbanner.nopackage'),
price: formatBalance(response.price || 0)
};
@@ -290,8 +290,8 @@ async function mockDataUpdate() {
value: numBalance,
max: Math.max(numBalance, 100),
displayValue: formatBalance(response.balance),
unit: '元',
subTitle: t('page.headerbanner.deviceCount') + `: ${response.clientNumEnable ? (response.clientNum || 0) + '台' : t('page.headerbanner.nolimit')}`
unit: t('page.headerbanner.money'),
subTitle: t('page.headerbanner.deviceCount') + `: ${response.clientNumEnable ? (response.clientNum || 0) + t('page.headerbanner.device') : t('page.headerbanner.nolimit')}`
};
// 更新流量数据
@@ -433,7 +433,7 @@ const getDeviceCount = (subTitle?: string, clientNumEnable?: boolean): string =>
<div class="info-group">
<div class="info-item">
<span class="info-label">{{ t('page.headerbanner.packagename') }}</span>
<span class="info-value">{{ packageInfo.packageName || '暂无套餐' }}</span>
<span class="info-value">{{ packageInfo.packageName || t('page.headerbanner.nopackage') }}</span>
</div>
<div class="info-item">
<span class="info-label">{{ t('page.headerbanner.price') }}</span>