...
|
...
|
@@ -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);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// 颜色块切换勾选样式
|
...
|
...
|
@@ -559,6 +587,19 @@ $yohoPage.on('touchstart', '.btn-minus', function() { |
|
|
}
|
|
|
$chosed = $('.block-list>ul>li.chosed');
|
|
|
|
|
|
if (window._yas && window._yas.sendCustomInfo) {
|
|
|
window._yas.sendCustomInfo({
|
|
|
op: 'YB_GDS_DT_ADD_TO_SC',
|
|
|
param: JSON.stringify(Object.assign(yasparm, {
|
|
|
C_ID: window._ChannelVary[window.cookie('_Channel')],
|
|
|
PRD_ID: $('#goodsId').val(),
|
|
|
PRD_NUM: buyNumber,
|
|
|
PRD_SKN: thisSkn,
|
|
|
PRD_SKU: $curSizeBlock.data('skuid')
|
|
|
}))
|
|
|
}, true);
|
|
|
}
|
|
|
|
|
|
if ($chosed.length === 2 && $chosed.closest('.zero-stock').length === 0) {
|
|
|
isSecKills = $('.seckill-time').length; // 秒杀标记
|
|
|
|
...
|
...
|
|