| | |
| | | const $$ = require('../../utils/util'); |
| | | const app = getApp(); |
| | | |
| | | // 详情接口 |
| | | function getByIdApi(param) { |
| | | return $$.request({ |
| | | url: 'caseTask/listCaseFlow', |
| | | type: 'get', |
| | | submitData: param || {}, |
| | | service: 'mediate' |
| | | }) |
| | | } |
| | | |
| | | Page({ |
| | | |
| | | /** |
| | |
| | | ] |
| | | }, |
| | | |
| | | // 获取纠纷案件详情 |
| | | 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); |
| | | }, |
| | | }) |