riku
2022-09-06 6235a7b6d65733c3e95492a2b02bf87bd94772f5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// app.js
App({
  onLaunch() {
    // 展示本地存储能力
    // const logs = wx.getStorageSync('logs') || []
    // logs.unshift(Date.now())
    // wx.setStorageSync('logs', logs)
 
    // 登录
    // wx.login({
    //   success: res => {
    //     // 发送 res.code 到后台换取 openId, sessionKey, unionId
    //   }
    // })
    console.log('onLaunch');
  },
  globalData: {
    userInfo: null,
    accessToken: null,
    isLogin: false
  }
})