Commit 9d4f8a2c8a44549cb7f342b8b4cbe64bea94c87f

Authored by pengye
1 parent 3e434bb7

no message

... ... @@ -36,6 +36,7 @@ class Comment extends Common
public function agent(){
if(Request::isAjax()){
$data = Request::except('file');
return $data;
$key= input('post.key') ? input('post.key') : "";
$limit = '&agent_name='.@$key['id'];
... ...
... ... @@ -134,15 +134,15 @@
var loading = layer.load(1, {shade: [0.1, '#fff']});
$.post("{:url('Comment/addcommit')}", data.field, function (res) {
layer.close(loading);
alert(res.code);
if (res.code == 1) {
alert(res);
/*if (res.code == 1) {
layer.msg(res.msg, {time: 1000, icon: 1}, function () {
location.href = "{:url('CommentList')}";
});
} else {
alert(res.msg);
layer.msg(res.msg, {time: 1000, icon: 2});
}
}*/
});
})
});
... ...