Authored by 王水玲

Merge branch 'feature/installment2a' into feature/buryingPoint

@@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
13 <input id="list-{{key}}" type="checkbox" class="installment-check-btn" {{#if isChecked}}checked{{/if}}/> 13 <input id="list-{{key}}" type="checkbox" class="installment-check-btn" {{#if isChecked}}checked{{/if}}/>
14 <label for="list-{{key}}"> 14 <label for="list-{{key}}">
15 <div class="cont"> 15 <div class="cont">
16 - <p>¥{{currNoFeeAmt}}</p> 16 + <p>¥{{currAmt}}</p>
17 <p>【全{{stage}}期】{{billInfo}}</p> 17 <p>【全{{stage}}期】{{billInfo}}</p>
18 </div> 18 </div>
19 </label> 19 </label>
@@ -50,10 +50,10 @@ $(CHECKBOX_SELECTOR + ':checkbox').click(function() { @@ -50,10 +50,10 @@ $(CHECKBOX_SELECTOR + ':checkbox').click(function() {
50 billNo = $(self).parent().data('billNo'), 50 billNo = $(self).parent().data('billNo'),
51 li = $('li[data-bill-no=' + billNo + ']'), 51 li = $('li[data-bill-no=' + billNo + ']'),
52 selection = li.find('input:checked'), 52 selection = li.find('input:checked'),
53 - lastIndex = li.eq(0).index(); 53 + lastIndex = li.eq(0).data('currterm');
54 54
55 selection.parent().each(function(index, sel) { 55 selection.parent().each(function(index, sel) {
56 - var key = $(sel).index(); 56 + var key = $(sel).data('currterm');
57 57
58 if ((key + 1) - lastIndex > 1) { 58 if ((key + 1) - lastIndex > 1) {
59 isSkipped = true; 59 isSkipped = true;