// pages/reviews/reviews.js

Page({
    data: {
      reviews: [
        {
          username: '用户A',
          rating: 5,
          comment: '非常满意,质量非常好!',
          timestamp: '2023-10-01 10:00'
        },
        {
          username: '用户B',
          rating: 4,
          comment: '不错,值得推荐!',
          timestamp: '2023-10-02 11:00'
        },
        {
          username: '用户C',
          rating: 3,
          comment: '一般般,还可以吧。',
          timestamp: '2023-10-03 12:00'
        },
        {
          username: '用户D',
          rating: 2,
          comment: '不太满意,有些问题。',
          timestamp: '2023-10-04 13:00'
        },
        {
          username: '用户E',
          rating: 1,
          comment: '非常不满意,不推荐购买!',
          timestamp: '2023-10-05 14:00'
        }
      ]
    },
  
    onLoad: function () {
      console.log('Reviews page loaded');
    },
  
    onBack: function () {
      wx.navigateBack();
    }
  });