12345678910111213141516171819202122232425262728 |
- // 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
- }
- })
- },
- globalData: {
- userInfo: null,
- openid: "",
- appid: "",
- sessionKey: "",
- suiteCode: "",
- customerId: "",
- },
- // mangerUrl: 'http://test2.hhrchina.com',
- mangerUrl: "http://192.168.18.156",
- // mangerUrl: "https://www.hhrchina.com",
- // mangerUrlPath: "https://www.hhrchina.com",
- })
|