Authored by 郭成尧

cart-page-point

... ... @@ -27,6 +27,8 @@ var isRefreshByDelete = window.cookie('_yoho-cart-refreshByDelete') === 'true' ?
var lowStockCount = 0;
var C_ID = window._ChannelVary[window.cookie('_Channel')] || 1;
loading.showLoadingMask();
function needLoadRecommandForYou() {
... ... @@ -193,6 +195,20 @@ $('.btn-balance').on('touchend', function() {
lowStockCount = 0;
if (window._yas && window._yas.sendCustomInfo) {
var productId = '';
$('.shopping-cart-good').each(function() {
productId = $(this).data('id') + ',';
});
window._yas.sendCustomInfo({
op: 'YB_SC_TOBUY_CLICK',
param: JSON.stringify({
C_ID: C_ID,
PRD_ID: productId,
})
}, true);
}
if (shouldLowStocks()) {
tip.show('所选商品中有' + lowStockCount + '种库存不足的商品');
return false;
... ... @@ -239,4 +255,13 @@ $(window).scrollTop(1).scrollTop(0);
if ($('.invalid-goods').find('.shopping-cart-good').length === 0) {
$('#failure-goods').removeClass('invalid-goods');
}
\ No newline at end of file
}
$(function () {
if (window._yas && window._yas.sendCustomInfo) {
window._yas.sendCustomInfo({
op: 'YB_SC',
param: JSON.stringify({C_ID: C_ID})
}, true);
}
});
\ No newline at end of file
... ...