From cdd277274802aa341a56f297cef1b64974b1aada Mon Sep 17 00:00:00 2001
From: "3321822538@qq.com" <3321822538@qq.com>
Date: Tue, 4 Mar 2025 17:44:38 +0800
Subject: [PATCH] =?UTF-8?q?=E8=9C=82=E7=AE=B1?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
page_user/luruone.vue | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/page_user/luruone.vue b/page_user/luruone.vue
index be1af86..9915ba1 100644
--- a/page_user/luruone.vue
+++ b/page_user/luruone.vue
@@ -32,28 +32,28 @@
- 电池电压:{{ver_data.power / 100}}/V --
+ 电池电压:{{Number(ver_data.bat).toFixed(2)}}V --
- 声音频率:{{ver_data.MIC}}/Hz --
+ 声音频率:{{ver_data.MIC}}Hz --
- 内部温度:{{ver_data.temp_n}}/°C--
+ 内部温度:{{Number(ver_data.temp_n).toFixed(2)}}°C--
- 外部温度:{{ver_data.temp_w}}/°C--
+ 外部温度:{{Number(ver_data.temp_w).toFixed(2)}}°C--
- 内部湿度:{{ver_data.hp_n}}/% --
+ 内部湿度:{{Number(ver_data.hp_n).toFixed(2)}}% --
- 外部湿度:{{ver_data.hp_w}}/% --
+ 外部湿度:{{Number(ver_data.hp_w).toFixed(2)}}% --
- 当前重量:{{ver_data.weight}}/g --
+ 当前重量:{{Number(ver_data.weight).toFixed(2)}}g --
- 当天出勤:{{ver_data.out_day}}/次 --
+ 当天出勤:{{ver_data.out_day}}次 --
@@ -530,7 +530,7 @@
break;
case xBlufi.XBLUFI_TYPE.TYPE_RECIEVE_CUSTON_DATA:
// let data = '@power56@hp_n15@hp_w32@out_day1211@temp_n45@temp_w12@MIC230@weight1002'
- this.ver_data = this.parseBluetoothData(options.data)
+ this.ver_data = this.parseBluetoothData(options.data + ',')
if (options.data) {
this.carstause = true
}
@@ -548,7 +548,7 @@
},
parseBluetoothData(data) {
const result = {};
- const parts = data.split('@');
+ const parts = data.split(',');
parts.forEach(part => {
if (part) {