Pārlūkot izejas kodu

修改登录页背景。非考试也,不交卷。

Michael Wang 6 gadi atpakaļ
vecāks
revīzija
1c026d1e5b

+ 2 - 1
src/components/MainLayout/MainLayout.vue

@@ -135,7 +135,8 @@ export default {
 
 .nav {
   grid-area: nav;
-  background-image: url(./nav-bg.jpg);
+  /* background-image: url(../../features/Login/bg.jpg); */
+  background-color: rgb(113, 113, 113);
   background-repeat: repeat;
   width: 180px;
   min-height: 100vh;

+ 2 - 2
src/features/Login/Login.vue

@@ -246,7 +246,7 @@ export default {
 }
 
 .school-logo {
-  margin-left: -300px;
+  margin-left: -600px;
 }
 
 .logo-size {
@@ -273,7 +273,7 @@ export default {
 
 .content {
   margin-top: 100px;
-  margin-left: 60%;
+  margin-left: 65%;
   width: 300px;
   border-radius: 6px;
   background-color: white;

BIN
src/features/Login/bg.jpg


+ 6 - 5
src/features/OnlineExam/Examing/ExamingHome.vue

@@ -68,6 +68,7 @@ export default {
       process.env.NODE_ENV === "production" &&
       /^\d+$/.test(this.$route.query.faceVerifyMinute)
     ) {
+      // TODO: 根据remaintime,计算是否还继续做活检。后台也可以计算。
       this.faceIdMsgTimeout = setTimeout(() => {
         this.toggleSnapNow();
         this.$Message.info("30秒后开始活体检测");
@@ -335,6 +336,11 @@ export default {
       } else {
         this.submitLock = true;
       }
+
+      if (this.$route.name !== "OnlineExamingHome") {
+        // 非考试页,不在交卷
+        return;
+      }
       try {
         const examId = this.$route.params.examId;
         const examRecordDataId = this.$route.params.examRecordDataId;
@@ -342,11 +348,6 @@ export default {
           "/api/ecs_oe_student/examControl/endExam"
         );
         if (res.status === 200) {
-          this.updateExamResult({
-            examRecordDataId: res.data.examRecordDataId,
-            isWarn: res.data.isWarn,
-            objectiveScore: res.data.objectiveScore
-          });
           this.$router.push({
             path: `/online-exam/exam/${examId}/examRecordData/${examRecordDataId}/end`
           });