Authored by zhangxiaoru

editorial

... ... @@ -198,7 +198,7 @@ let addComment = (req, res, next) => {
let id = req.body.id;
let content = req.body.content;
editorialModel.setCollect(id, uid, content).then((result) => {
editorialModel.addComment(id, uid, content).then((result) => {
res.json(result);
}).catch(next);
};
... ...
... ... @@ -19,13 +19,13 @@ $('.editorial-index-page').on('click', '.like-icon', function() {
var $this = $(this),
// prising = false,
msgId = $this.closest('.msg-content').data('id'),
msgId = $this.pardents('.msg-content').data('id'),
url;
// if (prising === msgId) {
// return;
// }
console.log(msgId)
console.log(msgId);
// prising = msgId;
... ...
... ... @@ -12,7 +12,7 @@ lazyLoad($('.content-msg img.lazy'));
$('.editorial-list-page').on('click', '.like-icon', function() {
var $this = $(this),
msgId = $this.closest('.msg-content').data('id'),
msgId = $this.parents('.msg-content').data('id'),
url;
if ($this.hasClass('liked')) {
... ...