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>
|
<script>
|
||||||
import updateVersion from '../../utils/updateVersion'
|
import updateVersion from '../../utils/updateVersion'
|
||||||
import {
|
import {
|
||||||
setEntry,
|
setEntry,
|
||||||
getIsUploadFace,
|
getIsUploadFace,
|
||||||
getClassInfoByParams,
|
getClassInfoByParams,
|
||||||
getClassList
|
getClassList, getExamExercises
|
||||||
} from '../../api'
|
} from '../../api'
|
||||||
import {
|
import {
|
||||||
getStudentInfoApi,
|
getStudentInfoApi,
|
||||||
setEntryV1
|
setEntryV1
|
||||||
|
@ -217,6 +217,22 @@
|
||||||
// 考试二维码方式进入 [type: 3 --> 考试二维码方式进入]
|
// 考试二维码方式进入 [type: 3 --> 考试二维码方式进入]
|
||||||
if (store.getters.getVerification === '1') {
|
if (store.getters.getVerification === '1') {
|
||||||
if (this.classInfo) {
|
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({
|
uni.$u.route({
|
||||||
url: '/pages/train_management/face_authentication',
|
url: '/pages/train_management/face_authentication',
|
||||||
params: {
|
params: {
|
||||||
|
|
|
@ -145,6 +145,10 @@ export default {
|
||||||
// 考试二维码方式进入 [type: 3 --> 考试二维码方式进入]
|
// 考试二维码方式进入 [type: 3 --> 考试二维码方式进入]
|
||||||
if (classInfo) {
|
if (classInfo) {
|
||||||
console.log('classInfo :>> ', classInfo);
|
console.log('classInfo :>> ', classInfo);
|
||||||
|
if (classInfo.studystate !== "3") {
|
||||||
|
uni.$u.toast("您还未入班签到,无法考试!")
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (classInfo.stageexamstate === "3") {
|
if (classInfo.stageexamstate === "3") {
|
||||||
uni.$u.toast("您已经考试通过,无需再次考试!")
|
uni.$u.toast("您已经考试通过,无需再次考试!")
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue