feat:1. 靠边停车项目进行中不能退出 2.344参数修改
This commit is contained in:
parent
94b3b2e96a
commit
d2e795c82f
@ -920,6 +920,25 @@ struct Index {
|
|||||||
.backgroundImage($rawfile('judge/anniu_nor.png'), ImageRepeat.NoRepeat)
|
.backgroundImage($rawfile('judge/anniu_nor.png'), ImageRepeat.NoRepeat)
|
||||||
.backgroundImageSize({ width: '100%', height: '100%' })
|
.backgroundImageSize({ width: '100%', height: '100%' })
|
||||||
.onClick(() => {
|
.onClick(() => {
|
||||||
|
|
||||||
|
//靠边停车进行中&且其它项目都已经完成 不能结束
|
||||||
|
if(!this.singlePlay && this.projectsObj['40600']?.type == '2' && this.isRequiredProjectsEnd){
|
||||||
|
Prompt.showToast({
|
||||||
|
message: '靠边停车项目进行中,不允许手动退出!',
|
||||||
|
duration: 4000
|
||||||
|
});
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
//考试未结束且有扣分,不允许退出
|
||||||
|
if (!this.singlePlay && this.judgeConfigObj['344'] == 1 && this.kfArr.length > 0&& !this.isAllProjectsEnd ) {
|
||||||
|
Prompt.showToast({
|
||||||
|
message: '考试未结束且有扣分,不允许手动退出!',
|
||||||
|
duration: 4000
|
||||||
|
});
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
// this.vocObj.playAudio({
|
// this.vocObj.playAudio({
|
||||||
// type: 1,
|
// type: 1,
|
||||||
// name: 'button_media.wav'
|
// name: 'button_media.wav'
|
||||||
@ -1029,13 +1048,7 @@ struct Index {
|
|||||||
router.back()
|
router.back()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (this.judgeConfigObj['344'] == 1) {
|
|
||||||
Prompt.showToast({
|
|
||||||
message: '考试未结束,不允许手动退出!',
|
|
||||||
duration: 4000
|
|
||||||
});
|
|
||||||
return
|
|
||||||
}
|
|
||||||
this.endPopupVisible = false;
|
this.endPopupVisible = false;
|
||||||
this.loadingPopupVisible = true
|
this.loadingPopupVisible = true
|
||||||
clearInterval(this.timer);
|
clearInterval(this.timer);
|
||||||
@ -1427,7 +1440,7 @@ struct Index {
|
|||||||
// 必考项目除靠边停车是否全部完成
|
// 必考项目除靠边停车是否全部完成
|
||||||
@State isRequiredProjectsEnd: boolean = false;
|
@State isRequiredProjectsEnd: boolean = false;
|
||||||
// 考试项目是否全部完成
|
// 考试项目是否全部完成
|
||||||
// @State isAllProjectsEnd: boolean = false;
|
@State isAllProjectsEnd: boolean = false;
|
||||||
@State lane: LANE = { road: '', num: 0, count: 0 }
|
@State lane: LANE = { road: '', num: 0, count: 0 }
|
||||||
@State roadData: Object = {};
|
@State roadData: Object = {};
|
||||||
//定位差分状态时候正常
|
//定位差分状态时候正常
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user