diff --git a/src/page/feed/feedDetail.vue b/src/page/feed/feedDetail.vue index 15a34fe3..2c3ec7f8 100644 --- a/src/page/feed/feedDetail.vue +++ b/src/page/feed/feedDetail.vue @@ -70,48 +70,47 @@ {{ likeCount | formatNum }}人点赞 -
- 发布于{{ time | time2tips }} - {{ feed.feed_view_count || 0 | formatNum }}浏览 -
- - -
- -

{{ reward.count | formatNum }}人打赏,共{{ (~~(reward.amount)/100) }}积分

- -
  • - -
  • -
  • - - - -
  • -
    +
    + 发布于{{ time | time2tips }} + {{ feed.feed_view_count || 0 | formatNum }}浏览
    - - -
    - - - - +
    + +
    + +

    {{ reward.count | formatNum }}人打赏,共{{ ~~reward.amount }}积分

    + +
  • + +
  • +
  • + + + +
  • +
    +
    + + +
    + + +
    ---没有更多--- @@ -339,13 +338,15 @@ export default { // }); getFeedComments({ feedId: this.feedID, after }) .then(({ data: { pinneds = [], comments = [] } }) => { - this.pinnedCom = after ? [...this.pinneds, ...pinneds] : pinneds; - if (comments && comments.length) { + !after && (this.pinnedCom = pinneds); + + if (comments.length) { (this.comments = after ? [...this.comments, ...comments] : comments), (this.maxComId = comments[comments.length - 1].id); } + comments.length === limit ? (this.noMoreCom = false) : (this.noMoreCom = true);