| | |
| | | url: '../logs/logs', |
| | | }) |
| | | }, |
| | | //查看图片 |
| | | face(){ |
| | | wx.previewMedia({ |
| | | sources:[{url:managerCauseDetail.globalData.imageUrl+"/img/"+this.data.reportDetail.pic}] |
| | | }) |
| | | }, |
| | | //查看图片 |
| | | face(e) { |
| | | console.log(e.currentTarget.dataset.img); |
| | | wx.previewMedia({ |
| | | sources: [{ url: e.currentTarget.dataset.img }] |
| | | }) |
| | | }, |
| | | //选择案件 |
| | | 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( |
| | |
| | | <!--index.wxml--> |
| | | <view> |
| | | <view class="id"> |
| | | <image class="face" src="{{reportDetail.pic}}"></image> |
| | | <view class="name" >{{reportDetail.reporterName}}</view> |
| | | <view class="mobile">{{reportDetail.mobile}}</view> |
| | | <view class="idcard">{{reportDetail.idcard}}</view> |
| | | </view> |
| | | <view class="id"> |
| | | <image class="face" src="{{reportDetail.pic}}"></image> |
| | | <view class="name">{{reportDetail.reporterName}}</view> |
| | | <view class="mobile">{{reportDetail.mobile}}</view> |
| | | <view class="idcard">{{reportDetail.idcard}}</view> |
| | | </view> |
| | | <view class="list1"> |
| | | <view class="font-wenzi">报案时间</view> |
| | | <view class="content">{{reportDetail.ctime}}</view> |
| | |
| | | <view class="content">{{reportDetail.reportMethod}}</view> |
| | | </view> |
| | | <view class="list1"> |
| | | |
| | | |
| | | <view class="font-wenzi">涉案金额</view> |
| | | <view class="content">{{reportDetail.amountInvolved}}</view> |
| | | </view> |
| | |
| | | </view> --> |
| | | <view class="list2"> |
| | | <view class="font-wenzi">补充信息</view> |
| | | <view class="font-wenzi1">{{reportDetail.information}}</view> |
| | | <view class="font-wenzi1">{{reportDetail.information||"暂无"}}</view> |
| | | </view> |
| | | <view class="list3"> |
| | | <view class="font-wenzi3">报案材料</view> |
| | | <view class= wx:for="{{images}}" wx:key="index"> |
| | | <image style="width: 100%;" src="{{item}}" mode="aspectFill"></image> |
| | | <view wx:for="{{images}}" wx:key="index"> |
| | | <image style="width: 100%;" src="{{item}}" mode="aspectFill" bindtap="face" data-img="{{item}}"></image> |
| | | </view> |
| | | |
| | | </view> |
| | | |
| | | <!-- <view class="list1"> |
| | |
| | | method: "GET", |
| | | header: { 'token': wx.getStorageSync('token') }, |
| | | success: (res) => { |
| | | let imgs = [] |
| | | if (res.data.data.idCardMaterials != '') { |
| | | imgs.push(...res.data.data.idCardMaterials.split(",")) |
| | | if (res.data.data.contractMaterials != '') { |
| | | imgs.push(...res.data.data.contractMaterials.split(",")) |
| | | if (res.data.data.transactionMaterials != '') { |
| | | imgs.push(...res.data.data.transactionMaterials.split(",")) |
| | | if (res.data.data.elseMaterials != '') { |
| | | imgs.push(...res.data.data.elseMaterials.split(",")) |
| | | } |
| | | } |
| | | } |
| | | } |
| | | this.setData({ |
| | | images: [...res.data.data.idCardMaterials.split(","), ...res.data.data.contractMaterials.split(","), ...res.data.data.elseMaterials.split(","), ...res.data.data.transactionMaterials.split(",")].map(i => userDetail.globalData.imageUrl + "/img/" + i) |
| | | images: imgs.map(i => userDetail.globalData.imageUrl + "/img/" + i) |
| | | }) |
| | | this.setData({ |
| | | reportDetail: res.data.data |