2021-03-02 07:14:49 +00:00
|
|
|
// app.js
|
2021-03-07 17:09:11 +00:00
|
|
|
import request from './utils/request.js'
|
|
|
|
|
2021-03-02 07:14:49 +00:00
|
|
|
App({
|
|
|
|
onLaunch() {
|
2021-03-16 16:59:21 +00:00
|
|
|
|
2021-03-02 07:14:49 +00:00
|
|
|
// 展示本地存储能力
|
|
|
|
const logs = wx.getStorageSync('logs') || []
|
|
|
|
logs.unshift(Date.now())
|
|
|
|
wx.setStorageSync('logs', logs)
|
|
|
|
},
|
|
|
|
globalData: {
|
2021-03-16 16:59:21 +00:00
|
|
|
userInfo: null,
|
|
|
|
userBaseInfo: null,
|
2021-03-22 04:01:19 +00:00
|
|
|
userDocument: null,
|
2021-03-07 17:09:11 +00:00
|
|
|
loginTime: null,
|
|
|
|
login: false,
|
2021-03-20 17:48:56 +00:00
|
|
|
loginCallback: null,
|
2021-03-07 17:09:11 +00:00
|
|
|
appID: 'wxb915ee2a665fcb6c',
|
|
|
|
baseURL: 'http://localhost:8088'
|
2021-03-02 07:14:49 +00:00
|
|
|
}
|
|
|
|
})
|