| | |
| | | data: { |
| | | isShow: false, |
| | | userInfo: {}, |
| | | causeList:[] |
| | | causeList: [] |
| | | }, |
| | | // 事件处理函数 |
| | | bindViewTap() { |
| | |
| | | |
| | | |
| | | onLoad() { |
| | | if( wx.getStorageSync('info')==''){ |
| | | if (wx.getStorageSync('info') == '') { |
| | | wx.redirectTo({ |
| | | url: '../user/loginInfo/index' |
| | | }) |
| | | } |
| | | wx.request( |
| | | wx.request( |
| | | { |
| | | url:user.globalData.url+"/wx/publicity?size="+"4", |
| | | method:"GET", |
| | | header:{'token':wx.getStorageSync('token')}, |
| | | success:(res)=>{ |
| | | console.log(res) |
| | | this.setData({ |
| | | causeList:res.data.data |
| | | }) |
| | | |
| | | } |
| | | }) |
| | | url: user.globalData.url + "/wx/publicity?size=" + "4", |
| | | method: "GET", |
| | | header: { 'token': wx.getStorageSync('token') }, |
| | | success: (res) => { |
| | | console.log(res) |
| | | this.setData({ |
| | | causeList: res.data.data |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | getReport() { |
| | | console.log("xxx") |
| | | wx.navigateTo({ |
| | | url: '../user/report/index' |
| | | }) |
| | | } |
| | | ,getPublicty(){ |
| | | }, |
| | | getPublicty() { |
| | | console.log("publicty") |
| | | wx.navigateTo({ |
| | | url:'../user/pubulicty/index' |
| | | url: '../user/pubulicty/index' |
| | | }) |
| | | |
| | | } |
| | | ,getGroup(){ |
| | | }, |
| | | getGroup() { |
| | | console.log("group") |
| | | wx.navigateTo({ |
| | | url:'../user/group/index' |
| | | })} |
| | | ,getCause(){ |
| | | url: '../user/group/index' |
| | | }) |
| | | }, |
| | | getCause() { |
| | | console.log("cause") |
| | | wx.navigateTo({ |
| | | url:'../manager/cause/index' |
| | | url: '../manager/cause/index' |
| | | }) |
| | | } |
| | | ,getAudi(){ |
| | | }, |
| | | getAudi() { |
| | | console.log("myself") |
| | | wx.navigateTo({ |
| | | url:'../user/myself/index' |
| | | url: '../user/myself/index' |
| | | }) |
| | | } |
| | | ,more(){ |
| | | }, |
| | | more() { |
| | | console.log("myself") |
| | | wx.navigateTo({ |
| | | url:'../user/pubulicty/index' |
| | | url: '../user/pubulicty/index' |
| | | }) |
| | | } |
| | | }) |