问题修改
This commit is contained in:
parent
b4fd646730
commit
d4140341fd
@ -19,13 +19,15 @@ import UdpEvent from '../common/utils/UdpEvent';
|
|||||||
import { delPic } from '../common/service/videoService';
|
import { delPic } from '../common/service/videoService';
|
||||||
import imageBtn from './compontents/imageBtn';
|
import imageBtn from './compontents/imageBtn';
|
||||||
import VoiceAnnounce from './judgeSDK/utils/voiceAnnouncements';
|
import VoiceAnnounce from './judgeSDK/utils/voiceAnnouncements';
|
||||||
|
import { examJudgeVersion } from './judgeSDK/api';
|
||||||
|
|
||||||
|
|
||||||
@Entry
|
@Entry
|
||||||
@Component
|
@Component
|
||||||
struct Index {
|
struct Index {
|
||||||
@State carNum: string = ''
|
@State carNum: string = ''
|
||||||
@State version: string = ''
|
@State version: string = '2025.04.23.01'
|
||||||
|
@State judgeVersion: string = ''
|
||||||
@State url: string = ''
|
@State url: string = ''
|
||||||
@State hasAuth: boolean = false;
|
@State hasAuth: boolean = false;
|
||||||
@State dialogVisiable: boolean = false;
|
@State dialogVisiable: boolean = false;
|
||||||
@ -39,8 +41,8 @@ struct Index {
|
|||||||
@State initParamFlag: boolean = false
|
@State initParamFlag: boolean = false
|
||||||
@State fd: number = -1;
|
@State fd: number = -1;
|
||||||
@State num: number = 0;
|
@State num: number = 0;
|
||||||
fileHelper = null;
|
private fileHelper = null;
|
||||||
errorDialog: CustomDialogController = new CustomDialogController({
|
private errorDialog: CustomDialogController = new CustomDialogController({
|
||||||
builder: errorMsgDialog({
|
builder: errorMsgDialog({
|
||||||
title: globalThis.title,
|
title: globalThis.title,
|
||||||
type: globalThis.type,
|
type: globalThis.type,
|
||||||
@ -53,11 +55,8 @@ struct Index {
|
|||||||
alignment: DialogAlignment.Center,
|
alignment: DialogAlignment.Center,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
private fileUtil: FileUtil
|
|
||||||
private interval = null;
|
private interval = null;
|
||||||
// private vocObj = null;
|
|
||||||
private avPlayer
|
private avPlayer
|
||||||
private workerInstance = null;
|
|
||||||
private context = getContext(this) as common.UIAbilityContext;
|
private context = getContext(this) as common.UIAbilityContext;
|
||||||
|
|
||||||
@Styles
|
@Styles
|
||||||
@ -202,12 +201,12 @@ struct Index {
|
|||||||
Column() {
|
Column() {
|
||||||
Row() {
|
Row() {
|
||||||
Column() {
|
Column() {
|
||||||
Text('V外壳:' + globalThis.version)
|
Text('V外壳:' + this.version)
|
||||||
.fontColor('#CCAE7A')
|
.fontColor('#CCAE7A')
|
||||||
.fontSize(18 * globalThis.ratio)
|
.fontSize(18 * globalThis.ratio)
|
||||||
.width('30%')
|
.width('30%')
|
||||||
.margin({ bottom: 10 })
|
.margin({ bottom: 10 })
|
||||||
Text('V评判:' + globalThis.judgeVersion)
|
Text('V评判:' + this.judgeVersion)
|
||||||
.fontColor('#CCAE7A')
|
.fontColor('#CCAE7A')
|
||||||
.fontSize(18 * globalThis.ratio)
|
.fontSize(18 * globalThis.ratio)
|
||||||
.width('30%')
|
.width('30%')
|
||||||
@ -359,6 +358,7 @@ struct Index {
|
|||||||
|
|
||||||
async aboutToAppear() {
|
async aboutToAppear() {
|
||||||
this.avPlayer = new VoiceAnnounce();
|
this.avPlayer = new VoiceAnnounce();
|
||||||
|
this.judgeVersion = await examJudgeVersion()
|
||||||
this.initParamFlag = false
|
this.initParamFlag = false
|
||||||
this.delLoading = false
|
this.delLoading = false
|
||||||
this.dialogVisiable = false
|
this.dialogVisiable = false
|
||||||
@ -595,7 +595,6 @@ struct Index {
|
|||||||
console.info('surenjun', 'distanceClass=>初始化完成')
|
console.info('surenjun', 'distanceClass=>初始化完成')
|
||||||
}
|
}
|
||||||
this.carNum = globalThis.carInfo.plateNo;
|
this.carNum = globalThis.carInfo.plateNo;
|
||||||
this.version = globalThis.version;
|
|
||||||
this.hasAuth = globalThis.hasAuth;
|
this.hasAuth = globalThis.hasAuth;
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.initParamFlag = true
|
this.initParamFlag = true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user