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() {