()
| 17 | }, |
| 18 | |
| 19 | onLaunch() { |
| 20 | // 展示本地存储能力 |
| 21 | const logs = wx.getStorageSync('logs') || [] |
| 22 | logs.unshift(Date.now()) |
| 23 | wx.setStorageSync('logs', logs) |
| 24 | |
| 25 | |
| 26 | // 登录 |
| 27 | wx.login({ |
| 28 | success: res => { |
| 29 | // 发送 res.code 到后台换取 openId, sessionKey, unionId |
| 30 | } |
| 31 | }) |
| 32 | }, |
| 33 | globalData: { |
| 34 | userInfo: null |
| 35 | } |
nothing calls this directly
no outgoing calls
no test coverage detected