|
|
@ -964,6 +964,13 @@
|
|
|
|
window.location.href = `/system/exam`;
|
|
|
|
window.location.href = `/system/exam`;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
document.addEventListener('visibilitychange',documentVisililityChange)
|
|
|
|
|
|
|
|
function documentVisililityChange (){
|
|
|
|
|
|
|
|
alert("检测到您已切换页面,系统将进行强制提交");
|
|
|
|
|
|
|
|
if (document.visibilityState === 'hidden'){
|
|
|
|
|
|
|
|
submitMethid();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
function submitMethid(sub){
|
|
|
|
function submitMethid(sub){
|
|
|
|
var htmlText = '';
|
|
|
|
var htmlText = '';
|
|
|
|
var account = 0; //总得分
|
|
|
|
var account = 0; //总得分
|
|
|
@ -1149,7 +1156,6 @@
|
|
|
|
callInternalFunction: submitMethid
|
|
|
|
callInternalFunction: submitMethid
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</body>
|
|
|
|