...
|
...
|
@@ -27,26 +27,31 @@ $(function() { |
|
|
$selectBtn.on('touchend', function() {
|
|
|
var self = $(this);
|
|
|
|
|
|
$.post('/product/detail/info', {
|
|
|
id: self.data('id'),
|
|
|
productSkn: self.data('skn')
|
|
|
}, function(data) {
|
|
|
chosePanelRender(data);
|
|
|
chosePanel.init(self.data('skn'));
|
|
|
chosePanel.show();
|
|
|
});
|
|
|
});
|
|
|
|
|
|
$('.goods-img').on('touchend', function() {
|
|
|
var packGood = $(this).parent().find('.select-btn');
|
|
|
|
|
|
if (window._yas && window._yas.sendCustomInfo) {
|
|
|
window._yas.sendCustomInfo({
|
|
|
op: 'YB_GDS_PACKAGE_GOODS_C',
|
|
|
param: JSON.stringify({
|
|
|
C_ID: window._ChannelVary[window.cookie('_Channel')],
|
|
|
PRD_ID: window.queryString.id,
|
|
|
PACKAGE_GOODS: self.data('id'),
|
|
|
PACKAGE_INDEX: self.data('index')
|
|
|
PRD_ID: window.queryString.gid,
|
|
|
PACKAGE_GOODS: packGood.data('id'),
|
|
|
PACKAGE_INDEX: packGood.data('index') + 1
|
|
|
})
|
|
|
}, true);
|
|
|
}
|
|
|
|
|
|
$.post('/product/detail/info', {
|
|
|
id: self.data('id'),
|
|
|
productSkn: self.data('skn')
|
|
|
}, function(data) {
|
|
|
chosePanelRender(data);
|
|
|
chosePanel.init(self.data('skn'));
|
|
|
chosePanel.show();
|
|
|
});
|
|
|
});
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -57,7 +62,7 @@ $buyNowBtn.on('click', function() { |
|
|
bundleId = $('#activityId').val(),
|
|
|
gskn = $('span[id^="gskn"]'),
|
|
|
gsknSelected = false,
|
|
|
yasGid = '';
|
|
|
yasGid = [];
|
|
|
|
|
|
if (gskn.length < 1) {
|
|
|
tip.show('非法请求!');
|
...
|
...
|
@@ -79,7 +84,7 @@ $buyNowBtn.on('click', function() { |
|
|
buy_number: 1
|
|
|
});
|
|
|
|
|
|
yasGid += $(this).data('id') + ',';
|
|
|
yasGid.push($(this).data('id'));
|
|
|
});
|
|
|
|
|
|
if (window._yas && window._yas.sendCustomInfo) {
|
...
|
...
|
@@ -88,7 +93,7 @@ $buyNowBtn.on('click', function() { |
|
|
param: JSON.stringify({
|
|
|
C_ID: window._ChannelVary[window.cookie('_Channel')],
|
|
|
PRD_ID: window.queryString.id,
|
|
|
PACKAGE_GOODS: yasGid
|
|
|
PACKAGE_GOODS: yasGid.join(',')
|
|
|
})
|
|
|
}, true);
|
|
|
}
|
...
|
...
|
@@ -99,7 +104,6 @@ $buyNowBtn.on('click', function() { |
|
|
activity_id: bundleId
|
|
|
}), actCkOpthn);
|
|
|
|
|
|
window.location.href =
|
|
|
'/cart/index/orderEnsure?cartType=bundle&activityType=bundle';
|
|
|
// window.location.href = '/cart/index/orderEnsure?cartType=bundle&activityType=bundle';
|
|
|
}
|
|
|
}); |
...
|
...
|
|