Commit 06e5a750dcc6e5b7e8514872560a67a6e1a503c2

Authored by pengye
1 parent 060bbab2

no message

... ... @@ -35,8 +35,8 @@ class Comment extends Common
$data['status'] = 1;
$succ = httpRequest(ON_LINE.'App.User.SetComment', 'post', $data);
return $data;
return $result = ['code'=>1,'msg'=>'评论成功!','data'=>1,'rel'=>1];#
#return $data;
return $result = ['code'=>1,'msg'=>'评论成功!','data'=>$data,'rel'=>1];#
}
return $this->fetch();
}
... ...
... ... @@ -32,7 +32,7 @@
</div>
<div class="layui-form-item">
<label class="layui-form-label">图片/视频</label>
<input type="hidden" name="enclosure[]['key']" id="pic" value=''>
<input type="hidden" name="enclosure[][key]" id="pic" value=''>
<div class="layui-input-block">
<div class="layui-upload">
<button type="button" class="layui-btn layui-btn-primary" id="adBtn"><i class="icon icon-upload3"></i>点击上传</button>
... ... @@ -148,14 +148,14 @@
$.post("{:url('Comment/addcommit')}", data.field, function (res) {
layer.close(loading);
alert(JSON.stringify(res));
/*if (res.code == 1) {
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});
}*/
}
});
})
});
... ...