...
|
...
|
@@ -10,6 +10,7 @@ |
|
|
*/
|
|
|
|
|
|
var $ = require('yoho-jquery');
|
|
|
var EventProxy = require('yoho-eventproxy');
|
|
|
|
|
|
var lazyLoad = require('yoho-jquery-lazyload');
|
|
|
var yas = require('../common/data-yas');
|
...
|
...
|
@@ -743,7 +744,7 @@ bindEvent.add(function() { |
|
|
if (maxStock === -1) {
|
|
|
showSizeWarn();
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// 加入购物车埋点
|
|
|
yas.givePoint('YB_GDS_DT_ADD_TO_SC', {
|
...
|
...
|
@@ -752,7 +753,7 @@ bindEvent.add(function() { |
|
|
PRD_SKN: +$('.basic li:nth-child(1) .valueSpace').text(),
|
|
|
PRD_SKU: getSku()
|
|
|
});
|
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
type: 'POST',
|
|
|
url: '/cart/index/add',
|
...
|
...
|
@@ -1540,10 +1541,10 @@ $('.package-box').on('click', '#buy-detail', function() { |
|
|
pkgDialog.show();
|
|
|
|
|
|
pkgDialog.$el.on('click', '#pay-pkg', function(){
|
|
|
|
|
|
|
|
|
var product = pkgDialog.$el.find('.pkgDg-prodetal .pkg-product');
|
|
|
var idArr = [];
|
|
|
|
|
|
|
|
|
product.each(function(){
|
|
|
var $this = $(this);
|
|
|
var id = $this.find('.pkg-proImg').attr('href').split('_')[1];
|
...
|
...
|
@@ -1552,8 +1553,8 @@ $('.package-box').on('click', '#buy-detail', function() { |
|
|
var option = {
|
|
|
PRD_ID : +$('.main').data('id'),
|
|
|
PACKAGE_GOODS : idArr.join(',')
|
|
|
};
|
|
|
|
|
|
};
|
|
|
|
|
|
yas.givePoint('YB_GDS_NUMBER_C', option);
|
|
|
});
|
|
|
|
...
|
...
|
@@ -1563,13 +1564,13 @@ $('.package-box').on('click', '#buy-detail', function() { |
|
|
|
|
|
var product = pkgDialog.$el.find('.pkgDg-prodetal .pkg-product');
|
|
|
var idArr = [];
|
|
|
|
|
|
|
|
|
product.each(function(){
|
|
|
var $this = $(this);
|
|
|
var id = $this.find('.pkg-proImg').attr('href').split('_')[1];
|
|
|
idArr.push(id);
|
|
|
});
|
|
|
|
|
|
|
|
|
var option = {
|
|
|
PRD_ID : +$('.main').data('id'),
|
|
|
PACKAGE_INDEX : $index,
|
...
|
...
|
@@ -1844,7 +1845,7 @@ $(function() { |
|
|
|
|
|
|
|
|
yasAtBottom.yasBottom();
|
|
|
|
|
|
|
|
|
|
|
|
// 数据懒加载
|
|
|
dataLazyLoad.init({cls: '.datalazyload', threshold: 0}); |
...
|
...
|
|