Merge branch 'dev' of http://88.22.24.105:3000/harmony_car/subject-two into dev
This commit is contained in:
commit
2d085b42bf
@ -435,15 +435,17 @@ const devPath = "/dev/ttyS3"
|
|||||||
function openChuankouFn(callback) {
|
function openChuankouFn(callback) {
|
||||||
console.log('SerialOpen in indexservice, path=' + devPath)
|
console.log('SerialOpen in indexservice, path=' + devPath)
|
||||||
|
|
||||||
//TODO 自动挡车不读取串口
|
//自动挡车不读取串口
|
||||||
testNapi.SerialOpenAsync(devPath, (fd) => {
|
if(globalThis.carInfo && globalThis.carInfo.kscx == 'C1'){
|
||||||
globalThis.fd = fd;
|
testNapi.SerialOpenAsync(devPath, (fd) => {
|
||||||
globalThis.num = 0
|
globalThis.fd = fd;
|
||||||
let parity = 0x4e; // 'N'
|
globalThis.num = 0
|
||||||
let ret = testNapi.SerialSetAsync(globalThis.fd, 115200, 0, 8, 1, parity, (ret) => {
|
let parity = 0x4e; // 'N'
|
||||||
callback()
|
let ret = testNapi.SerialSetAsync(globalThis.fd, 115200, 0, 8, 1, parity, (ret) => {
|
||||||
|
callback()
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function getChuankouFnMsg() {
|
function getChuankouFnMsg() {
|
||||||
|
|||||||
@ -37,8 +37,6 @@ export default class EntryAbility extends UIAbility {
|
|||||||
// this.context
|
// this.context
|
||||||
// Main window is created, set main page for this ability
|
// Main window is created, set main page for this ability
|
||||||
hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onWindowStageCreate');
|
hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onWindowStageCreate');
|
||||||
await tcpUtil.init()
|
|
||||||
|
|
||||||
|
|
||||||
globalThis.carInfo = {}
|
globalThis.carInfo = {}
|
||||||
globalThis.examinerInfo = {}
|
globalThis.examinerInfo = {}
|
||||||
@ -66,15 +64,11 @@ export default class EntryAbility extends UIAbility {
|
|||||||
globalThis.pathDir = this.context.filesDir;
|
globalThis.pathDir = this.context.filesDir;
|
||||||
globalThis.context = this.context;
|
globalThis.context = this.context;
|
||||||
globalThis.isJudgeInitBool = false
|
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
|
||||||
// await windowClass.setWindowLayoutFullScreen(true)
|
await windowClass.setWindowLayoutFullScreen(true)
|
||||||
// await windowClass.setWindowSystemBarEnable([]) //全屏
|
await windowClass.setWindowSystemBarEnable([])
|
||||||
await windowClass.setWindowSystemBarEnable(['navigation'])
|
|
||||||
|
|
||||||
windowStage.loadContent('pages/Index', (err, data) => {
|
windowStage.loadContent('pages/Index', (err, data) => {
|
||||||
if (err.code) {
|
if (err.code) {
|
||||||
|
|||||||
@ -677,6 +677,11 @@ struct Index {
|
|||||||
}, 1000)
|
}, 1000)
|
||||||
this.createAlbum()
|
this.createAlbum()
|
||||||
|
|
||||||
|
getSyncData('ES_CARINFO').then(result => {
|
||||||
|
const carInfo = result[0] || {};
|
||||||
|
globalThis.carInfo.kscx = carInfo.kscx
|
||||||
|
})
|
||||||
|
|
||||||
// clearInterval(globalThis.demo)
|
// clearInterval(globalThis.demo)
|
||||||
// globalThis.demo= setInterval(()=>{
|
// globalThis.demo= setInterval(()=>{
|
||||||
// const str= {"carId":"1062","examinationRoomId":"2","videoVersion":"1.0","judgeVersion":"2023.09.30.1","shellVersion":"2023.12.13.01","host":"http://172.37.55.191:8082"}
|
// const str= {"carId":"1062","examinationRoomId":"2","videoVersion":"1.0","judgeVersion":"2023.09.30.1","shellVersion":"2023.12.13.01","host":"http://172.37.55.191:8082"}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user