| | |
| | | }, |
| | | // 事件处理函数 |
| | | onLoad() { |
| | | this.getMobile() |
| | | let info=wx.getStorageSync('card') |
| | | console.log(info); |
| | | // this.getMobile() |
| | | // let info=wx.getStorageSync('card') |
| | | // console.log(info); |
| | | |
| | | if (info) { |
| | | this.setData({ |
| | | cardFig :false |
| | | }) |
| | | }else{ |
| | | this.setData({ |
| | | cardFig :true |
| | | }) |
| | | } |
| | | // if (info) { |
| | | // this.setData({ |
| | | // cardFig :false |
| | | // }) |
| | | // }else{ |
| | | // this.setData({ |
| | | // cardFig :true |
| | | // }) |
| | | // } |
| | | wx.request( |
| | | { |
| | | url: userCause.globalData.url + "/wx/publicity", |
| | | method: "GET", |
| | | header: { 'token': wx.getStorageSync('token') }, |
| | | // header: { 'token': wx.getStorageSync('token') }, |
| | | success: (res) => { |
| | | |
| | | res.data.data.map(i => { |
| | | if (i.photoStr != null) { |
| | | i.photoStr = i.photoStr.split(",").map(i => userCause.globalData.imageUrl + "/img/" + i), |