| | |
| | | wx.login({ |
| | | success: (res) => { |
| | | console.log("code", res.code) |
| | | wx.setStorageSync('uesrCode', res.code) |
| | | wx.setStorageSync('userPhoneNumberCode',e.detail.code) |
| | | |
| | | wx.request({ |
| | | url:app.globalData.url+"/wx/checkIdentity", |
| | | data: { |
| | |
| | | method: "GET", |
| | | success:(res)=>{ |
| | | console.log(res); |
| | | if (res.data.data==0) { |
| | | wx.setStorageSync('phone', res.data.msg) |
| | | if (res.data.data==2) { |
| | | wx.redirectTo( |
| | | { |
| | | url: '../user/pubulicty/index' |
| | | // url: '../user/loginInfo/index' |
| | | } |
| | | ) |
| | | }else if(res.data.data==1){ |
| | | }else if(res.data.data==0){ |
| | | wx.redirectTo( |
| | | { |
| | | url: '../user/index' |