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
| // pages/myRegisterFlow/index.js
| const $$ = require('../../utils/util');
| const app = getApp();
|
| // 详情接口
| function getByIdApi(param) {
| return $$.request({
| url: 'caseTask/listCaseFlow',
| type: 'get',
| submitData: param || {},
| service: 'mediate'
| })
| }
|
| Page({
|
| /**
| * 页面的初始数据
| */
| data: {
| imgUrl: $$.url.img,
| flows: [{
| title: '提交申请',
| status: '1',
| name1: '线上',
| name2: '2024-7-12 12:00',
| name3: '金融纠纷'
| }, {
| title: '事项办理',
| status: '2',
| name4: '2024-7-12 12:00',
| name5: '白云区新市街司法所'
| }, {
| title: '事项办结',
| status: '3',
| name6: '2024-7-12 12:00',
| name7: '1',
| name7_1: '化解成功'
| }
| // , {
| // title: '事项评价',
| // status: '4',
| // name8: '2024-7-12 12:00',
| // name9: '张孟宇',
| // name10: '4',
| // name11: '工作人员认真负责结案结果符合预期'
| // }
| ]
| },
|
| // 获取纠纷案件详情
| async getById(data) {
| $$.showLoading();
| const res = await getByIdApi({
| caseId: data.caseId
| });
| $$.hideLoading();
| if (res.type) {
| let data = res.data || [];
| this.setData({
| flows: data
| });
| }
| },
|
| /**
| * 生命周期函数--监听页面加载
| */
| onLoad(options) {
| this.getById(options);
| },
| })
|
|