Authored by 郭成尧

'bundle-detail-page-click-point-add'

... ... @@ -235,7 +235,7 @@ let getProductData = (data) => {
if (bundleData && _.get(bundleData, 'bundleInfo.discountType', null) === 1) {
finalResult.bundleData = {
title: '优惠套装',
href: helpers.urlFormat('/product/bundle/detail', {skn: result.product_skn}),
href: helpers.urlFormat('/product/bundle/detail', {skn: result.product_skn, id: result.product_id}),
description: '立省¥' + (parseInt(_.get(bundleData, 'bundleInfo.salesPrice', 0), 10) -
parseInt(_.get(bundleData, 'bundleInfo.discountPrice', 0), 10)) + '元',
productList: productProcess.processProductList(bundleData && bundleData.productList)
... ...
... ... @@ -4,7 +4,7 @@
<div class="goods-img"><a href="{{url}}"><img src="{{image default_images 155 206}}" alt=""></a></div>
<div class="goods-info">
<p><span class="title">{{product_name}}</span><span class="count">x 1</span></p>
<p><span class="select-btn" id="gskn-{{product_skn}}" data-id="{{product_id}}"
<p><span class="select-btn" id="gskn-{{product_skn}}" data-id="{{product_id}}" data-index="{{@index}}"
data-skn="{{product_skn}}">请选择商品属性 <i
class="iconfont">&#xe616;
</i></span></p>
... ...
... ... @@ -24,9 +24,21 @@ $(function() {
/**
* 选择商品颜色等
*/
$selectBtn.on('click', function() {
$selectBtn.on('touchend', function() {
var self = $(this);
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')
})
}, true);
}
$.post('/product/detail/info', {
id: self.data('id'),
productSkn: self.data('skn')
... ...