Authored by 王水玲

有货分支

... ... @@ -9,7 +9,7 @@
{{#data}}
<ul class="repay-list">
{{#each repaymentList}}
<li data-currfee="{{currFee}}" data-currNoFeeAmt="{{currNoFeeAmt}}" data-curramt="{{currAmt}}" data-billno="{{billNo}}" data-termNo={{currTerm}}>
<li data-currfee="{{currFee}}" data-currnofeeamt="{{currNoFeeAmt}}" data-curramt="{{currAmt}}" data-billno="{{billNo}}" data-termno={{currTerm}}>
<input id="list-{{billNo}}" type="checkbox" class="installment-check-btn" {{#if isChecked}}checked{{/if}}/>
<label for="list-{{billNo}}">
<div class="cont">
... ...
... ... @@ -18,4 +18,4 @@
<p class="serve-price" {{#if isCurrFee}}style="display:block;"{{/if}}>含服务费¥<span class="curr-fee">{{round currFeeCount}}</span></p>
</label>
<a href="" class="repayment-btn">立即还款</a>
</div>
</div>
\ No newline at end of file
... ...
... ... @@ -18,16 +18,19 @@ var repayment = new Repayment({
var data = {
index: li.index(),
orderCode: li.attr('data-billno'),
termNo: li.attr('data-termNo'),
amount: parseFloat(li.attr('data-currNoFeeAmt')),
fee: parseFloat(li.attr('data-currfee')) + 0
orderCode: parseFloat(li.data('billno')),
termNo: parseFloat(li.data('termno')),
amount: parseFloat(li.data('currnofeeamt')),
fee: parseFloat(li.data('currfee')) + 0
};
ret.push(data);
});
return ret;
},
onGetSelectableCount: function() {
return $(CHECKBOX_SELECTOR).length;
},
onDeselectAll: function() {
$(`${CHECKBOX_SELECTOR}:checked`).prop('checked', false);
return [];
... ... @@ -65,8 +68,3 @@ $(CHECKBOX_SELECTOR + ':checkbox').click(function() {
});
repayment.update();
// 跳转到还款详情
window.jumpDetail = function(id) {
location.href = '/home/installment/repay/detail?id=' + id;
};
... ...
... ... @@ -165,4 +165,9 @@ Repayment.prototype.update = function() {
}
};
// 跳转到还款详情
window.jumpDetail = function(id) {
location.href = '/home/installment/repay/detail?id=' + id;
};
module.exports = Repayment;
... ...