| | |
| | | const userCause = getApp() |
| | | |
| | | Page({ |
| | | data: { |
| | | causeList:[], |
| | | isShow:false |
| | | }, |
| | | // 事件处理函数 |
| | | onLoad() { |
| | | wx.request( |
| | | { |
| | | url:userCause.globalData.url+"/wx/publicity", |
| | | method:"GET", |
| | | header:{'token':wx.getStorageSync('token')}, |
| | | success:(res)=>{ |
| | | console.log(res) |
| | | this.setData({ |
| | | causeList:res.data.data |
| | | }) |
| | | |
| | | } |
| | | }) |
| | | data: { |
| | | causeList: [], |
| | | isShow: false |
| | | }, |
| | | // 事件处理函数 |
| | | onLoad() { |
| | | wx.request( |
| | | { |
| | | url: userCause.globalData.url + "/wx/publicity", |
| | | method: "GET", |
| | | header: { 'token': wx.getStorageSync('token') }, |
| | | success: (res) => { |
| | | console.log(res) |
| | | this.setData({ |
| | | causeList: res.data.data |
| | | }) |
| | | } |
| | | }) |
| | | } |
| | | }) |