User 4 days ago
parent
commit
8355daeaa5
  1. 4
      pages/goods-detail/goods-detail.js

4
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,

Loading…
Cancel
Save