Authored by 张孝茹

数目判断

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