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
69cb49a3
authored
2018-03-22 22:22:57 +0800
by
yangjianbin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
init
1 parent
237273ab
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
5 deletions
application/hooks/CheckLogin.php
application/views/tool/cal.php
application/views/tool/web.php
application/hooks/CheckLogin.php
View file @
69cb49a
...
...
@@ -40,6 +40,10 @@ class CheckLogin
$session
->
repaymentPlanSource
=
$this
->
getRepaymentPlanSource
();
}
if
(
!
$session
->
allRole
)
{
$session
->
allRole
=
$this
->
getAllRole
();
}
/*if (preg_match("/admin|base/i", uri_string())) {
if(!$this->CI->session->isadmin){
...
...
@@ -142,4 +146,16 @@ class CheckLogin
}
}
private
function
getAllRole
()
{
try
{
$url
=
$this
->
CI
->
config
->
item
(
'apiBaseUrl'
)
.
'system/role/getAllRole'
;
$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/tool/cal.php
View file @
69cb49a
...
...
@@ -33,11 +33,11 @@
</div>
<div
class=
"form-group col-sm-3 col-md-2"
>
<label>
借款期数
</label>
<input
type=
"text"
class=
"form-control input-text"
value=
"
<?=
$this
->
session
->
products
[
0
]
?
$this
->
session
->
products
[
0
]
->
repaymentMode
:
''
;
?>
"
id=
"repaymentMode"
>
<input
type=
"text"
class=
"form-control input-text"
readonly
value=
"
<?=
$this
->
session
->
products
[
0
]
?
$this
->
session
->
products
[
0
]
->
repaymentMode
:
''
;
?>
"
id=
"repaymentMode"
>
</div>
<div
class=
"form-group col-sm-3 col-md-2"
>
<label>
还款方式
</label>
<input
type=
"text"
class=
"form-control input-text"
value=
"
<?=
$this
->
session
->
products
[
0
]
?
$this
->
session
->
products
[
0
]
->
loanDeadline
:
''
;
?>
"
id=
"loanDeadline"
>
<input
type=
"text"
class=
"form-control input-text"
readonly
value=
"
<?=
$this
->
session
->
products
[
0
]
?
$this
->
session
->
products
[
0
]
->
loanDeadline
:
''
;
?>
"
id=
"loanDeadline"
>
</div>
</div>
</div>
...
...
@@ -63,7 +63,7 @@
<div
class=
"row cl pb-20 col-sm-12"
>
<div
class=
"col-sm-offset-4 col-sm-2"
>
<input
class=
"btn btn-primary btn-block"
value=
"计算"
type=
"
submit
"
>
<input
class=
"btn btn-primary btn-block"
value=
"计算"
type=
"
button
"
>
</div>
<div
class=
"col-sm-2"
>
<input
class=
"btn btn-warning btn-block"
value=
"重置"
type=
"reset"
>
...
...
application/views/tool/web.php
View file @
69cb49a
...
...
@@ -18,7 +18,7 @@
</div>
<div
class=
"page-container"
>
<form
class=
""
onreset=
"resetHandler()"
>
<
!--<
form class="" onreset="resetHandler()">
<div class="row cl mb-20">
<div class="col-xs-4">
<input type="text" class="form-control input-text table_search" value="" placeholder="网站名称" column="1">
...
...
@@ -31,7 +31,7 @@
<div>
<input class="btn btn-warning radius" type="reset" value="重置">
</div>
</form>
</form>
-->
<div
class=
"body mt-20"
>
<table
class=
"table table-border table-bordered table-bg"
id=
"table"
width=
"100%"
>
<thead
class=
"text-c"
>
...
...
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