guojing 5 лет назад
Родитель
Сommit
2dbded14ed
1 измененных файлов с 29 добавлено и 24 удалено
  1. 29 24
      whepi-ui/templates/home/qiuzhu.ftl

+ 29 - 24
whepi-ui/templates/home/qiuzhu.ftl

@@ -188,30 +188,35 @@
              $("#qzf2").val()
              $("#qzf3").val()
              $("#qzf4").val()*/
-        var data = {}
-        var tep = JSON.stringify(data);
-        console.log(tep)
-        $.ajax({
-            url: '/home/home/addFimaly',
-            data: {
-                taskTitle: $("#Qzinput").val(),
-                taskTarget: $("#qzf2").val(),
-                remark: $("#remarks").val()
-            },
-            type: 'GET',
-            success: function (data) {
-                /*if ($('#notPlay')[0].style.display == 'none') {
-                    $('#play').toggle();
-                    $('#notPlay')[0].style.display = '';
-                } else {
-                    $('#play')[0].style.display = '';
-                    $('#notPlay')[0].style.display = 'none';
-                }*/
-            },
-            error: function () {
+        if ($("#Qzinput").val() == '') {
+            $('#play').toggle();
+            $('#notPlay')[0].style.display = '';
+            return alert('请输入');
+        }
+        /* var data = {}
+         var tep = JSON.stringify(data);
+         console.log(tep)
+         $.ajax({
+             url: '/home/home/addFimaly',
+             data: {
+                 taskTitle: $("#Qzinput").val(),
+                 taskTarget: $("#qzf2").val(),
+                 remark: $("#remarks").val()
+             },
+             type: 'GET',
+             success: function (data) {
+                 /!*if ($('#notPlay')[0].style.display == 'none') {
+                     $('#play').toggle();
+                     $('#notPlay')[0].style.display = '';
+                 } else {
+                     $('#play')[0].style.display = '';
+                     $('#notPlay')[0].style.display = 'none';
+                 }*!/
+             },
+             error: function () {
 
-            }
-        });
+             }
+         });*/
     }
 
     //我的求助的页面展示
@@ -219,7 +224,7 @@
         $('#valueQz').empty();//清除节点
         $.ajax({
             url: '/home/home/queryQzTask',
-            data: {taskStatus:status},
+            data: {taskStatus: status},
             type: 'GET',
             success: function (data) {
                 console.log(data);