burying-point.js
714 Bytes
require('../common');
function setContYas(op, params, flag) {
params = $.extend({
C_ID: window.queryString.yh_channel || window.cookie('yhChannel')
}, params);
flag = flag === false ? flag : true;
if (window._yas && window._yas.sendCustomInfo) {
window._yas.sendCustomInfo({
op: op,
param: JSON.stringify(params)
}, flag);
}
}
function countGoodsId() {
var idStr = '';
$('.installment-only .good-info').each(function(key, item) {
if (key !== 0) {
idStr += ',';
}
idStr += $(item).data('goodId');
});
return idStr;
}
exports.setContYas = setContYas;
exports.countGoodsId = countGoodsId;