| this.wxRequest(this.globalData.httpUrl + 'getinfo', {},e=>{ | this.wxRequest(this.globalData.httpUrl + 'getinfo', {},e=>{ | ||||
| console.log(e) | console.log(e) | ||||
| if(e.code==201){//未注册跳到注册页面 | if(e.code==201){//未注册跳到注册页面 | ||||
| wx.getStorageSync('state', 0); | |||||
| wx.setStorageSync('state', 0); | |||||
| } else if (e.code == 202) {//已注册 | } else if (e.code == 202) {//已注册 | ||||
| wx.getStorageSync('state', 1); | |||||
| wx.setStorageSync('state', 1); | |||||
| this.globalData.userInfo = e.data; | this.globalData.userInfo = e.data; | ||||
| } | } | ||||
| if(this.globalData.userInfoBackFn){ | if(this.globalData.userInfoBackFn){ |