12345678910111213141516171819202122232425262728293031323334353637 |
- App({
- globalData: {
- showAnimation: true,
- id: null,
- name: null,
- },
- onLaunch(options) {
- // if (wx.getStorageSync('openId')) {
- // wx.request({
- // url: 'http://info.windd.cn:8080/test/applet/isExist',
- // method: "GET",
- // data: {
- // appletsId: wx.getStorageSync('openId')
- // },
- // success: (res) => {
- // console.log(res, "000000000000000000");
- // if (res.data.code == 0) {
- // wx.switchTab({
- // url: '/pages/index/index',
- // })
- // }
- // }
- // })
- // } else {
- // }
- },
- onShow(options) {
- // Do something when show.
- },
- onHide() {
- // Do something when hide.
- },
- onError(msg) {
- console.log(msg)
- },
- })
|