...
|
...
|
@@ -167,7 +167,7 @@ class Comment extends Page { |
|
|
|
|
|
if (val.comment_num > 3) {
|
|
|
// 更多评论
|
|
|
let commentNum = parseInt(val.comment_num, 10) > 7 ? 10 : parseInt(val.comment_num, 10) + 3;
|
|
|
let commentNum = parseInt(val.comment_num, 10) > 10 ? 10 : parseInt(val.comment_num, 10);
|
|
|
let $moreComment = $(`
|
|
|
<div class="more-comment open-more" id="${val.id}">所有${commentNum}条评论 ▼</div>
|
|
|
<div class="more-comment close-more">收起评论 ▲</div>`);
|
...
|
...
|
|