globalThis entry
This commit is contained in:
parent
5cb335da5d
commit
bf3474f972
@ -39,36 +39,24 @@ export default class EntryAbility extends UIAbility {
|
|||||||
hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onWindowStageCreate');
|
hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onWindowStageCreate');
|
||||||
await tcpUtil.init()
|
await tcpUtil.init()
|
||||||
|
|
||||||
|
AppStorage.setOrCreate('carInfo',{})
|
||||||
|
AppStorage.setOrCreate('examinerInfo',{})
|
||||||
|
AppStorage.setOrCreate('lsh','0000000000000')
|
||||||
|
AppStorage.setOrCreate('statue',1)//考试状态
|
||||||
|
AppStorage.setOrCreate('signNum',0)//心跳指令编号
|
||||||
|
AppStorage.setOrCreate('baseInfo',{
|
||||||
|
hasAuth:false,
|
||||||
|
version:GlobalConfig.version.jn.km3[0],
|
||||||
|
judgeVersion:GlobalConfig.version.jn.km3[1],
|
||||||
|
tcpSendNum:0,
|
||||||
|
videoVersion:'1.0',
|
||||||
|
ratio: 1700 / 960, //适配比例
|
||||||
|
pathDir: this.context.filesDir,
|
||||||
|
context: this.context,
|
||||||
|
isJudgeInitBool:false,
|
||||||
|
deviceNo:''//设备号
|
||||||
|
})
|
||||||
|
|
||||||
globalThis.carInfo = {}
|
|
||||||
globalThis.examinerInfo = {}
|
|
||||||
globalThis.deviceNo = '';
|
|
||||||
globalThis.hasAuth = false
|
|
||||||
|
|
||||||
// globalThis.judgeVersion ='2024.08.24.1'
|
|
||||||
// globalThis.version ='2023.12.13.01';
|
|
||||||
globalThis.version = GlobalConfig.version.jn.km3[0];
|
|
||||||
globalThis.judgeVersion = GlobalConfig.version.jn.km3[1];
|
|
||||||
globalThis.tcpSendNum = 0
|
|
||||||
globalThis.videoVersion = '1.0'
|
|
||||||
|
|
||||||
//视频遮挡
|
|
||||||
globalThis.spzd = {
|
|
||||||
spzd1: false,
|
|
||||||
spzd2: false,
|
|
||||||
spzd3: false,
|
|
||||||
spzd4: false,
|
|
||||||
}
|
|
||||||
globalThis.signNum = 0 //心跳指令编号
|
|
||||||
globalThis.lsh = '0000000000000' //学员流水号
|
|
||||||
globalThis.ratio = 1700 / 960 //适配比例
|
|
||||||
globalThis.statue = 1 //考试状态
|
|
||||||
globalThis.pathDir = this.context.filesDir;
|
|
||||||
globalThis.context = this.context;
|
|
||||||
globalThis.isJudgeInitBool = false
|
|
||||||
console.info('jiangsong globalThis.pathDir = ' + globalThis.pathDir);
|
|
||||||
// this.requestPermission(this.context)
|
|
||||||
// this.featureAbilityAuth()
|
|
||||||
|
|
||||||
const windowClass = await windowStage.getMainWindow();
|
const windowClass = await windowStage.getMainWindow();
|
||||||
globalThis.windowClass = windowClass
|
globalThis.windowClass = windowClass
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user