burying-point.js
927 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
require('../common');
function setContYas(operid, params, flag) {
params = $.extend({
C_ID: window.queryString.yh_channel || window.cookie('yhChannel')
}, params);
if (window._yas && window._yas.sendCustomInfo) {
var op,
appop;
if (typeof operid === 'object') {
op = operid.op;
appop = operid.appop;
} else if (typeof operid === 'string') {
op = operid;
}
window._yas.sendCustomInfo({
op: op,
appop: appop,
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;