Authored by 王水玲

有货分支

@@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
9 {{#data}} 9 {{#data}}
10 <ul class="repay-list"> 10 <ul class="repay-list">
11 {{#each repaymentList}} 11 {{#each repaymentList}}
12 - <li data-currfee="{{currFee}}" data-currNoFeeAmt="{{currNoFeeAmt}}" data-curramt="{{currAmt}}" data-billno="{{billNo}}" data-termNo={{currTerm}}> 12 + <li data-currfee="{{currFee}}" data-currnofeeamt="{{currNoFeeAmt}}" data-curramt="{{currAmt}}" data-billno="{{billNo}}" data-termno={{currTerm}}>
13 <input id="list-{{billNo}}" type="checkbox" class="installment-check-btn" {{#if isChecked}}checked{{/if}}/> 13 <input id="list-{{billNo}}" type="checkbox" class="installment-check-btn" {{#if isChecked}}checked{{/if}}/>
14 <label for="list-{{billNo}}"> 14 <label for="list-{{billNo}}">
15 <div class="cont"> 15 <div class="cont">
@@ -18,4 +18,4 @@ @@ -18,4 +18,4 @@
18 <p class="serve-price" {{#if isCurrFee}}style="display:block;"{{/if}}>含服务费¥<span class="curr-fee">{{round currFeeCount}}</span></p> 18 <p class="serve-price" {{#if isCurrFee}}style="display:block;"{{/if}}>含服务费¥<span class="curr-fee">{{round currFeeCount}}</span></p>
19 </label> 19 </label>
20 <a href="" class="repayment-btn">立即还款</a> 20 <a href="" class="repayment-btn">立即还款</a>
21 -</div> 21 +</div>
@@ -18,16 +18,19 @@ var repayment = new Repayment({ @@ -18,16 +18,19 @@ var repayment = new Repayment({
18 18
19 var data = { 19 var data = {
20 index: li.index(), 20 index: li.index(),
21 - orderCode: li.attr('data-billno'),  
22 - termNo: li.attr('data-termNo'),  
23 - amount: parseFloat(li.attr('data-currNoFeeAmt')),  
24 - fee: parseFloat(li.attr('data-currfee')) + 0 21 + orderCode: parseFloat(li.data('billno')),
  22 + termNo: parseFloat(li.data('termno')),
  23 + amount: parseFloat(li.data('currnofeeamt')),
  24 + fee: parseFloat(li.data('currfee')) + 0
25 }; 25 };
26 26
27 ret.push(data); 27 ret.push(data);
28 }); 28 });
29 return ret; 29 return ret;
30 }, 30 },
  31 + onGetSelectableCount: function() {
  32 + return $(CHECKBOX_SELECTOR).length;
  33 + },
31 onDeselectAll: function() { 34 onDeselectAll: function() {
32 $(`${CHECKBOX_SELECTOR}:checked`).prop('checked', false); 35 $(`${CHECKBOX_SELECTOR}:checked`).prop('checked', false);
33 return []; 36 return [];
@@ -65,8 +68,3 @@ $(CHECKBOX_SELECTOR + ':checkbox').click(function() { @@ -65,8 +68,3 @@ $(CHECKBOX_SELECTOR + ':checkbox').click(function() {
65 }); 68 });
66 69
67 repayment.update(); 70 repayment.update();
68 -  
69 -// 跳转到还款详情  
70 -window.jumpDetail = function(id) {  
71 - location.href = '/home/installment/repay/detail?id=' + id;  
72 -};  
@@ -165,4 +165,9 @@ Repayment.prototype.update = function() { @@ -165,4 +165,9 @@ Repayment.prototype.update = function() {
165 } 165 }
166 }; 166 };
167 167
  168 +// 跳转到还款详情
  169 +window.jumpDetail = function(id) {
  170 + location.href = '/home/installment/repay/detail?id=' + id;
  171 +};
  172 +
168 module.exports = Repayment; 173 module.exports = Repayment;