Compare commits

..

No commits in common. "f68a521f8c2132e46765f167caa078ef4e1d4375" and "2d562dd3f7f1991e00b95f7fd137e2b82315584a" have entirely different histories.

2 changed files with 7 additions and 22 deletions

View File

@ -388,6 +388,7 @@ struct Index {
console.log('globalThis.singlePlay', globalThis.singlePlay) console.log('globalThis.singlePlay', globalThis.singlePlay)
if (globalThis.singlePlay == undefined || globalThis.singlePlay == null) { if (globalThis.singlePlay == undefined || globalThis.singlePlay == null) {
this.context.resourceManager.getRawFileContent("welcome.wav").then(value => { this.context.resourceManager.getRawFileContent("welcome.wav").then(value => {
console.log('tttttttt')
this.vocObj.playAudio({ this.vocObj.playAudio({
type: 1, type: 1,
name: 'welcome.wav' name: 'welcome.wav'

View File

@ -4,8 +4,6 @@ import FileLog from '../judgeSDK/utils/fileLog';
import RealTime from '../compontents/judge/RealTime'; import RealTime from '../compontents/judge/RealTime';
import { GPSData, SignalData } from '../../mock'; import { GPSData, SignalData } from '../../mock';
import { SignalDataType } from '../../model'; import { SignalDataType } from '../../model';
// import { getSyncData } from '../../common/service/initable';
import common from '@ohos.app.ability.common';
@Component @Component
export default struct SignDisplayCom { export default struct SignDisplayCom {
@ -22,15 +20,10 @@ export default struct SignDisplayCom {
@State interval: number = 0 @State interval: number = 0
@State @Watch('outClick') outFlag: boolean = false; @State @Watch('outClick') outFlag: boolean = false;
@State url: string = '' @State url: string = ''
@State date: string = ''
@State time: string = ''
// @State sd: string = ''
@State param350Str: string = ''
private timer = null private timer = null
private udpClient: UdpClient = null private udpClient: UdpClient = null
private FileLog: FileLog private FileLog: FileLog
private vocObj = null; private vocObj = null;
private context = getContext(this) as common.UIAbilityContext;
constructor() { constructor() {
super() super()
@ -173,7 +166,7 @@ export default struct SignDisplayCom {
}.justifyContent(FlexAlign.Start).padding({ left: 10 * this.ratio }).margin({ top: 8 * this.ratio }) }.justifyContent(FlexAlign.Start).padding({ left: 10 * this.ratio }).margin({ top: 8 * this.ratio })
Row() { Row() {
Text("后置机IP" + this.signArr[53] || '0') Text("机IP" + this.signArr[53] || '0')
.fontColor('#FFF5E5') .fontColor('#FFF5E5')
.fontSize(14 * this.ratio) .fontSize(14 * this.ratio)
.width('25%') .width('25%')
@ -222,11 +215,11 @@ export default struct SignDisplayCom {
.fontColor('#FFB433') .fontColor('#FFB433')
.fontSize(14 * this.ratio) .fontSize(14 * this.ratio)
.height(18 * this.ratio) .height(18 * this.ratio)
Text('年月日:' + this.date).fontColor('#FFB433').fontSize(14 * this.ratio).height(18 * this.ratio) Text('年月日:' + this.signArr[93]).fontColor('#FFB433').fontSize(14 * this.ratio).height(18 * this.ratio)
Text('时分秒:' + this.time).fontColor('#FFB433').fontSize(14 * this.ratio).height(18 * this.ratio) Text('时分秒:' + this.signArr[94]).fontColor('#FFB433').fontSize(14 * this.ratio).height(18 * this.ratio)
Text('经度:' + this.signArr[95]).fontColor('#FFB433').fontSize(14 * this.ratio).height(18 * this.ratio) Text('经度:' + this.signArr[95]).fontColor('#FFB433').fontSize(14 * this.ratio).height(18 * this.ratio)
Text('纬度:' + this.signArr[96]).fontColor('#FFB433').fontSize(14 * this.ratio).height(18 * this.ratio) Text('纬度:' + this.signArr[96]).fontColor('#FFB433').fontSize(14 * this.ratio).height(18 * this.ratio)
Text('速度:' + (this.signArr[97]*1.852).toFixed(2)).fontColor('#FFB433').fontSize(14 * this.ratio).height(18 * this.ratio) Text('速度:' + this.signArr[97]).fontColor('#FFB433').fontSize(14 * this.ratio).height(18 * this.ratio)
} }
.backgroundColor('#1A1A1A') .backgroundColor('#1A1A1A')
.width(170 * this.ratio) .width(170 * this.ratio)
@ -353,6 +346,8 @@ export default struct SignDisplayCom {
} }
onPageShow() { onPageShow() {
console.info('SURENJUN', 123)
const getSignal = this.getSignal; const getSignal = this.getSignal;
const that = this const that = this
const showBack = this.showBack; const showBack = this.showBack;
@ -419,17 +414,6 @@ export default struct SignDisplayCom {
this.sjxhColum = JSON.parse(JSON.stringify((this.sjxhColum))) this.sjxhColum = JSON.parse(JSON.stringify((this.sjxhColum)))
that.signArr = JSON.parse(JSON.stringify((this.signArr))) that.signArr = JSON.parse(JSON.stringify((this.signArr)))
that.GPSColum = JSON.parse(JSON.stringify((this.GPSColum))) that.GPSColum = JSON.parse(JSON.stringify((this.GPSColum)))
if(this.signArr.length) {
this.date = this.signArr[93].substr(4, 2) + this.signArr[93].substr(2, 2) + this.signArr[93].substr(0, 2)
const hours = (Number(this.signArr[94].substr(0, 2)) + 8).toString()
if (hours.length < 2) {
this.time = '0' + hours + this.signArr[93].substr(2, this.signArr[93].length)
} else {
this.time = hours + this.signArr[93].substr(2, this.signArr[93].length)
}
}
// this.sd=this.param350Str=='0'? this.signArr[97]: this.signArr[23]
} }
outClick() { outClick() {