yuliang %!s(int64=5) %!d(string=hai) anos
pai
achega
fa5a72986d
Modificáronse 2 ficheiros con 10 adicións e 3 borrados
  1. 5 1
      whepi-ui/templates/home/ribao.js
  2. 5 2
      whepi-ui/templates/lingyun/ribao.js

+ 5 - 1
whepi-ui/templates/home/ribao.js

@@ -1213,6 +1213,7 @@ function ribaoCommit() {
       ribao_refrash();
       ribao_refrash();
 
 
       clearShow();
       clearShow();
+      canSahngbao = true;
       document.getElementById("btn_shangbao").style['background-color'] = "#0bb20c";
       document.getElementById("btn_shangbao").style['background-color'] = "#0bb20c";
     },
     },
   });
   });
@@ -1430,8 +1431,11 @@ function addReport() {
     },
     },
     success: function (data) {
     success: function (data) {
       $.toast(data.msg);
       $.toast(data.msg);
-      if (data.msg == "操作成功")
+      if (data.msg == "操作成功"){
+        canSahngbao = false;
         document.getElementById("btn_shangbao").style['background-color'] = "#D9D9D9";
         document.getElementById("btn_shangbao").style['background-color'] = "#D9D9D9";
+      }
+
     },
     },
   });
   });
 }
 }

+ 5 - 2
whepi-ui/templates/lingyun/ribao.js

@@ -1150,8 +1150,11 @@ function addReport() {
         },
         },
         success: function (data) {
         success: function (data) {
             $.toast(data.msg);
             $.toast(data.msg);
-            if (data.msg == "操作成功")
-                document.getElementById("btn_shangbao").style['background-color'] = "#D9D9D9";
+            if (data.msg == "操作成功"){
+                canSahngbao = false;
+              document.getElementById("btn_shangbao").style['background-color'] = "#D9D9D9";
+            }
+
         },
         },
     });
     });
 }
 }