diff --git a/pages/goods-detail/goods-detail.js b/pages/goods-detail/goods-detail.js index 19a1406..5c5ecfa 100644 --- a/pages/goods-detail/goods-detail.js +++ b/pages/goods-detail/goods-detail.js @@ -2722,8 +2722,8 @@ Page({ phoneNumber: phoneNumber // 添加用户标识信息,用于判断是否可以删除 }; - // 更新评论列表 - add new comment to the end - const comments = [...this.data.comments, newComment]; + // 更新评论列表 - add new comment to the beginning + const comments = [newComment, ...this.data.comments]; this.setData({ comments: comments,