| | |
| | | url: '../logs/logs', |
| | | }) |
| | | }, |
| | | //查看图片 |
| | | face(){ |
| | | wx.previewMedia({ |
| | | sources:[{url:managerCauseDetail.globalData.imageUrl+"/img/"+this.data.reportDetail.pic}] |
| | | }) |
| | | }, |
| | | //查看图片 |
| | | face() { |
| | | wx.previewMedia({ |
| | | sources: [{ url: managerCauseDetail.globalData.imageUrl + "/img/" + this.data.reportDetail.pic }] |
| | | }) |
| | | }, |
| | | //选择案件 |
| | | pickCause(e) { |
| | | this.data.reportDetail.causeId = this.data.causeList[e.detail.value].id |
| | |
| | | // }) |
| | | // } |
| | | // }) |
| | | |
| | | |
| | | // }, |
| | | |
| | | // }, |
| | | onLoad(e) { |
| | | console.log(e) |
| | | wx.request( |
| | | { |
| | | url:memberDetail.globalData.url+"/wx/group/member/detail", |
| | | url: memberDetail.globalData.url + "/wx/group/member/detail", |
| | | method: "GET", |
| | | data:{ |
| | | id:e.id |
| | | data: { |
| | | id: e.id |
| | | }, |
| | | header: { 'token':wx.getStorageSync('token') }, |
| | | header: { 'token': wx.getStorageSync('token') }, |
| | | success: (res) => { |
| | | var ress=res.data.data |
| | | ress.pic=memberDetail.globalData.imageUrl+"/img/"+ress.pic |
| | | this.setData({ |
| | | reportDetail:ress, |
| | | images:res.data.data.reportMaterials.split(",") |
| | | }) |
| | | |
| | | for (let index = 0; index < this.data.images.length; index++) { |
| | | if(this.data.images!=null&&this.data.images[index]!=""&&this.data.images!=undefined){ |
| | | this.data.images[index]=memberDetail.globalData.imageUrl+"/img/"+this.data.images[index] |
| | | } else{ |
| | | this.data.images=[] |
| | | } |
| | | var ress = res.data.data |
| | | ress.pic = memberDetail.globalData.imageUrl + "/img/" + ress.pic |
| | | let imgs = [] |
| | | if (ress.idCardMaterials != '') { |
| | | imgs.push(...ress.idCardMaterials.split(",")) |
| | | if (ress.contractMaterials != '') { |
| | | imgs.push(...ress.contractMaterials.split(",")) |
| | | if (ress.transactionMaterials != '') { |
| | | imgs.push(...ress.transactionMaterials.split(",")) |
| | | if (ress.elseMaterials != '') { |
| | | imgs.push(...ress.elseMaterials.split(",")) |
| | | } |
| | | } |
| | | } |
| | | } |
| | | this.setData({ |
| | | images:this.data.images |
| | | reportDetail: ress, |
| | | images: imgs.map(i => memberDetail.globalData.imageUrl + '/img/' + i) |
| | | }) |
| | | console.log(this.data.reportDetail) |
| | | } |
| | | }) |
| | | // wx.request( |