瀏覽代碼

更改页面判断

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();