burying-point.js 596 Bytes
require('../common');

function setContYas(params, flag) {
    params = $.extend({
        C_ID: window.queryString.yh_channel || window.cookie('yhChannel')
    }, params);

    if (window._yas && window._yas.sendCustomInfo) {
        window._yas.sendCustomInfo(params, flag);
    }
}

function countGoodsId() {
    var idStr = '';
    $('.installment-only .good-info').each(function(key, item) {
        if (key !== 0) {
            idStr += ',';
        }

        idStr += $(item).data('id');
    });

    return idStr;
}

exports.setContYas = setContYas;
exports.countGoodsId = countGoodsId;