...
|
...
|
@@ -141,12 +141,40 @@ $buyNowBtn.on('touchstart', function() { |
|
|
});
|
|
|
|
|
|
if (window._yas && window._yas.sendCustomInfo) {
|
|
|
let id = [],
|
|
|
skn = [],
|
|
|
num = [],
|
|
|
sku = [];
|
|
|
|
|
|
$('.goods-info .select-btn').each(
|
|
|
function() {
|
|
|
skn.push($(this).data('skn'));
|
|
|
}
|
|
|
);
|
|
|
$('.goods-info .select-btn').each(
|
|
|
function() {
|
|
|
id.push($(this).data('id'));
|
|
|
}
|
|
|
);
|
|
|
$('.goods-info .select-btn').each(
|
|
|
function() {
|
|
|
sku.push($(this).data('sku'));
|
|
|
}
|
|
|
);
|
|
|
$('.goods-info .count').each(
|
|
|
function() {
|
|
|
num.push(1);
|
|
|
}
|
|
|
);
|
|
|
window._yas.sendCustomInfo({
|
|
|
op: 'YB_GDS_PACKAGE_BUY_NOW_C',
|
|
|
op: 'YB_GDS_DT_ADD_TO_SC',
|
|
|
param: JSON.stringify({
|
|
|
C_ID: window._ChannelVary[window.cookie('_Channel')],
|
|
|
PRD_ID: window.queryString.productId,
|
|
|
PACKAGE_GOODS: yasGid.join(',')
|
|
|
PRD_ID: id.join(','),
|
|
|
PRD_NUM: num.join(','),
|
|
|
PRD_SKN: skn.join(','),
|
|
|
PRD_SKU: sku.join(','),
|
|
|
POS_ID: 101
|
|
|
})
|
|
|
}, true);
|
|
|
}
|
...
|
...
|
|