Browse Source

xielianghe

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

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

@@ -1006,10 +1006,10 @@ function ribao_cancel() {
 }
 
 function ribaoCommit() {
-  if (cantijiao==false) {
+  if (cantijiao == false) {
     return
   }
-  cantijiao==false
+  cantijiao == false
   var sf = $("#js_input_sf").attr("data-values") == undefined ? 3 : $("#js_input_sf").attr("data-values");
   if (listcx.length == 0 && sf == 1) {
     $.alert("请添加出行");
@@ -1220,6 +1220,7 @@ function ribaoCommit() {
     success: function (data) {
       if (data.msgReport == "2") {
         $.toast("家人姓名不能重复,如果重复,可以带上称呼");
+        cantijiao == false
         return;
       }
       if ($('#ribao')[0].style.display == 'none') {