瀏覽代碼

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

Michael Wang 6 年之前
父節點
當前提交
1c026d1e5b

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

@@ -135,7 +135,8 @@ export default {
 
 
 .nav {
 .nav {
   grid-area: 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;
   background-repeat: repeat;
   width: 180px;
   width: 180px;
   min-height: 100vh;
   min-height: 100vh;

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

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

二進制
src/features/Login/bg.jpg


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

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