Authored by zhangxiaoru

尺寸 颜色 埋点

... ... @@ -58,6 +58,12 @@ var limitProductCode,
// 限购商品的skn。只有限购商品时才会设置。
skn;
var C_ID;
require('../common');
C_ID = window._ChannelVary[window.cookie('_Channel')];
// 禁用数字编辑
function disableNumEdit() {
var $numBtn = $('.chose-panel').find('.num .btn>.iconfont');
... ... @@ -401,6 +407,17 @@ $yohoPage.on('touchstart', '.color-list .block', function() {
// 修改颜色时修改商品图片
$imgsThumb.addClass('hide').eq(index).removeClass('hide');
if (window._yas && window._yas.sendCustomInfo) {
window._yas.sendCustomInfo({
op: 'YB_GDS_COLOR_C',
param: JSON.stringify({
C_ID: C_ID,
PRD_ID: $('#goodsId').val(),
COLOR: $(this).html()
})
}, true);
}
}
// 颜色块切换勾选样式
... ... @@ -478,6 +495,17 @@ $yohoPage.on('touchstart', '.color-list .block', function() {
curColorIndex = index + 1;
$curSizeBlock = $this;
if (window._yas && window._yas.sendCustomInfo) {
window._yas.sendCustomInfo({
op: 'YB_GDS_SIZE_C',
param: JSON.stringify({
C_ID: C_ID,
PRD_ID: $('#goodsId').val(),
SIZE: $(this).html()
})
}, true);
}
}
// 颜色块切换勾选样式
... ...