Browse Source

202508121 考试逻辑调整

贾小兵 2 weeks ago
parent
commit
f48e27fcf4
1 changed files with 2 additions and 2 deletions
  1. 2 2
      public/assets/js/backend/student/collection.js

+ 2 - 2
public/assets/js/backend/student/collection.js

@@ -296,6 +296,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
                     title: '提示'
                 }, function (index) {
                     if(Config.is_fault){
+                        Layer.closeAll();
                         var indexnew =  Layer.load(2, {
                             shade: [0.5,'#393D49'],
                             content: '正在交卷中,请稍后...', // 这里是加载的文字
@@ -309,10 +310,9 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
                                 if(data.code==200){
                                     $("#update-form").submit();
                                 }else{
-                                    Layer.closeAll();
+                                    Layer.close(indexnew);
                                     Layer.alert(data.msg);
                                 }
-                                Layer.close(indexnew);
                             }
                         });
                         // Fast.api.ajax({