Commit 140a15fb3cfc78d8b4344719008a3e58d6b487fc

Authored by pengye
1 parent 5cb6e188

no message

@@ -149,15 +149,15 @@ @@ -149,15 +149,15 @@
149 var loading = layer.load(1, {shade: [0.1, '#fff']}); 149 var loading = layer.load(1, {shade: [0.1, '#fff']});
150 $.post("{:url('Comment/addcommit')}", data.field, function (res) { 150 $.post("{:url('Comment/addcommit')}", data.field, function (res) {
151 layer.close(loading); 151 layer.close(loading);
152 - alert(JSON.stringify(res));  
153 - /*if (res.code == 1) { 152 + //alert(JSON.stringify(res));
  153 + if (res.code == 1) {
154 layer.msg(res.msg, {time: 1000, icon: 1}, function () { 154 layer.msg(res.msg, {time: 1000, icon: 1}, function () {
155 location.href = "{:url('CommentList')}"; 155 location.href = "{:url('CommentList')}";
156 }); 156 });
157 } else { 157 } else {
158 alert(res.msg); 158 alert(res.msg);
159 layer.msg(res.msg, {time: 1000, icon: 2}); 159 layer.msg(res.msg, {time: 1000, icon: 2});
160 - }*/ 160 + }
161 }); 161 });
162 }) 162 })
163 }); 163 });