Browse Source

xielianghe

lange 5 years ago
parent
commit
cc36bdb00b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      whepi-ui/templates/home/ribao.js

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

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