text: const github = require('../../api/github.js')
  const app = getApp()
  
  Page({
    data: {
      motto: 'Hello World',
      userInfo: {},
      hasUserInfo: false,
      canIUse: wx.canIUse('button.open-type.getUserInfo')
    },
    //事件处理函数
    bindViewTap: function() {
      wx.navigateTo({
        url: '../logs/logs'
      })
    },
    onLoad: function() {
      github.users('kezhenxu94').get().then(res => {
        console.log(res)
      })
    }
  })