{"size": 318, "ext": "js", "max_stars_repo_path": "components/photo/index.js", "max_stars_repo_name": "upcwangying/fafaer-mp", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "components/photo/index.js", "max_issues_repo_name": "upcwangying/fafaer-mp", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "components/photo/index.js", "max_forks_repo_name": "upcwangying/fafaer-mp", "max_forks_repo_forks_event_min_datetime": "2021-07-05T09:02:51.000Z", "max_forks_repo_forks_event_max_datetime": "2021-07-05T09:02:51.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 10.9655172414, "max_line_length": 44, "alphanum_fraction": 0.465408805}
// components/photo/index.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    photo: Object
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    previewImage() {
      const img = this.properties.photo.file
      wx.previewImage({
        urls: [img]
      })
    }
  }
})
