2024-01-05 11:11:15 +08:00
|
|
|
import router from '@ohos.router'
|
|
|
|
|
import TopLogo from './compontents/topLogo'
|
|
|
|
|
import { voiceService } from '../common/service/voiceService'
|
|
|
|
|
|
|
|
|
|
@Entry
|
|
|
|
|
@Component
|
|
|
|
|
struct Index {
|
2024-05-09 13:42:56 +08:00
|
|
|
@State ratio: number = 1280 / 960
|
2024-01-05 11:11:15 +08:00
|
|
|
@State carNum: string = ''
|
|
|
|
|
@State version: string = ''
|
|
|
|
|
@State hasAuth: boolean = false;
|
|
|
|
|
private vocObj = null;
|
|
|
|
|
@State url: string = ''
|
|
|
|
|
@State @Watch('outClick') outFlag: boolean = false;
|
|
|
|
|
build() {
|
|
|
|
|
Column() {
|
|
|
|
|
TopLogo({outFlag:$outFlag})
|
|
|
|
|
Column() {
|
|
|
|
|
Row() {
|
|
|
|
|
Image($r('app.media.setting_clzc')).width('30.5%').height('74%').onClick(()=>{
|
2024-02-26 15:01:27 +08:00
|
|
|
this.url='pages/Register'
|
2024-01-05 11:11:15 +08:00
|
|
|
router.pushUrl({
|
|
|
|
|
url: this.url,
|
|
|
|
|
},router.RouterMode.Single);
|
|
|
|
|
})
|
|
|
|
|
Image($r('app.media.setting_spjk')).width('30.5%').height('74%').onClick(()=>{
|
2024-02-26 15:01:27 +08:00
|
|
|
this.url='pages/VideoConfig'
|
2024-01-05 11:11:15 +08:00
|
|
|
router.pushUrl({
|
|
|
|
|
url: this.url,
|
|
|
|
|
},router.RouterMode.Single);
|
|
|
|
|
})
|
|
|
|
|
Image($r('app.media.setting_xtts')).width('30.5%').height('74%').onClick(()=>{
|
2024-05-16 11:19:10 +08:00
|
|
|
this.url='pages/TerminalInfos'
|
2024-01-05 11:11:15 +08:00
|
|
|
router.pushUrl({
|
|
|
|
|
url: this.url,
|
|
|
|
|
},router.RouterMode.Single);
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
.width('100%')
|
|
|
|
|
.justifyContent(FlexAlign.SpaceAround)
|
|
|
|
|
}
|
|
|
|
|
Column() {
|
|
|
|
|
Row() {
|
|
|
|
|
Column() {
|
2024-05-29 12:59:48 +08:00
|
|
|
Text('V ' + this.version).fontColor('#CCAE7A').fontSize(22*globalThis.ratio).width('30%').margin({bottom:10*globalThis.ratio})
|
|
|
|
|
Text('授权信息:' + (this.hasAuth?'已授权':'未授权')).fontColor('#CCAE7A').fontSize(22*globalThis.ratio).width('30%')
|
2024-01-05 11:11:15 +08:00
|
|
|
}
|
2024-05-29 12:59:48 +08:00
|
|
|
.margin({left: 24*globalThis.ratio})
|
|
|
|
|
Text('考车号:' + globalThis.deviceNo).fontColor('#CCAE7A').fontSize(22*globalThis.ratio).margin({right: 24*globalThis.ratio})
|
2024-01-05 11:11:15 +08:00
|
|
|
}
|
|
|
|
|
.width('100%')
|
|
|
|
|
.justifyContent(FlexAlign.SpaceBetween)
|
2024-05-29 12:59:48 +08:00
|
|
|
.margin({bottom: 10*globalThis.ratio})
|
2024-01-05 11:11:15 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.width('100%')
|
|
|
|
|
.height('100%')
|
|
|
|
|
.justifyContent(FlexAlign.SpaceBetween)
|
|
|
|
|
.backgroundImagePosition({x: 0, y: 0})
|
|
|
|
|
.backgroundImage($r('app.media.index_bg'))
|
|
|
|
|
.backgroundImageSize({ width: '100%', height: '100%' })
|
|
|
|
|
}
|
|
|
|
|
aboutToAppear() {
|
|
|
|
|
this.carNum = globalThis.carInfo.plateNo;
|
|
|
|
|
this.version = globalThis.version;
|
|
|
|
|
this.hasAuth = globalThis.hasAuth;
|
|
|
|
|
}
|
2024-02-23 15:23:48 +08:00
|
|
|
|
2024-01-05 11:11:15 +08:00
|
|
|
outClick(){
|
|
|
|
|
}
|
|
|
|
|
}
|