| | |
| | | }, |
| | | 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) |
| | |
| | | }}) |
| | | if (wx.getStorageSync('info') == '') { |
| | | wx.redirectTo({ |
| | | url: '../user/loginInfo/index' |
| | | url: "pages/user/index" |
| | | }) |
| | | } |
| | | |
| | | }, |
| | | toDetailedInformation(){ |
| | | console.log('报案详情'); |
| | | wx.navigateTo({ |
| | | url: '/pages/manager/report/index' |
| | | }) |
| | | }, |
| | | toManage(){ |
| | | console.log('案件管理'); |
| | | wx.navigateTo({ |
| | | url: '/pages/manager/cause/index' |
| | | }) |
| | | }, |
| | | getReport() { |
| | | console.log("xxx") |
| | | wx.navigateTo({ |
| | | url: '../user/report/index' |
| | | }) |