From beb6ba1b607b59be3f2f5b6a5dd81970b459eae9 Mon Sep 17 00:00:00 2001 From: wangzhongjie Date: Thu, 28 Aug 2025 17:25:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E4=BF=A1=E5=8F=B7?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/ets/pages/compontents/Coordinate.ets | 5 ++++- .../src/main/ets/pages/compontents/SignalDisplay.ets | 12 ++++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/entry/src/main/ets/pages/compontents/Coordinate.ets b/entry/src/main/ets/pages/compontents/Coordinate.ets index de7d106..35d26c9 100644 --- a/entry/src/main/ets/pages/compontents/Coordinate.ets +++ b/entry/src/main/ets/pages/compontents/Coordinate.ets @@ -32,7 +32,10 @@ export default struct CoordinateComponent { }.width("100%") } .width("100%") - .height(this.isItHorizontal ? 220 : "100%") + .height(this.isItHorizontal ? 280 : "100%") .backgroundColor("#1A1A1A") + .margin({ + bottom: 20 + }) } } \ No newline at end of file diff --git a/entry/src/main/ets/pages/compontents/SignalDisplay.ets b/entry/src/main/ets/pages/compontents/SignalDisplay.ets index 201c66c..81b7d6c 100644 --- a/entry/src/main/ets/pages/compontents/SignalDisplay.ets +++ b/entry/src/main/ets/pages/compontents/SignalDisplay.ets @@ -20,7 +20,7 @@ export default struct SignalDisplayComponent { @Prop active: number = 0 // 原始数据 @State rawData: string = "$GPS,,,,,,,,,,,,,,,,,,,,,,,,,,,,," - @State heightNum: number = 1130 + @State heightNum: number = 1200 aboutToAppear(): void { DifferentialAndSignal.onMsg(this.getMsg) @@ -85,6 +85,12 @@ export default struct SignalDisplayComponent { this.signArr[93] = str2 + str1 + str0 } this.GPSColum[10].value = this.signArr[93] + this.vehicleSignal = JSON.parse(JSON.stringify((this.vehicleSignal))) + this.signArr = JSON.parse(JSON.stringify((this.signArr))) + this.GPSColum = JSON.parse(JSON.stringify((this.GPSColum))) + // this.vehicleSignal = this.vehicleSignal.slice() + // this.signArr = this.signArr.slice() + // this.GPSColum = this.GPSColum.slice() } build() { @@ -104,7 +110,9 @@ export default struct SignalDisplayComponent { CoordinateComponent({ data: this.GPSColum }) - }.height(this.heightNum) + }.height(this.heightNum).padding({ + bottom: 20 + }) } else if (this.active === 1) { // 原始数据 Column() {