init
Showing
3 changed files
with
139 additions
and
12 deletions
| ... | @@ -36,7 +36,7 @@ class CheckLogin | ... | @@ -36,7 +36,7 @@ class CheckLogin |
| 36 | $session->repaymentPlans = $this->getRepaymentPlans(); | 36 | $session->repaymentPlans = $this->getRepaymentPlans(); |
| 37 | } | 37 | } |
| 38 | 38 | ||
| 39 | if(!$session->repaymentPlanSource){ | 39 | if (!$session->repaymentPlanSource) { |
| 40 | $session->repaymentPlanSource = $this->getRepaymentPlanSource(); | 40 | $session->repaymentPlanSource = $this->getRepaymentPlanSource(); |
| 41 | } | 41 | } |
| 42 | 42 | ||
| ... | @@ -44,7 +44,37 @@ class CheckLogin | ... | @@ -44,7 +44,37 @@ class CheckLogin |
| 44 | $session->allRole = $this->getAllRole(); | 44 | $session->allRole = $this->getAllRole(); |
| 45 | } | 45 | } |
| 46 | 46 | ||
| 47 | if (!$session->relationEnum) { | ||
| 48 | $session->relationEnum = $this->getRelationEnum(); | ||
| 49 | } | ||
| 50 | |||
| 51 | if (!$session->contactTypeEnum) { | ||
| 52 | $session->contactTypeEnum = $this->getContactTypeEnum(); | ||
| 53 | } | ||
| 54 | |||
| 55 | if (!$session->dwellEnum) { | ||
| 56 | $session->dwellEnum = $this->getDwellEnum(); | ||
| 57 | } | ||
| 58 | |||
| 59 | if (!$session->educationEnum) { | ||
| 60 | $session->educationEnum = $this->getEducationEnum(); | ||
| 61 | } | ||
| 62 | |||
| 63 | if (!$session->jobTypeEnum) { | ||
| 64 | $session->jobTypeEnum = $this->getJobTypeEnum(); | ||
| 65 | } | ||
| 66 | |||
| 67 | if (!$session->marryEnum) { | ||
| 68 | $session->marryEnum = $this->getMarryEnum(); | ||
| 69 | } | ||
| 70 | |||
| 71 | if (!$session->unitEnum) { | ||
| 72 | $session->unitEnum = $this->getUnitEnum(); | ||
| 73 | } | ||
| 47 | 74 | ||
| 75 | if (!$session->wagePaymentFormEnum) { | ||
| 76 | $session->wagePaymentFormEnum = $this->getWagePaymentFormEnum(); | ||
| 77 | } | ||
| 48 | /*if (preg_match("/admin|base/i", uri_string())) { | 78 | /*if (preg_match("/admin|base/i", uri_string())) { |
| 49 | if(!$this->CI->session->isadmin){ | 79 | if(!$this->CI->session->isadmin){ |
| 50 | redirect('login'); | 80 | redirect('login'); |
| ... | @@ -124,7 +154,8 @@ class CheckLogin | ... | @@ -124,7 +154,8 @@ class CheckLogin |
| 124 | } | 154 | } |
| 125 | } | 155 | } |
| 126 | 156 | ||
| 127 | private function getRepaymentPlans(){ | 157 | private function getRepaymentPlans() |
| 158 | { | ||
| 128 | try { | 159 | try { |
| 129 | $url = $this->CI->config->item('apiBaseUrl') . 'enum/repaymentPlan/status'; | 160 | $url = $this->CI->config->item('apiBaseUrl') . 'enum/repaymentPlan/status'; |
| 130 | $res = json_decode(file_get_contents($url)); | 161 | $res = json_decode(file_get_contents($url)); |
| ... | @@ -135,7 +166,8 @@ class CheckLogin | ... | @@ -135,7 +166,8 @@ class CheckLogin |
| 135 | } | 166 | } |
| 136 | } | 167 | } |
| 137 | 168 | ||
| 138 | private function getRepaymentPlanSource(){ | 169 | private function getRepaymentPlanSource() |
| 170 | { | ||
| 139 | try { | 171 | try { |
| 140 | $url = $this->CI->config->item('apiBaseUrl') . 'enum/repaymentPlan/source'; | 172 | $url = $this->CI->config->item('apiBaseUrl') . 'enum/repaymentPlan/source'; |
| 141 | $res = json_decode(file_get_contents($url)); | 173 | $res = json_decode(file_get_contents($url)); |
| ... | @@ -158,4 +190,100 @@ class CheckLogin | ... | @@ -158,4 +190,100 @@ class CheckLogin |
| 158 | } | 190 | } |
| 159 | } | 191 | } |
| 160 | 192 | ||
| 193 | private function getRelationEnum() | ||
| 194 | { | ||
| 195 | try { | ||
| 196 | $url = $this->CI->config->item('apiBaseUrl') . 'client/enum/contact/relation'; | ||
| 197 | $res = json_decode(file_get_contents($url)); | ||
| 198 | $products = $res->data; | ||
| 199 | return $products; | ||
| 200 | } catch (Exception $e) { | ||
| 201 | return array(); | ||
| 202 | } | ||
| 203 | } | ||
| 204 | |||
| 205 | private function getContactTypeEnum() | ||
| 206 | { | ||
| 207 | try { | ||
| 208 | $url = $this->CI->config->item('apiBaseUrl') . 'client/enum/contact/type'; | ||
| 209 | $res = json_decode(file_get_contents($url)); | ||
| 210 | $products = $res->data; | ||
| 211 | return $products; | ||
| 212 | } catch (Exception $e) { | ||
| 213 | return array(); | ||
| 214 | } | ||
| 215 | } | ||
| 216 | |||
| 217 | private function getDwellEnum() | ||
| 218 | { | ||
| 219 | try { | ||
| 220 | $url = $this->CI->config->item('apiBaseUrl') . 'client/enum/dwell'; | ||
| 221 | $res = json_decode(file_get_contents($url)); | ||
| 222 | $products = $res->data; | ||
| 223 | return $products; | ||
| 224 | } catch (Exception $e) { | ||
| 225 | return array(); | ||
| 226 | } | ||
| 227 | } | ||
| 228 | |||
| 229 | private function getEducationEnum() | ||
| 230 | { | ||
| 231 | try { | ||
| 232 | $url = $this->CI->config->item('apiBaseUrl') . 'client/enum/education'; | ||
| 233 | $res = json_decode(file_get_contents($url)); | ||
| 234 | $products = $res->data; | ||
| 235 | return $products; | ||
| 236 | } catch (Exception $e) { | ||
| 237 | return array(); | ||
| 238 | } | ||
| 239 | } | ||
| 240 | |||
| 241 | private function getJobTypeEnum() | ||
| 242 | { | ||
| 243 | try { | ||
| 244 | $url = $this->CI->config->item('apiBaseUrl') . 'client/enum/jobType'; | ||
| 245 | $res = json_decode(file_get_contents($url)); | ||
| 246 | $products = $res->data; | ||
| 247 | return $products; | ||
| 248 | } catch (Exception $e) { | ||
| 249 | return array(); | ||
| 250 | } | ||
| 251 | } | ||
| 252 | |||
| 253 | private function getMarryEnum() | ||
| 254 | { | ||
| 255 | try { | ||
| 256 | $url = $this->CI->config->item('apiBaseUrl') . 'client/enum/marry'; | ||
| 257 | $res = json_decode(file_get_contents($url)); | ||
| 258 | $products = $res->data; | ||
| 259 | return $products; | ||
| 260 | } catch (Exception $e) { | ||
| 261 | return array(); | ||
| 262 | } | ||
| 263 | } | ||
| 264 | |||
| 265 | private function getUnitEnum() | ||
| 266 | { | ||
| 267 | try { | ||
| 268 | $url = $this->CI->config->item('apiBaseUrl') . 'client/enum/unit'; | ||
| 269 | $res = json_decode(file_get_contents($url)); | ||
| 270 | $products = $res->data; | ||
| 271 | return $products; | ||
| 272 | } catch (Exception $e) { | ||
| 273 | return array(); | ||
| 274 | } | ||
| 275 | } | ||
| 276 | |||
| 277 | private function getWagePaymentFormEnum() | ||
| 278 | { | ||
| 279 | try { | ||
| 280 | $url = $this->CI->config->item('apiBaseUrl') . 'client/enum/wagePaymentForm'; | ||
| 281 | $res = json_decode(file_get_contents($url)); | ||
| 282 | $products = $res->data; | ||
| 283 | return $products; | ||
| 284 | } catch (Exception $e) { | ||
| 285 | return array(); | ||
| 286 | } | ||
| 287 | } | ||
| 288 | |||
| 161 | } | 289 | } |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| 1 | <div class="cl pd-5 bg-1"> | 1 | <!--<div class="cl pd-5 bg-1"> |
| 2 | <span class="l"> | 2 | <span class="l"> |
| 3 | <button class="btn btn-primary radius" onclick="loadIframe('<?=site_url('/user/info/1');?>', '资料清单');"> | 3 | <button class="btn btn-primary radius" onclick="loadIframe('<?/*=site_url('/user/info/1');*/?>', '资料清单');"> |
| 4 | <i class="Hui-iconfont"></i> 资料清单 | 4 | <i class="Hui-iconfont"></i> 资料清单 |
| 5 | </button> | 5 | </button> |
| 6 | <button class="btn btn-primary radius" onclick="loadIframe('<?=site_url('/user/info/2');?>', '基本信息');"> | 6 | <button class="btn btn-primary radius" onclick="loadIframe('<?/*=site_url('/user/info/2');*/?>', '基本信息');"> |
| 7 | <i class="Hui-iconfont"></i> 基本信息 | 7 | <i class="Hui-iconfont"></i> 基本信息 |
| 8 | </button> | 8 | </button> |
| 9 | <button class="btn btn-primary radius" onclick="loadIframe('<?=site_url('/user/info/3');?>', '人脉圈');"> | 9 | <button class="btn btn-primary radius" onclick="loadIframe('<?/*=site_url('/user/info/3');*/?>', '人脉圈');"> |
| 10 | <i class="Hui-iconfont"></i> 人脉圈 | 10 | <i class="Hui-iconfont"></i> 人脉圈 |
| 11 | </button> | 11 | </button> |
| 12 | <button class="btn btn-primary radius" onclick="loadIframe('<?=site_url('/user/info/4');?>', '风险识别');"> | 12 | <button class="btn btn-primary radius" onclick="loadIframe('<?/*=site_url('/user/info/4');*/?>', '风险识别');"> |
| 13 | <i class="Hui-iconfont"></i> 风险识别 | 13 | <i class="Hui-iconfont"></i> 风险识别 |
| 14 | </button> | 14 | </button> |
| 15 | <button class="btn btn-primary radius" onclick="loadIframe('<?=site_url('/user/info/5');?>', '交易记录');"> | 15 | <button class="btn btn-primary radius" onclick="loadIframe('<?/*=site_url('/user/info/5');*/?>', '交易记录');"> |
| 16 | <i class="Hui-iconfont"></i> 交易记录 | 16 | <i class="Hui-iconfont"></i> 交易记录 |
| 17 | </button> | 17 | </button> |
| 18 | </span> | 18 | </span> |
| 19 | </div> | 19 | </div>--> |
| 20 | 20 | ||
| 21 | <div class="cl pd-5"> | 21 | <div class="cl pd-5"> |
| 22 | <table class="table table-border table-bg"> | 22 | <table class="table table-border table-bg"> | ... | ... |
| ... | @@ -53,8 +53,7 @@ | ... | @@ -53,8 +53,7 @@ |
| 53 | <label>有无本地房产</label> | 53 | <label>有无本地房产</label> |
| 54 | <span class="form-control select-box"> | 54 | <span class="form-control select-box"> |
| 55 | <select class="select" size="1"> | 55 | <select class="select" size="1"> |
| 56 | <option value="1">无</option> | 56 | <option><?=$clientInfoOutputVO->localHouse ? '有' : ''?></option> |
| 57 | <option value="2">有</option> | ||
| 58 | </select> | 57 | </select> |
| 59 | </span> | 58 | </span> |
| 60 | </div> | 59 | </div> | ... | ... |
-
Please register or sign in to post a comment