Authored by 王水玲

分期埋点修改

... ... @@ -10,6 +10,13 @@ var $ = require('yoho-jquery'),
bp = require('./burying-point');
var CHECKBOX_SELECTOR = '.repay-list input';
var curTermNo = {
1: 1,
3: 2,
6: 3,
9: 4,
12: 5
};
var repayment = new Repayment({
onGetSelection: function() {
var ret = [];
... ... @@ -81,7 +88,6 @@ $(window).load(function() {
});
});
// 统计yas 需要传的参数
function countYasParams() {
var curBillNo = '';
... ... @@ -97,9 +103,10 @@ function countYasParams() {
opt.billNoAll += (key !== 0) ? ',' : '';
opt.termNoAll += (key !== 0) ? ',' : '';
opt.billNoAll += curBillNo;
opt.termNoAll += $(item).parent().data('terms');
opt.termNoAll += curTermNo[$(item).parent().data('terms')];
}
});
return opt;
}
... ... @@ -122,7 +129,7 @@ $('.list-right a').on('click', function() {
bp.setContYas('YB_INST_TOPAY_INFO', {
POS_ID: $('.repayment-list-page').data('posId'),
ORDER_CODE: li.data('billNo'),
INST_STYLE: li.data('terms'),
INST_STYLE: curTermNo[li.data('terms')],
PERIODS: li.data('currterm')
});
});
... ...