|
@@ -169,7 +169,7 @@
|
|
|
<img src="../assets/images/liuliang.png" alt=""><span>剩余流量</span>
|
|
|
</div>
|
|
|
<div class="cardtopnumber">
|
|
|
- 100.00GB
|
|
|
+ <span>{{formatBytes(this.trafficCount)}}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="progress">
|
|
@@ -851,6 +851,7 @@ export default {
|
|
|
remainMessage: '',
|
|
|
// 当天使用流量
|
|
|
todayTraffic: 0,
|
|
|
+ trafficCount: 0,
|
|
|
// 当月使用流量
|
|
|
thisMonthTraffic: 0,
|
|
|
dataType: '0',
|
|
@@ -1065,6 +1066,7 @@ export default {
|
|
|
if(res.code === 200) {
|
|
|
this.todayTraffic = res.data.today;
|
|
|
this.thisMonthTraffic = res.data.thisMonth;
|
|
|
+ this.trafficCount = res.data.traffic!=null?res.data.traffic:0;
|
|
|
}
|
|
|
})
|
|
|
|