feat:仪表盘中英文修复
This commit is contained in:
@@ -571,6 +571,9 @@ const local: any = {
|
|||||||
maxspeed:'Max',
|
maxspeed:'Max',
|
||||||
deviceCount: "Device",
|
deviceCount: "Device",
|
||||||
nolimit:'Unlimited',
|
nolimit:'Unlimited',
|
||||||
|
nopackage:'No package',
|
||||||
|
money:' yuan',
|
||||||
|
device:' Device',
|
||||||
},
|
},
|
||||||
userInfo:{
|
userInfo:{
|
||||||
kyc:'KYC certification',
|
kyc:'KYC certification',
|
||||||
|
|||||||
@@ -573,6 +573,9 @@ const local:any = {
|
|||||||
maxspeed:'峰值',
|
maxspeed:'峰值',
|
||||||
deviceCount: "设备数",
|
deviceCount: "设备数",
|
||||||
nolimit:'无限制',
|
nolimit:'无限制',
|
||||||
|
nopackage:'暂无套餐',
|
||||||
|
money:'元',
|
||||||
|
device:'台',
|
||||||
},
|
},
|
||||||
userInfo:{
|
userInfo:{
|
||||||
kyc:'KYC认证',
|
kyc:'KYC认证',
|
||||||
|
|||||||
@@ -279,7 +279,7 @@ async function mockDataUpdate() {
|
|||||||
if (response && typeof response === 'object' && !response.error) {
|
if (response && typeof response === 'object' && !response.error) {
|
||||||
// 更新套餐信息
|
// 更新套餐信息
|
||||||
packageInfo.value = {
|
packageInfo.value = {
|
||||||
packageName: response.packageName || '暂无套餐',
|
packageName: response.packageName || t('page.headerbanner.nopackage'),
|
||||||
price: formatBalance(response.price || 0)
|
price: formatBalance(response.price || 0)
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -290,8 +290,8 @@ async function mockDataUpdate() {
|
|||||||
value: numBalance,
|
value: numBalance,
|
||||||
max: Math.max(numBalance, 100),
|
max: Math.max(numBalance, 100),
|
||||||
displayValue: formatBalance(response.balance),
|
displayValue: formatBalance(response.balance),
|
||||||
unit: '元',
|
unit: t('page.headerbanner.money'),
|
||||||
subTitle: t('page.headerbanner.deviceCount') + `: ${response.clientNumEnable ? (response.clientNum || 0) + '台' : t('page.headerbanner.nolimit')}`
|
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-group">
|
||||||
<div class="info-item">
|
<div class="info-item">
|
||||||
<span class="info-label">{{ t('page.headerbanner.packagename') }}</span>
|
<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>
|
||||||
<div class="info-item">
|
<div class="info-item">
|
||||||
<span class="info-label">{{ t('page.headerbanner.price') }}</span>
|
<span class="info-label">{{ t('page.headerbanner.price') }}</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user