Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨建斌
/
page
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
1
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
95327550
authored
2018-03-24 13:37:58 +0800
by
Zelig
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'develop' of
http://g.28ms.com:8000/yangjianbin/page
into develop
2 parents
c8c0470f
7cc939af
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
72 additions
and
15 deletions
application/controllers/Work.php
application/hooks/CheckLogin.php
application/views/work/资料/资料补录.php
application/controllers/Work.php
View file @
9532755
...
...
@@ -104,8 +104,6 @@ class Work extends CI_Controller
$result
=
file_get_contents
(
$url
);
$json
=
json_decode
(
$result
);
$ret
=
$json
->
data
;
// print_r($ret);exit;
// var_dump($ret);exit;
if
(
!
$ret
->
clientUnitOutputVO
)
{
$ret
->
clientUnitOutputVO
=
array
();
}
...
...
@@ -133,7 +131,31 @@ class Work extends CI_Controller
*/
public
function
record
(
$id
=
null
)
{
$this
->
load
->
view
(
'work/资料/资料补录'
);
$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
();
}
$recordUrl
=
$this
->
config
->
item
(
'apiBaseUrl'
)
.
'order/orderOperatorRecord/'
.
$id
;
$result2
=
file_get_contents
(
$recordUrl
);
$json2
=
json_decode
(
$result2
);
$ret2
=
$json2
->
data
;
$data
=
array
(
'clientInfoOutputVO'
=>
$ret
->
clientInfoOutputVO
,
'clientUnitOutputVO'
=>
$ret
->
clientUnitOutputVO
,
'clientContactOutputVOS'
=>
$ret
->
clientContactOutputVOS
,
'applyOrderVO'
=>
$ret
->
applyOrderVO
,
'operatorRecord'
=>
$ret2
);
$this
->
load
->
view
(
'work/资料/资料补录'
,
$data
);
}
public
function
recorded
(
$id
=
null
)
...
...
application/hooks/CheckLogin.php
View file @
9532755
...
...
@@ -79,6 +79,13 @@ class CheckLogin
if
(
!
$session
->
genderEnum
)
{
$session
->
genderEnum
=
$this
->
getGenderEnum
();
}
if
(
!
$session
->
loanUseEnum
)
{
$session
->
loanUseEnum
=
$this
->
getLoanUseEnum
();
}
if
(
!
$session
->
loanNatureEnum
)
{
$session
->
loanNatureEnum
=
$this
->
getLoanNatureEnum
();
}
/*if (preg_match("/admin|base/i", uri_string())) {
if(!$this->CI->session->isadmin){
redirect('login');
...
...
@@ -302,4 +309,28 @@ class CheckLogin
}
}
private
function
getLoanUseEnum
()
{
try
{
$url
=
$this
->
CI
->
config
->
item
(
'apiBaseUrl'
)
.
'enum/loan/use'
;
$res
=
json_decode
(
file_get_contents
(
$url
));
$products
=
$res
->
data
;
return
$products
;
}
catch
(
Exception
$e
)
{
return
array
();
}
}
private
function
getLoanNatureEnum
()
{
try
{
$url
=
$this
->
CI
->
config
->
item
(
'apiBaseUrl'
)
.
'enum/loan/nature'
;
$res
=
json_decode
(
file_get_contents
(
$url
));
$products
=
$res
->
data
;
return
$products
;
}
catch
(
Exception
$e
)
{
return
array
();
}
}
}
\ No newline at end of file
...
...
application/views/work/资料/资料补录.php
View file @
9532755
...
...
@@ -67,14 +67,14 @@
<div
class=
"row cl"
>
<div
class=
"form-group col-sm-3 col-md-2"
>
<label>
姓名
</label>
<input
type=
"text"
class=
"form-control input-text"
value=
"
张三
"
>
<input
type=
"text"
class=
"form-control input-text"
value=
"
<?=
$clientInfoOutputVO
->
userName
?>
"
>
</div>
<div
class=
"form-group col-sm-3 col-md-2"
>
<label>
性别
</label>
<span
class=
"form-control select-box"
>
<select
class=
"select"
size=
"1"
>
<?php
foreach
(
$this
->
session
->
genderEnum
as
$k
=>
$v
)
:?>
<
option
value
=
"<?=
$k
?>"
><?=
$v
?>
</option>
<
option
<?=
$clientInfoOutputVO
->
gender
==
$k
?
'selected'
:
''
?>
value="
<?=
$k
?>
">
<?=
$v
?>
</option>
<?php
endforeach
;
?>
</select>
</span>
...
...
@@ -84,14 +84,14 @@
<span
class=
"form-control select-box"
>
<select
class=
"select"
size=
"1"
>
<?php
foreach
(
$this
->
session
->
marryEnum
as
$k
=>
$v
)
:?>
<
option
value
=
"<?=
$k
?>"
><?=
$v
?>
</option>
<
option
<?=
$clientInfoOutputVO
->
marriageState
==
$k
?
'selected'
:
''
?>
value="
<?=
$k
?>
">
<?=
$v
?>
</option>
<?php
endforeach
;
?>
</select>
</span>
</div>
<div
class=
"form-group col-sm-3 col-md-2"
>
<label>
出生日期
</label>
<input
type=
"text"
class=
"form-control input-text Wdate"
value=
"
2018-01-01
"
>
<input
type=
"text"
class=
"form-control input-text Wdate"
value=
"
<?=
$clientInfoOutputVO
->
birthDate
?>
"
>
</div>
</div>
...
...
@@ -101,29 +101,29 @@
<span
class=
"form-control select-box"
>
<select
class=
"select"
size=
"1"
>
<?php
foreach
(
$this
->
session
->
educationEnum
as
$k
=>
$v
)
:?>
<
option
value
=
"<?=
$k
?>"
><?=
$v
?>
</option>
<
option
<?=
$clientInfoOutputVO
->
educationDegree
==
$k
?
'selected'
:
''
?>
value="
<?=
$k
?>
">
<?=
$v
?>
</option>
<?php
endforeach
;
?>
</select>
</span>
</div>
<div
class=
"form-group col-sm-3 col-md-2"
>
<label>
身份证
</label>
<input
type=
"text"
class=
"form-control input-text"
value=
""
>
<input
type=
"text"
class=
"form-control input-text"
value=
"
<?=
$clientInfoOutputVO
->
idCard
?>
"
>
</div>
</div>
<div
class=
"row cl"
>
<div
class=
"form-group has-feedback col-sm-3 col-md-2"
>
<label>
月收入
</label>
<input
type=
"text"
class=
"form-control input-text"
value=
""
>
<input
type=
"text"
class=
"form-control input-text"
value=
"
<?=
$clientInfoOutputVO
->
monthlyIncome
?>
"
>
<span
class=
"glyphicon glyphicon-rmb form-control-feedback"
aria-hidden=
"true"
></span>
</div>
<div
class=
"form-group col-sm-3 col-md-2"
>
<label>
有无本地房产
</label>
<span
class=
"form-control select-box"
>
<select
class=
"select"
size=
"1"
>
<option
value=
"0"
>
无
</option>
<option
value=
"1"
>
有
</option>
<option
<?=
$clientInfoOutputVO
->
localHouse
==
$k
?
'selected'
:
''
?>
value=
"0"
>
无
</option>
<option
<?=
$clientInfoOutputVO
->
localHouse
==
$k
?
'selected'
:
''
?>
value=
"1"
>
有
</option>
</select>
</span>
</div>
...
...
@@ -348,7 +348,7 @@
<div
class=
"form-group col-sm-3 col-md-2"
>
<label>
还款方式
</label>
<span
class=
"form-control select-box"
>
<select
class=
"select"
size=
"1
"
>
<select
class=
"select"
size=
c"
"
>
<option
value=
"1"
></option>
</select>
</span>
...
...
@@ -357,7 +357,9 @@
<label>
贷款用途
</label>
<span
class=
"form-control select-box"
>
<select
class=
"select"
size=
"1"
>
<option
value=
"1"
></option>
<?php
foreach
(
$this
->
session
->
loanUseEnum
as
$k
=>
$v
)
:?>
<
option
value
=
"<?=
$k
?>"
><?=
$v
?>
</option>
<?php
endforeach
;
?>
</select>
</span>
</div>
...
...
@@ -381,7 +383,9 @@
<label>
贷款用途性质
</label>
<span
class=
"form-control select-box"
>
<select
class=
"select"
size=
"1"
>
<option
value=
"1"
></option>
<?php
foreach
(
$this
->
session
->
loanNatureEnum
as
$k
=>
$v
)
:?>
<
option
value
=
"<?=
$k
?>"
><?=
$v
?>
</option>
<?php
endforeach
;
?>
</select>
</span>
</div>
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment