1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
| // index.ts
| // 获取应用实例
| const memberDetail = getApp()
|
| Page({
| data: {
| reportDetail: {},
| isShow: false,
| causeList: [],
| causeIndex: 0,
| },
| // 事件处理函数
| bindViewTap() {
| wx.navigateTo({
| url: '../logs/logs',
| })
| },
| //查看图片
| 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
| console.log(this.data.reportDetail)
|
| },
| //通过
| // pass(){
| // wx.request(
| // {
| // url: memberDetail.globalData.url +"/report/audit" ,
| // method:"POST",
| // data:this.data.reportDetail,
| // header: { 'token':wx.getStorageSync('token') ,
| // 'content-type': 'application/json'
| // } ,success:(res)=>{
| // console.log(res)
| // wx.reLaunch({
| // url:'../../cause/index'
| // })
| // }
| // })
|
|
| // },
| onLoad(e) {
| console.log(e)
| wx.request(
| {
| url: memberDetail.globalData.url + "/wx/group/member/detail",
| method: "GET",
| data: {
| id: e.id
| },
| header: { 'token': wx.getStorageSync('token') },
| success: (res) => {
| 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({
| reportDetail: ress,
| images: imgs.map(i => memberDetail.globalData.imageUrl + '/img/' + i)
| })
| }
| })
| // wx.request(
| // {
| // url: managerReportDetail.globalData.url+ "/cause/getCauseList",
| // method: "GET",
| // // header: { 'token': wx.getStorageSync('token')},
| // success: (res) => {
| // this.setData({
| // causeList: res.data.data.records
| // })
| // }
| // })
| }
| })
|
|