From 9f15eb54f473f2abc3fd944544c2fde37f56fe6b Mon Sep 17 00:00:00 2001 From: shilei <965026003@qq.com> Date: Thu, 18 Jul 2024 13:28:03 +0800 Subject: [PATCH] =?UTF-8?q?7.18=20=20=E5=9B=BD=E9=99=85=E5=8C=96=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/home/homepage/index.css | 10 +++++----- src/views/home/homepage/index.less | 3 ++- src/views/home/homepage/index.vue | 28 ++++++++++++++++------------ 3 files changed, 23 insertions(+), 18 deletions(-) diff --git a/src/views/home/homepage/index.css b/src/views/home/homepage/index.css index b6e4572..37c3113 100644 --- a/src/views/home/homepage/index.css +++ b/src/views/home/homepage/index.css @@ -22,11 +22,11 @@ border: 1px solid #ccc; } .tops_content .electricity_status .block_spans { - width: 100px; + padding: 5px; line-height: 30px; border-radius: 7px; color: #fff; - background: #24ebf1; + background: #79bd56; text-align: center; margin-left: 8px; } @@ -42,7 +42,7 @@ .tops_content .electricity_status .bottom_status > div { width: 46%; height: 30%; - background: #e5f8fd; + background: #e3f1cb; margin: 0 5px; display: flex; flex-direction: column; @@ -106,7 +106,7 @@ .tops_content .electricity_imgs .bg_imgs { width: 100%; height: 100%; - background: url('../../../assets/imgs/电站.png') no-repeat center; + background: url('../../../assets/imgs/shouye.png') no-repeat center; background-size: 100% 100%; position: relative; } @@ -202,7 +202,7 @@ flex: 1; height: 90%; margin: 0 5px; - background: #e5f8fd; + background: #e3f1cb; display: flex; align-items: center; justify-content: center; diff --git a/src/views/home/homepage/index.less b/src/views/home/homepage/index.less index d339e07..c64dc2c 100644 --- a/src/views/home/homepage/index.less +++ b/src/views/home/homepage/index.less @@ -24,7 +24,8 @@ } .block_spans { - width: 100px; + // width: 100px; + padding: 5px; line-height: 30px; border-radius: 7px; color: #fff; diff --git a/src/views/home/homepage/index.vue b/src/views/home/homepage/index.vue index 8de432f..6606a24 100644 --- a/src/views/home/homepage/index.vue +++ b/src/views/home/homepage/index.vue @@ -4,33 +4,33 @@
- 当前换电状态: + {{ $t('message.homepage.stepName') }}: {{ bmsSwapSts.stepName }}
{{ char_nums_obj.chargeTodayCount }} - 当日充电 (次) + {{ $t('message.homepage.chargeTodayCount') }}
{{ char_nums_obj.swapTodayElectricity }} - 当日换电量 (度) + {{ $t('message.homepage.swapTodayElectricity') }}
{{ char_nums_obj.swapTodayCount }} - 当日换电 (次) + {{ $t('message.homepage.swapTodayCount') }}
{{ char_nums_obj.swapTotalCount }} - 累计换电 (次) + {{ $t('message.homepage.swapTotalCount') }}
{{ char_nums_obj.swapMonthElectricity }} - 当月换电量 (度) + {{ $t('message.homepage.swapMonthElectricity') }}
{{ char_nums_obj.chargeTotalCount }} - 累计充电 (次) + {{ $t('message.homepage.chargeTotalCount') }}
@@ -47,7 +47,7 @@
--> -