| | |
| | | |
| | | Page({ |
| | | data: { |
| | | role:'', |
| | | role:0, |
| | | swcurrent: 0, |
| | | isShow: false, |
| | | userInfo: {}, |
| | |
| | | |
| | | |
| | | onLoad() { |
| | | this.setData({ |
| | | role:wx.getStorageSync('role') |
| | | }) |
| | | |
| | | |
| | | wx.request({ |
| | | url: user.globalData.url+"/wx/login", |
| | | data: { |
| | |
| | | method: "GET", |
| | | header: { 'token': wx.getStorageSync('token') }, |
| | | success: (res) => { |
| | | |
| | | this.setData({ |
| | | role:wx.getStorageSync('role') |
| | | }) |
| | | res.data.data.map(i => { |
| | | if (i.photoStr != null) { |
| | | i.photoStr = i.photoStr.split(",").map(i => user.globalData.imageUrl + "/img/" + i), |
| | | this.data.images = i.photoStr |
| | | } |
| | | i.releaseTime = i.releaseTime.replace(/-/g,"/") |
| | | }) |
| | | this.setData({ |
| | | causeList: res.data.data, |
| | |
| | | url: "pages/user/index" |
| | | }) |
| | | } |
| | | |
| | | |
| | | |
| | | }, |
| | | toDetailedInformation(){ |