odc.xiaohui
2023-05-12 4b48bacef8646cee8b66f5e10b0ed7124534e93e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// app.ts
App({
  globalData: {
        url:'https://qyqjzdd.cdqingyang.gov.cn/qyjz',
    //   url:'http://192.168.3.220:8080',
    //    url:'http://221.237.182.28:8443/api',
       imageUrl:'https://qyqjzdd.cdqingyang.gov.cn/minio'
    //    imageUrl:'http://192.168.3.220:8080/minio'
},
  onLaunch() {
    // 展示本地存储能力
    const logs = wx.getStorageSync('logs') || []
    logs.unshift(Date.now())
    wx.setStorageSync('logs', logs)
 
    // 登录
    // wx.login({
    //   success: res => {
    //     console.log(res.code)
    //     // 发送 res.code 到后台换取 openId, sessionKey, unionId
    //     console.log(res)
    //   },
   
    // })
  },
})