소스 검색

更改页面判断

peiguo 4 년 전
부모
커밋
a8e517e120
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      whepi-ui/templates/home/ribao.js

+ 3 - 3
whepi-ui/templates/home/ribao.js

@@ -1589,9 +1589,6 @@ function ribaoCommit() {
   //loading
     var tempTimes = $.toast.prototype.defaults.duration
     $.toast.prototype.defaults.duration = 0
-    if(!$("#suspectedId").val()) {
-      suspectedId = "1";
-    }
     $.toast("处理中...", 'loading');
 
   $.ajax({
@@ -1674,6 +1671,9 @@ function ribaoCommit() {
         $('#txt_shangbaotime').empty();
         // $.toast("请点击上报");
       }
+      if(!$("#suspectedId").val()) {
+        suspectedId = "1";
+      }
         $.toast("操作成功");
       ribao_refrash();
       clearShow();