| | |
| | | }) |
| | | return |
| | | } |
| | | |
| | | wx.request({ |
| | | url: loginInfo.globalData.url+"/wx/login", |
| | | data: { |
| | | "code": wx.getStorageSync('uesrCode'), |
| | | "phoneNumberCode": wx.getStorageSync('userPhoneNumberCode') |
| | | }, |
| | | method: "GET", |
| | | success: (res) => { |
| | | console.log(res); |
| | | wx.setStorageSync('token', res.data.data.token) |
| | | wx.setStorageSync('role', res.data.data.role) |
| | | wx.setStorageSync('id', res.data.data.id) |
| | | wx.setStorageSync('card',res.data.data.time) |
| | | console.log(res.data.data.id) |
| | | } |
| | | |
| | | }) |
| | | wx.request({ |
| | | url:loginInfo.globalData.url+"/wx/user/add", |
| | | method:"POST", |
| | |
| | | filePath: res.tempFiles[0].tempFilePath, |
| | | name: "file", |
| | | header: { |
| | | 'token': wx.getStorageSync('token'), |
| | | // 'token': wx.getStorageSync('token'), |
| | | 'content-type': 'application/json' |
| | | }, |
| | | success:(res)=>{ |