forked from gzzfw/frontEnd/gzDyh

liuwh
2024-09-14 b39c972062c4d95554db7207aa4c9eb93d3adae8
gz-wxparty/pages/myRegisterFlow/index.js
@@ -2,6 +2,16 @@
const $$ = require('../../utils/util');
const app = getApp();
// 详情接口
function getByIdApi(param) {
  return $$.request({
    url: 'caseTask/listCaseFlow',
    type: 'get',
    submitData: param || {},
    service: 'mediate'
  })
}
Page({
  /**
@@ -38,10 +48,25 @@
    ]
  },
  // 获取纠纷案件详情
  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);
  },
})