...
|
...
|
@@ -12,7 +12,7 @@ var lazyLoad = require('yoho-jquery-lazyload'); |
|
|
var product = require('./index/product');
|
|
|
var qs = {};
|
|
|
|
|
|
var $footPage = $('.foot-pager1').data('total'),
|
|
|
var $footPage = $('.foot-pager').data('total'),
|
|
|
$productIdArr = [],
|
|
|
$leftUl = $('.sort-container .sort-child-list'),
|
|
|
$leftLi = $leftUl.find('li.active');
|
...
|
...
|
@@ -65,25 +65,30 @@ $(function() { |
|
|
RES_QTY: $footPage || 0,
|
|
|
PRD_LIST: $productIdArr.join(',')
|
|
|
};
|
|
|
var opt = '';
|
|
|
|
|
|
switch (listType) {
|
|
|
case 'search':
|
|
|
loadYas.KEYWORD = qs.query || '';
|
|
|
opt = 'YB_KEYWORD_GOODS_LIST_L';
|
|
|
break;
|
|
|
case 'brand':
|
|
|
loadYas.BRAND_ID = brandId;
|
|
|
opt = 'YB_BRAND_GOODS_LIST_L';
|
|
|
break;
|
|
|
case 'new':
|
|
|
loadYas.SHELF_TIME = 'ALL';
|
|
|
opt = 'YB_NEW_GOODS_LIST_L';
|
|
|
break;
|
|
|
default:// 品类查找sort
|
|
|
loadYas.CATEGORY_ID = qs.misort || qs.msort || '';
|
|
|
opt = 'YB_CATEGORY_GOODS_LIST_L';
|
|
|
break;
|
|
|
}
|
|
|
loadYas = $.extend(loadYas, commonParams);
|
|
|
|
|
|
// 关键词搜索结果页展示时
|
|
|
yas.givePoint('YB_KEYWORD_GOODS_LIST_L', loadYas);
|
|
|
yas.givePoint(opt, loadYas);
|
|
|
|
|
|
});
|
|
|
|
...
|
...
|
@@ -102,24 +107,30 @@ $('.good-item-wrapper').click(function() { |
|
|
PRD_NUM: proNum
|
|
|
};
|
|
|
|
|
|
var opt = '';
|
|
|
|
|
|
switch (listType) {
|
|
|
case 'search':
|
|
|
loadYas.KEYWORD = qs.query || '';
|
|
|
opt = 'YB_KEYWORD_GOODS_LIST_C';
|
|
|
break;
|
|
|
case 'brand':
|
|
|
loadYas.BRAND_ID = brandId;
|
|
|
opt = 'YB_BRAND_GOODS_LIST_C';
|
|
|
break;
|
|
|
case 'new':
|
|
|
loadYas.SHELF_TIME = getLocalTime(shelveTime);
|
|
|
opt = 'YB_NEW_GOODS_LIST_C';
|
|
|
break;
|
|
|
default:// 品类查找sort
|
|
|
loadYas.CATEGORY_ID = qs.misort || qs.msort || '';
|
|
|
opt = 'YB_CATEGORY_GOODS_LIST_C';
|
|
|
break;
|
|
|
}
|
|
|
loadYas = $.extend(loadYas, commonParams);
|
|
|
|
|
|
// 点击搜索列表商品埋点
|
|
|
yas.givePoint('YB_KEYWORD_GOODS_LIST_C', loadYas);
|
|
|
yas.givePoint(opt, loadYas);
|
|
|
});
|
|
|
|
|
|
|
...
|
...
|
|