Commit 23a0ac19754f1d4fe83442d7ff6a6eb5c28af88f

Authored by pengye
1 parent b6aa956b

no message

@@ -204,15 +204,15 @@ @@ -204,15 +204,15 @@
204 var loading = layer.load(1, {shade: [0.1, '#fff']}); 204 var loading = layer.load(1, {shade: [0.1, '#fff']});
205 $.post("{:url('Comment/addcommit')}", data.field, function (res) { 205 $.post("{:url('Comment/addcommit')}", data.field, function (res) {
206 layer.close(loading); 206 layer.close(loading);
207 - //alert(JSON.stringify(res));  
208 - if (res.code == 1) { 207 + alert(JSON.stringify(res));
  208 + /*if (res.code == 1) {
209 layer.msg(res.msg, {time: 1000, icon: 1}, function () { 209 layer.msg(res.msg, {time: 1000, icon: 1}, function () {
210 location.href = "{:url('CommentList')}"; 210 location.href = "{:url('CommentList')}";
211 }); 211 });
212 } else { 212 } else {
213 alert(res.msg); 213 alert(res.msg);
214 layer.msg(res.msg, {time: 1000, icon: 2}); 214 layer.msg(res.msg, {time: 1000, icon: 2});
215 - } 215 + }*/
216 }); 216 });
217 }) 217 })
218 }); 218 });