Skip to content

Commit

Permalink
bug:fix->留言点赞失败。
Browse files Browse the repository at this point in the history
  • Loading branch information
jicg committed Nov 2, 2018
1 parent c26fddd commit 7bcfb82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion static/js/blog.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ layui.define(['element', 'form', 'laypage', 'jquery', 'laytpl', 'sysn'], functio
, avatar: ret.data[i].user.avatar || '/static/images/info-img.png'
, praise: ret.data[i].praise
, content: toText(ret.data[i].content)
, key: ret.data.key
, key: ret.data[i].key
};

//模板渲染
Expand Down
2 changes: 1 addition & 1 deletion views/comm/jstpl_msg.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="info-text">
<p class="title count">
<span class="name">{{ d.username }}</span>
<span class="info-img like" data-key="{{ d.key}}" data-type="message">
<span class="info-img like" data-key="{{ d.key }}" data-type="message">
<i class="layui-icon layui-icon-praise"></i>
<span class="value">{{ d.praise }}</span>
</span>
Expand Down

0 comments on commit 7bcfb82

Please sign in to comment.