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
06180dc5
authored
2018-03-23 21:15:06 +0800
by
yangjianbin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
init
1 parent
f100010a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
139 additions
and
12 deletions
application/hooks/CheckLogin.php
application/views/user/header.php
application/views/work/申请信息/借款人信息.php
application/hooks/CheckLogin.php
View file @
06180dc
...
...
@@ -36,7 +36,7 @@ class CheckLogin
$session
->
repaymentPlans
=
$this
->
getRepaymentPlans
();
}
if
(
!
$session
->
repaymentPlanSource
)
{
if
(
!
$session
->
repaymentPlanSource
)
{
$session
->
repaymentPlanSource
=
$this
->
getRepaymentPlanSource
();
}
...
...
@@ -44,7 +44,37 @@ class CheckLogin
$session
->
allRole
=
$this
->
getAllRole
();
}
if
(
!
$session
->
relationEnum
)
{
$session
->
relationEnum
=
$this
->
getRelationEnum
();
}
if
(
!
$session
->
contactTypeEnum
)
{
$session
->
contactTypeEnum
=
$this
->
getContactTypeEnum
();
}
if
(
!
$session
->
dwellEnum
)
{
$session
->
dwellEnum
=
$this
->
getDwellEnum
();
}
if
(
!
$session
->
educationEnum
)
{
$session
->
educationEnum
=
$this
->
getEducationEnum
();
}
if
(
!
$session
->
jobTypeEnum
)
{
$session
->
jobTypeEnum
=
$this
->
getJobTypeEnum
();
}
if
(
!
$session
->
marryEnum
)
{
$session
->
marryEnum
=
$this
->
getMarryEnum
();
}
if
(
!
$session
->
unitEnum
)
{
$session
->
unitEnum
=
$this
->
getUnitEnum
();
}
if
(
!
$session
->
wagePaymentFormEnum
)
{
$session
->
wagePaymentFormEnum
=
$this
->
getWagePaymentFormEnum
();
}
/*if (preg_match("/admin|base/i", uri_string())) {
if(!$this->CI->session->isadmin){
redirect('login');
...
...
@@ -124,7 +154,8 @@ class CheckLogin
}
}
private
function
getRepaymentPlans
(){
private
function
getRepaymentPlans
()
{
try
{
$url
=
$this
->
CI
->
config
->
item
(
'apiBaseUrl'
)
.
'enum/repaymentPlan/status'
;
$res
=
json_decode
(
file_get_contents
(
$url
));
...
...
@@ -135,7 +166,8 @@ class CheckLogin
}
}
private
function
getRepaymentPlanSource
(){
private
function
getRepaymentPlanSource
()
{
try
{
$url
=
$this
->
CI
->
config
->
item
(
'apiBaseUrl'
)
.
'enum/repaymentPlan/source'
;
$res
=
json_decode
(
file_get_contents
(
$url
));
...
...
@@ -158,4 +190,100 @@ class CheckLogin
}
}
private
function
getRelationEnum
()
{
try
{
$url
=
$this
->
CI
->
config
->
item
(
'apiBaseUrl'
)
.
'client/enum/contact/relation'
;
$res
=
json_decode
(
file_get_contents
(
$url
));
$products
=
$res
->
data
;
return
$products
;
}
catch
(
Exception
$e
)
{
return
array
();
}
}
private
function
getContactTypeEnum
()
{
try
{
$url
=
$this
->
CI
->
config
->
item
(
'apiBaseUrl'
)
.
'client/enum/contact/type'
;
$res
=
json_decode
(
file_get_contents
(
$url
));
$products
=
$res
->
data
;
return
$products
;
}
catch
(
Exception
$e
)
{
return
array
();
}
}
private
function
getDwellEnum
()
{
try
{
$url
=
$this
->
CI
->
config
->
item
(
'apiBaseUrl'
)
.
'client/enum/dwell'
;
$res
=
json_decode
(
file_get_contents
(
$url
));
$products
=
$res
->
data
;
return
$products
;
}
catch
(
Exception
$e
)
{
return
array
();
}
}
private
function
getEducationEnum
()
{
try
{
$url
=
$this
->
CI
->
config
->
item
(
'apiBaseUrl'
)
.
'client/enum/education'
;
$res
=
json_decode
(
file_get_contents
(
$url
));
$products
=
$res
->
data
;
return
$products
;
}
catch
(
Exception
$e
)
{
return
array
();
}
}
private
function
getJobTypeEnum
()
{
try
{
$url
=
$this
->
CI
->
config
->
item
(
'apiBaseUrl'
)
.
'client/enum/jobType'
;
$res
=
json_decode
(
file_get_contents
(
$url
));
$products
=
$res
->
data
;
return
$products
;
}
catch
(
Exception
$e
)
{
return
array
();
}
}
private
function
getMarryEnum
()
{
try
{
$url
=
$this
->
CI
->
config
->
item
(
'apiBaseUrl'
)
.
'client/enum/marry'
;
$res
=
json_decode
(
file_get_contents
(
$url
));
$products
=
$res
->
data
;
return
$products
;
}
catch
(
Exception
$e
)
{
return
array
();
}
}
private
function
getUnitEnum
()
{
try
{
$url
=
$this
->
CI
->
config
->
item
(
'apiBaseUrl'
)
.
'client/enum/unit'
;
$res
=
json_decode
(
file_get_contents
(
$url
));
$products
=
$res
->
data
;
return
$products
;
}
catch
(
Exception
$e
)
{
return
array
();
}
}
private
function
getWagePaymentFormEnum
()
{
try
{
$url
=
$this
->
CI
->
config
->
item
(
'apiBaseUrl'
)
.
'client/enum/wagePaymentForm'
;
$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/user/header.php
View file @
06180dc
<div
class=
"cl pd-5 bg-1"
>
<
!--<
div class="cl pd-5 bg-1">
<span class="l">
<button
class=
"btn btn-primary radius"
onclick=
"loadIframe('
<?
=
site_url
(
'/user/info/1'
);
?>
', '资料清单');"
>
<button class="btn btn-primary radius" onclick="loadIframe('
<?
/*=site_url('/user/info/1');*/
?>
', '资料清单');">
<i class="Hui-iconfont"></i> 资料清单
</button>
<button
class=
"btn btn-primary radius"
onclick=
"loadIframe('
<?
=
site_url
(
'/user/info/2'
);
?>
', '基本信息');"
>
<button class="btn btn-primary radius" onclick="loadIframe('
<?
/*=site_url('/user/info/2');*/
?>
', '基本信息');">
<i class="Hui-iconfont"></i> 基本信息
</button>
<button
class=
"btn btn-primary radius"
onclick=
"loadIframe('
<?
=
site_url
(
'/user/info/3'
);
?>
', '人脉圈');"
>
<button class="btn btn-primary radius" onclick="loadIframe('
<?
/*=site_url('/user/info/3');*/
?>
', '人脉圈');">
<i class="Hui-iconfont"></i> 人脉圈
</button>
<button
class=
"btn btn-primary radius"
onclick=
"loadIframe('
<?
=
site_url
(
'/user/info/4'
);
?>
', '风险识别');"
>
<button class="btn btn-primary radius" onclick="loadIframe('
<?
/*=site_url('/user/info/4');*/
?>
', '风险识别');">
<i class="Hui-iconfont"></i> 风险识别
</button>
<button
class=
"btn btn-primary radius"
onclick=
"loadIframe('
<?
=
site_url
(
'/user/info/5'
);
?>
', '交易记录');"
>
<button class="btn btn-primary radius" onclick="loadIframe('
<?
/*=site_url('/user/info/5');*/
?>
', '交易记录');">
<i class="Hui-iconfont"></i> 交易记录
</button>
</span>
</div>
</div>
-->
<div
class=
"cl pd-5"
>
<table
class=
"table table-border table-bg"
>
...
...
application/views/work/申请信息/借款人信息.php
View file @
06180dc
...
...
@@ -53,8 +53,7 @@
<label>
有无本地房产
</label>
<span
class=
"form-control select-box"
>
<select
class=
"select"
size=
"1"
>
<option
value=
"1"
>
无
</option>
<option
value=
"2"
>
有
</option>
<option>
<?=
$clientInfoOutputVO
->
localHouse
?
'有'
:
''
?>
</option>
</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