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
eadac62f
authored
2018-03-22 00:12:39 +0800
by
Zelig
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
利息计算
1 parent
7cbde467
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
application/views/tool/cal.php
application/views/tool/cal.php
View file @
eadac62
...
...
@@ -19,7 +19,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=
"1"
id=
"product"
>
<?php
foreach
(
$this
->
session
->
products
as
$k
=>
$v
)
:?>
<
option
data
-
repaymentMode
=
"<?=
$v->repaymentMode
?>"
data
-
loanDeadline
=
"<?=
$v->loanDeadline
?>"
value
=
"<?=
$v->id
?>"
><?=
$v
->
productName
?>
</option>
<?php
endforeach
;
?>
...
...
@@ -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=
""
>
<input
type=
"text"
class=
"form-control input-text"
value=
"
<?=
$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=
""
>
<input
type=
"text"
class=
"form-control input-text"
value=
"
<?=
$this
->
session
->
products
[
0
]
->
loanDeadline
;
?>
"
id=
"loanDeadline
"
>
</div>
</div>
</div>
...
...
@@ -72,5 +72,13 @@
</form>
<?php
$this
->
load
->
view
(
'common/footer'
);
?>
<script>
$
(
'#product'
).
change
(
function
()
{
var
data
=
$
(
this
).
find
(
':selected'
).
data
();
$
(
'#repaymentMode'
).
val
(
data
.
repaymentmode
);
$
(
'#loanDeadline'
).
val
(
data
.
loandeadline
);
})
</script>
</body>
<html>
...
...
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