gov_propagandize/app.js

19 lines
498 B
JavaScript
Raw Normal View History

2025-01-02 17:31:12 +08:00
//app.js
2024-12-27 17:08:36 +08:00
App({
onLaunch() {
// 展示本地存储能力
2025-01-02 17:31:12 +08:00
// const logs = wx.getStorageSync('logs') || []
// logs.unshift(Date.now())
// wx.setStorageSync('logs', logs)
2024-12-27 17:08:36 +08:00
// 登录
wx.login({
success: res => {
// 发送 res.code 到后台换取 openId, sessionKey, unionId
}
})
},
globalData: {
2025-01-02 17:31:12 +08:00
userInfo: null,
2025-01-19 17:56:22 +08:00
imgPath: 'http://106.74.34.136:8084/daqi/route/file/true/'
2024-12-27 17:08:36 +08:00
}
})