b5a338e0 by yangjianbin

Merge branch 'develop' of http://g.28ms.com:8000/yangjianbin/page into develop

2 parents 3cba4672 99b65276
......@@ -125,7 +125,8 @@
} else {
$('#totalRepay').val(data.data.totalRepay);
if(data.data.repayPlans.length > 1){
if(data.data.repayPlans[0].totalAmount != data.data.repayPlans[1].totalAmount){
var len = data.data.repayPlans.length-1;
if(data.data.repayPlans[0].totalAmount != data.data.repayPlans[len].totalAmount){
$('.months').html('');
var str = '';
for(var i=0;i<data.data.repayPlans.length;i++){
......@@ -138,11 +139,28 @@
'</div>';
}
$('.months').html(str);
}else{
str1 = '<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[0].totalAmount+'" disabled>'+
'<span class="glyphicon form-control-feedback">元</span>'+
'</div>'+
'</div>';
$('.months').html(str1);
}
}else{
$('#totalAmount').val(data.data.repayPlans[0].totalAmount);
str1 = '<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[0].totalAmount+'" disabled>'+
'<span class="glyphicon form-control-feedback">元</span>'+
'</div>'+
'</div>';
$('.months').html(str1);
// $('#totalAmount').val(data.data.repayPlans[0].totalAmount);
}
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!