| | |
| | | "van-tabs": "@vant/weapp/tabs/index", |
| | | "van-uploader": "@vant/weapp/uploader/index", |
| | | "van-notice-bar": "@vant/weapp/notice-bar/index", |
| | | "van-overlay": "@vant/weapp/overlay/index" |
| | | "van-overlay": "@vant/weapp/overlay/index", |
| | | "van-image": "@vant/weapp/image/index" |
| | | }, |
| | | "window": { |
| | | "backgroundTextStyle": "light", |
| | |
| | | |
| | | Page({ |
| | | data: { |
| | | datae:null, |
| | | idCardMaterials:[], // 身份证 |
| | | contractMaterials:[],// 合同 |
| | | transactionMaterials:[],// 交易 |
| | | elseMaterials:[],// 其他 |
| | | reportDetail: {}, |
| | | isShow: false, |
| | | causeList: [], |
| | |
| | | }) |
| | | } |
| | | }, |
| | | onLoad(e) { |
| | | wx.request( |
| | | { |
| | | url: managerReportDetail.globalData.url + "/report/" + e.id, |
| | | method: "GET", |
| | | header: { 'token': wx.getStorageSync('token') }, |
| | | success: (res) => { |
| | | let contractMaterials = res.data.data.contractMaterials.split(",") |
| | | let elseMaterials = res.data.data.elseMaterials.split(",") |
| | | let idCardMaterials = res.data.data.idCardMaterials.split(",") |
| | | let transactionMaterials = res.data.data.transactionMaterials.split(",") |
| | | this.setData({ |
| | | reportDetail: res.data.data, |
| | | images: [...idCardMaterials,...contractMaterials,...transactionMaterials,...elseMaterials] |
| | | }) |
| | | 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] = managerReportDetail.globalData.imageUrl + "/img/" + this.data.images[index] |
| | | } else { |
| | | this.data.images = [] |
| | | } |
| | | } |
| | | this.setData({ |
| | | images: this.data.images |
| | | }) |
| | | } |
| | | }) |
| | | onChangeTabs(e) { |
| | | console.log(e); |
| | | |
| | | }, |
| | | onLoad(e) { |
| | | wx.request( |
| | | { |
| | | url: managerReportDetail.globalData.url + "/cause/getCauseList", |
| | | method: "GET", |
| | | header: { 'token': wx.getStorageSync('token') }, |
| | | success: (res) => { |
| | | this.data.causeList=res.data.data.records |
| | | this.setData({ |
| | | causeList: res.data.data.records |
| | | }) |
| | | this.getDataList(e) |
| | | } |
| | | }) |
| | | }, |
| | | getDataList(e){ |
| | | wx.request( |
| | | { |
| | | url: managerReportDetail.globalData.url + "/report/" + e.id, |
| | | method: "GET", |
| | | header: { 'token': wx.getStorageSync('token') }, |
| | | success: (res) => { |
| | | console.log(this.data.causeList); |
| | | this.setData({ |
| | | causeIndex:this.data.causeList.findIndex(val=>{return val.id == res.data.data.causeId}), |
| | | reportDetail: res.data.data, |
| | | |
| | | contractMaterials:res.data.data.contractMaterials.split(',').map(item=>{return item=managerReportDetail.globalData.imageUrl + "/img/" +item}), |
| | | idCardMaterials:res.data.data.idCardMaterials.split(',').map(item=>{return item=managerReportDetail.globalData.imageUrl + "/img/" +item}), |
| | | transactionMaterials:res.data.data.transactionMaterials.split(',').map(item=>{return item=managerReportDetail.globalData.imageUrl + "/img/" +item}), |
| | | elseMaterials:res.data.data.elseMaterials.split(',').map(item=>{return item=managerReportDetail.globalData.imageUrl + "/img/" +item}) |
| | | |
| | | }) |
| | | console.log(this.data.idCardMaterials); |
| | | |
| | | } |
| | | }) |
| | | } |
| | | }, |
| | | }) |
| | |
| | | <view class="content">{{reportDetail.cheatTime}}</view> |
| | | <view class="font-wenzi">被骗时间</view> |
| | | </view> |
| | | <view class="list1"> |
| | | <!-- <view class="list1"> |
| | | <view class="content">{{reportDetail.reportDescription}}</view> |
| | | <view class="font-wenzi">案件描述</view> |
| | | |
| | | </view> |
| | | <view class="list1"> |
| | | </view> --> |
| | | <!-- <view class="list1"> |
| | | <view class="font-wenzi">补充信息</view> |
| | | <view class="font-wenzi1">{{reportDetail.information}}</view> |
| | | </view> |
| | | </view> --> |
| | | <view class="list1"> |
| | | <view class="font-wenzi">报案材料</view> |
| | | <view class= wx:for="{{images}}" wx:key="index"> |
| | | <image lazy-load="true" style="width: 100%;" src="{{item}}" mode="aspectFill"></image> |
| | | </view> |
| | | |
| | | </view> |
| | | <van-tabs active="a" ellipsis="{{false}}" bind:change="onChangeTabs"> |
| | | <van-tab title="身份证正反面" name="a"> |
| | | <view class="images-view" wx:for="{{idCardMaterials}}" wx:key="index"> |
| | | <van-image class="images-list" width="100" height="100" src="{{item}}" /> |
| | | </view> |
| | | </van-tab> |
| | | <van-tab title="相关合同" name="b"> |
| | | <view class="images-view" wx:for="{{contractMaterials}}" wx:key="index"> |
| | | |
| | | <van-image class="images-list" width="100" height="100" src="{{item}}" /> |
| | | </view> |
| | | </van-tab> |
| | | <van-tab title="交易凭证" name="c"> |
| | | <view class="images-view" wx:for="{{transactionMaterials}}" wx:key="index"> |
| | | |
| | | <van-image class="images-list" width="100" height="100" src="{{item}}" /> |
| | | </view> |
| | | </van-tab> |
| | | <van-tab title="其他" name="d"> |
| | | <view class="images-view" wx:for="{{elseMaterials}}" wx:key="index"> |
| | | |
| | | <van-image class="images-list" width="100" height="100" src="{{item}}" /> |
| | | </view> |
| | | </van-tab> |
| | | </van-tabs> |
| | | <view class="list1"> |
| | | <picker bindchange="pickCause" class="content" value="{{causeIndex}}" range="{{causeList}}" range-key="{{'name'}}" mode="selector"> |
| | | <view class="picker"> |
| | |
| | | <view class="font-wenzi">关联案件</view> |
| | | </view> |
| | | <view class="button"> |
| | | <!-- <button size="mini" class="button3" bindtap="deny">驳 回</button> --> |
| | | <button size="mini" class="button3" bindtap="deny">驳 回</button> |
| | | <button class="button2" size="mini" bindtap="pass">通 过</button> |
| | | <button class="button1" size="mini" bindtap="cancel">取 消</button> |
| | | </view> |
| | |
| | | /**index.wxss**/ |
| | | .van-tab__pane{ |
| | | display: flex; |
| | | } |
| | | .images-list{ |
| | | margin-left: 0.5rem; |
| | | } |
| | | .list1{ |
| | | margin-top: 1rem; |
| | | padding: 0 1rem; |