From f8675832cce3e4d209713e45ad8d383a83642b3d Mon Sep 17 00:00:00 2001 From: tx <2622874537@qq.com> Date: Tue, 24 Dec 2024 09:26:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=A8=E8=BF=B9=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages_adminSet/bike_track.vue | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/pages_adminSet/bike_track.vue b/pages_adminSet/bike_track.vue index b81d06b..16328bd 100644 --- a/pages_adminSet/bike_track.vue +++ b/pages_adminSet/bike_track.vue @@ -55,6 +55,14 @@ 定位: {{ location }} + + 电池: + {{ currentBattery }} + + + 锁状态: + {{ currentLockStatus }} + @@ -133,6 +141,8 @@ export default { currentSpeedIndex: 1, // 当前速度索引 currentSpeed: '0.00', // 当前估算速度 playbackInterval: 1000, // 播放间隔(毫秒) + currentBattery: '未知', // 当前电池电量 + currentLockStatus: '关锁', // 当前锁状态 // 时间选择相关 time1: false, @@ -398,7 +408,8 @@ export default { // 更新信息显示 this.currentPointTime = currentPoint.time; this.location = `${currentPoint.longitude}, ${currentPoint.latitude}`; - + this.currentBattery = currentPoint.bta == null ? '未知' : (currentPoint.bta / 10).toFixed(1)+'V' + this.currentLockStatus = currentPoint.lockStatus == '0' ? '关锁' : '开锁' // 更新轨迹线 this.currentPolyline = [{ points: this.trackPoints.slice(0, index + 1), @@ -465,7 +476,7 @@ export default { height: 47, iconPath: iconPath, callout: { - content: `${currentPoint.remainingPower}% | ${this.currentSpeed}km/h`, + content: ` ${this.currentSpeed}km/h`, color: calloutColor, fontSize: 10, borderRadius: 10,