1、现在app.js定义一个数据,没有token的时候为false,有token的时候为true 2、引入全局数据 使用全局数据 3、用onGotUserInfo的时候(这是一个点击事件),调用wx.login 4、渲染用户数据信息