b5a338e0 by yangjianbin

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

2 parents 3cba4672 99b65276
...@@ -125,7 +125,8 @@ ...@@ -125,7 +125,8 @@
125 } else { 125 } else {
126 $('#totalRepay').val(data.data.totalRepay); 126 $('#totalRepay').val(data.data.totalRepay);
127 if(data.data.repayPlans.length > 1){ 127 if(data.data.repayPlans.length > 1){
128 if(data.data.repayPlans[0].totalAmount != data.data.repayPlans[1].totalAmount){ 128 var len = data.data.repayPlans.length-1;
129 if(data.data.repayPlans[0].totalAmount != data.data.repayPlans[len].totalAmount){
129 $('.months').html(''); 130 $('.months').html('');
130 var str = ''; 131 var str = '';
131 for(var i=0;i<data.data.repayPlans.length;i++){ 132 for(var i=0;i<data.data.repayPlans.length;i++){
...@@ -138,11 +139,28 @@ ...@@ -138,11 +139,28 @@
138 '</div>'; 139 '</div>';
139 } 140 }
140 $('.months').html(str); 141 $('.months').html(str);
142 }else{
143 str1 = '<div class="row cl">'+
144 '<div class="form-group col-sm-3 col-md-2">'+
145 '<label>每月应还</label>'+
146 '<input type="text" id="totalAmount" class="form-control input-text" value="'+data.data.repayPlans[0].totalAmount+'" disabled>'+
147 '<span class="glyphicon form-control-feedback">元</span>'+
148 '</div>'+
149 '</div>';
150 $('.months').html(str1);
141 } 151 }
142 152
143 153
144 }else{ 154 }else{
145 $('#totalAmount').val(data.data.repayPlans[0].totalAmount); 155 str1 = '<div class="row cl">'+
156 '<div class="form-group col-sm-3 col-md-2">'+
157 '<label>每月应还</label>'+
158 '<input type="text" id="totalAmount" class="form-control input-text" value="'+data.data.repayPlans[0].totalAmount+'" disabled>'+
159 '<span class="glyphicon form-control-feedback">元</span>'+
160 '</div>'+
161 '</div>';
162 $('.months').html(str1);
163 // $('#totalAmount').val(data.data.repayPlans[0].totalAmount);
146 } 164 }
147 165
148 } 166 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!