57249554 by 杨建斌

init

1 parent 121f0132
......@@ -352,6 +352,24 @@ class Work extends CI_Controller
public function inquiry ($id)
{
$url = $this->config->item('apiBaseUrl') . 'order/detail/' . $id;
$result = file_get_contents($url);
$json = json_decode($result);
$ret = $json->data;
if (!$ret->clientUnitOutputVO) {
$ret->clientUnitOutputVO = array();
}
if (!$ret->clientContactOutputVOS) {
$ret->clientContactOutputVOS = array();
}
$data = array(
'clientInfoOutputVO' => $ret->clientInfoOutputVO,
'clientUnitOutputVO' => $ret->clientUnitOutputVO,
'clientContactOutputVOS' => $ret->clientContactOutputVOS,
'applyOrderVO' => $ret->applyOrderVO
);
$this->load->view('/work/尽调报告/index', compact('id'));
}
}
......
......@@ -8,8 +8,13 @@
</div>
<div class="tabCon">
<?php $this->load->view('work/尽调报告/打工'); ?>
<!-- <?php $this->load->view('work/尽调报告/法人'); ?> -->
<?php
if($clientUnitInputVO->jobType == 1){ //打工类
$this->load->view('work/尽调报告/打工');
} else { // 经营类
$this->load->view('work/尽调报告/法人');
}
?>
</div>
<div class="tabCon">
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!