{"size": 1568, "ext": "js", "max_stars_repo_path": "somethingaboutcp/pages/home/home.js", "max_stars_repo_name": "fengshiqi1998/editself", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "somethingaboutcp/pages/home/home.js", "max_issues_repo_name": "fengshiqi1998/editself", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "somethingaboutcp/pages/home/home.js", "max_forks_repo_name": "fengshiqi1998/editself", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 14.1261261261, "max_line_length": 60, "alphanum_fraction": 0.4362244898}
// pages/home/home.js
const order = ['red', 'yellow', 'blue', 'green', 'red'];

Page({

  /**
   * 页面的初始数据
   */
  data: {
    typeList: [
      '热销','特惠专场','好吃推荐','国产优选','进口严选','休闲干果','换新不换心','农产品类'
    ],
    goodList: [
      {
        id: 1,
        img: '/assets/imgs/goods.png',
        title: '【新品尝鲜】美早大樱桃 200g',
        describe: '果中钻石，饱满爆汁',
        price: '￥25.88',
        discount: '￥12.99'
      },
      {
        id: 2,
        img: '/assets/imgs/goods.png',
        title: '【新品尝鲜】美早大樱桃 200g',
        describe: '果中钻石，饱满爆汁',
        price: '￥25.88',
        discount: '￥12.99'
      },
      {
        id: 2,
        img: '/assets/imgs/goods.png',
        title: '【新品尝鲜】美早大樱桃 200g',
        describe: '果中钻石，饱满爆汁',
        price: '￥25.88',
        discount: '￥12.99'
      },
      {
        id: 3,
        img: '/assets/imgs/goods.png',
        title: '【新品尝鲜】美早大樱桃 200g',
        describe: '果中钻石，饱满爆汁',
        price: '￥25.88',
        discount: '￥12.99'
      },
      
    ]
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  },

/**
 * 自定义函数
 */
  

})