Merge remote-tracking branch 'origin/hyx_2025-01-13_xgf2.0' into hyx_2025-01-13_xgf2.0
commit
f1e3fb2e24
|
@ -39,12 +39,12 @@
|
|||
|
||||
<script>
|
||||
import updateVersion from '../../utils/updateVersion'
|
||||
import {
|
||||
setEntry,
|
||||
getIsUploadFace,
|
||||
getClassInfoByParams,
|
||||
getClassList
|
||||
} from '../../api'
|
||||
import {
|
||||
setEntry,
|
||||
getIsUploadFace,
|
||||
getClassInfoByParams,
|
||||
getClassList, getExamExercises
|
||||
} from '../../api'
|
||||
import {
|
||||
getStudentInfoApi,
|
||||
setEntryV1
|
||||
|
@ -217,6 +217,22 @@
|
|||
// 考试二维码方式进入 [type: 3 --> 考试二维码方式进入]
|
||||
if (store.getters.getVerification === '1') {
|
||||
if (this.classInfo) {
|
||||
if (this.classInfo.studystate !== "3") {
|
||||
uni.$u.toast("您还未入班签到,无法考试!")
|
||||
return;
|
||||
}
|
||||
if (this.classInfo.stageexamstate === "3") {
|
||||
uni.$u.toast("您已经考试通过,无需再次考试!")
|
||||
return;
|
||||
}
|
||||
const resData = await getExamExercises({
|
||||
stageexampaperinputId,
|
||||
classId,
|
||||
})
|
||||
if (resData.numberofexams <= 0) {
|
||||
uni.$u.toast("您的考试次数已用尽,无法再次考试!")
|
||||
return;
|
||||
}
|
||||
uni.$u.route({
|
||||
url: '/pages/train_management/face_authentication',
|
||||
params: {
|
||||
|
|
|
@ -145,6 +145,10 @@ export default {
|
|||
// 考试二维码方式进入 [type: 3 --> 考试二维码方式进入]
|
||||
if (classInfo) {
|
||||
console.log('classInfo :>> ', classInfo);
|
||||
if (classInfo.studystate !== "3") {
|
||||
uni.$u.toast("您还未入班签到,无法考试!")
|
||||
return;
|
||||
}
|
||||
if (classInfo.stageexamstate === "3") {
|
||||
uni.$u.toast("您已经考试通过,无需再次考试!")
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue