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
53b71268
authored
2018-03-28 15:34:22 +0800
by
Zelig
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
贷后 还款管理 编辑
1 parent
5d4817be
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
72 additions
and
2 deletions
application/controllers/Loan.php
application/hooks/CheckLogin.php
application/libraries/Configure/Configure.php
application/libraries/Configure/drivers/Configure_enum.php
application/libraries/Enum/Enum.php
application/libraries/Enum/drivers/Enum_repaymentPlan.php
application/views/loan/还款编辑.php
application/controllers/Loan.php
View file @
53b7126
...
...
@@ -45,11 +45,20 @@ class Loan extends CI_Controller {
}
}
public
function
edit
(
$state
=
1
)
public
function
edit
(
$state
=
1
,
$id
=
null
)
{
$this
->
load
->
driver
(
'enum'
);
$this
->
load
->
driver
(
'configure'
);
switch
(
$state
)
{
case
1
:
$this
->
load
->
view
(
'/loan/还款编辑'
);
$url
=
$this
->
config
->
item
(
'apiBaseUrl'
)
.
'loanAfter/repaymentPlan/'
.
$id
;
$result
=
file_get_contents
(
$url
);
$json
=
json_decode
(
$result
);
$ret
=
$json
->
data
;
$ret
->
enumRepayStatus
=
$this
->
enum
->
repaymentPlan
->
status
();
$this
->
load
->
view
(
'/loan/还款编辑'
,
$ret
);
break
;
case
2
:
$this
->
load
->
view
(
'/loan/催收编辑'
);
...
...
application/hooks/CheckLogin.php
View file @
53b7126
application/libraries/Configure/Configure.php
0 → 100644
View file @
53b7126
<?php
class
Configure
extends
CI_Driver_Library
{
public
function
__construct
()
{
$this
->
valid_drivers
=
[
'enum'
];
}
}
application/libraries/Configure/drivers/Configure_enum.php
0 → 100644
View file @
53b7126
<?php
class
Configure_enum
extends
CI_Driver
{
public
$CI
;
public
function
__construct
()
{
$this
->
CI
=
&
get_instance
();
}
public
function
repayment
()
{
$url
=
$this
->
CI
->
config
->
item
(
'apiBaseUrl'
)
.
'config/enum/repayment'
;
$result
=
file_get_contents
(
$url
);
$json
=
json_decode
(
$result
);
$ret
=
$json
->
data
;
return
$ret
;
}
}
application/libraries/Enum/Enum.php
0 → 100644
View file @
53b7126
<?php
class
Enum
extends
CI_Driver_Library
{
public
function
__construct
()
{
$this
->
valid_drivers
=
[
'repaymentPlan'
];
}
}
application/libraries/Enum/drivers/Enum_repaymentPlan.php
0 → 100644
View file @
53b7126
<?php
class
Enum_repaymentPlan
extends
CI_Driver
{
public
$CI
;
public
function
__construct
()
{
$this
->
CI
=
&
get_instance
();
}
public
function
status
()
{
$url
=
$this
->
CI
->
config
->
item
(
'apiBaseUrl'
)
.
'enum/repaymentPlan/status'
;
$result
=
file_get_contents
(
$url
);
$json
=
json_decode
(
$result
);
$ret
=
$json
->
data
;
return
$ret
;
}
public
function
source
()
{
$url
=
$this
->
CI
->
config
->
item
(
'apiBaseUrl'
)
.
'enum/repaymentPlan/source'
;
$result
=
file_get_contents
(
$url
);
$json
=
json_decode
(
$result
);
$ret
=
$json
->
data
;
return
$ret
;
}
}
application/views/loan/还款编辑.php
View file @
53b7126
This diff is collapsed.
Click to expand it.
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