{"size": 879, "ext": "js", "max_stars_repo_path": "pages/shopDetail/shopDetail.js", "max_stars_repo_name": "Mrjen/oder", "max_stars_repo_stars_event_min_datetime": "2017-09-08T12:04:40.000Z", "max_stars_repo_stars_event_max_datetime": "2017-09-08T12:04:40.000Z", "max_issues_repo_path": "pages/shopDetail/shopDetail.js", "max_issues_repo_name": "Mrjen/oder", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "pages/shopDetail/shopDetail.js", "max_forks_repo_name": "Mrjen/oder", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 10.5903614458, "max_line_length": 34, "alphanum_fraction": 0.4835039818}
// pages/shopDetail/shopDetail.js
Page({

  /**
   * 页面的初始数据
   */
  data: {

  },

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

  },

  toMap(){
    wx.openLocation({
      latitude:  22.692156,
      longitude: 114.234543,
      scale: 18,
      name:"意点餐厅",
      address:"深圳大运软件小镇"
    })
  },

  callShop(){
    wx.makePhoneCall({
      phoneNumber: '13888888888'
    })
  },

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

  },

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

  },

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

  },

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

  },

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

  },

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

  },

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

  }
})
