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
f3e037fb
authored
2018-03-29 21:10:27 +0800
by
yangjianbin
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'develop' of
http://g.28ms.com:8000/yangjianbin/page
into develop
2 parents
8e67ac8f
f1666717
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
2 deletions
application/views/tool/cal.php
application/views/tool/cal.php
View file @
f3e037f
...
...
@@ -55,7 +55,7 @@
<div
class=
"panel panel-default mb-20"
>
<div
class=
"panel-header"
>
计算结果
</div>
<div
class=
"panel-body"
>
<div
class=
"panel-body
months
"
>
<div
class=
"row cl"
>
<div
class=
"form-group col-sm-3 col-md-2"
>
<label>
每月应还
</label>
...
...
@@ -124,7 +124,27 @@
layer
.
alert
(
msg
);
}
else
{
$
(
'#totalRepay'
).
val
(
data
.
data
.
totalRepay
);
$
(
'#totalAmount'
).
val
(
data
.
data
.
repayPlans
[
0
].
totalAmount
);
if
(
data
.
data
.
repayPlans
.
length
>
1
){
if
(
data
.
data
.
repayPlans
[
0
].
totalAmount
!==
data
.
data
.
repayPlans
[
1
].
totalAmount
){
$
(
'.months'
).
html
(
''
);
var
str
=
''
;
for
(
var
i
=
0
;
i
<
data
.
data
.
repayPlans
.
length
;
i
++
){
str
+=
'<div class="row cl">'
+
'<div class="form-group col-sm-3 col-md-2">'
+
'<label>每月应还</label>'
+
'<input type="text" id="totalAmount" class="form-control input-text" value="'
+
data
.
data
.
repayPlans
[
i
].
totalAmount
+
'" disabled>'
+
'<span class="glyphicon form-control-feedback">元</span>'
+
'</div>'
+
'</div>'
;
}
$
(
'.months'
).
html
(
str
);
}
}
else
{
$
(
'#totalAmount'
).
val
(
data
.
data
.
repayPlans
[
0
].
totalAmount
);
}
}
},
error
:
function
()
{
...
...
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