...
|
...
|
@@ -1599,41 +1599,41 @@ $('.package-box').on('click', '#buy-detail', function() { |
|
|
var pkgDialog = new Dialog(opt); // eslint-disable-line
|
|
|
pkgDialog.show();
|
|
|
|
|
|
pkgDialog.$el.on('click', '#pay-pkg', function(){
|
|
|
pkgDialog.$el.on('click', '#pay-pkg', function() {
|
|
|
|
|
|
var product = pkgDialog.$el.find('.pkgDg-prodetal .pkg-product');
|
|
|
var idArr = [];
|
|
|
|
|
|
product.each(function(){
|
|
|
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_GOODS : idArr.join(',')
|
|
|
};
|
|
|
var option = {
|
|
|
PRD_ID: +$('.main').data('id'),
|
|
|
PACKAGE_GOODS: idArr.join(',')
|
|
|
};
|
|
|
|
|
|
yas.givePoint('YB_GDS_NUMBER_C', option);
|
|
|
yas.givePoint('YB_GDS_NUMBER_C', option);
|
|
|
});
|
|
|
|
|
|
pkgDialog.$el.on('click', '.pkg-product .pkg-proImg', function(){
|
|
|
pkgDialog.$el.on('click', '.pkg-product .pkg-proImg', function() {
|
|
|
var $this = $(this);
|
|
|
var $index = $this.parent('.pkg-product').index() + 1;
|
|
|
|
|
|
var product = pkgDialog.$el.find('.pkgDg-prodetal .pkg-product');
|
|
|
var idArr = [];
|
|
|
|
|
|
product.each(function(){
|
|
|
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,
|
|
|
PACKAGE_GOODS : idArr.join(',')
|
|
|
PRD_ID: +$('.main').data('id'),
|
|
|
PACKAGE_INDEX: $index,
|
|
|
PACKAGE_GOODS: idArr.join(',')
|
|
|
};
|
|
|
|
|
|
yas.givePoint('YB_GDS_PACKAGE_DT_GOODS_C', option);
|
...
|
...
|
|