Authored by hongweigao

修改小问题

... ... @@ -812,6 +812,7 @@ exports.handleSeniorFilterData = (data, params) => {
if (conName.length) {
conditions.push({
name: _.join(conName, '、'),
itemType: '风格',
href: handleFilterUrl(params, {}, {style: true})
});
}
... ...
... ... @@ -38,8 +38,9 @@ function _getOtherFilterValue() {
var type = $(this).attr('itemType'),
name = $(this).attr('name');
if (type !== '') {
switch (type) {
case 'brands':
case 'brand':
type = '品牌';
break;
case 'price':
... ... @@ -49,6 +50,7 @@ function _getOtherFilterValue() {
break;
}
filterValue += type + ':' + name + ';';
}
});
return filterValue;
... ... @@ -85,7 +87,7 @@ function yasEvent(op, parameter) {
parameter = $.extend({
C_ID: CID
}, parameter);
console.info(op);
console.info(parameter);
window._yas.sendCustomInfo({
op: op,
... ...
... ... @@ -1037,6 +1037,7 @@ function randomString(len) {
return pwd;
}
/*
* 页面加载完
*/
... ... @@ -1061,7 +1062,7 @@ function initPageYas() {
// 关键词搜索结果页展示时
yas.givePoint('YB_CHOOSE_FOR_YOU_Y', loadYas);
};
}
// 店铺推荐
function loadRecommend() {
... ... @@ -1097,7 +1098,8 @@ function loadRecommend() {
$('.individual-comment').find('.block-title').find('.title').addClass('cur').prev('.sep').addClass('hide');
$('#recommend-shop').detach();
}
//页面加载完,埋点
// 页面加载完,埋点
initPageYas();
// 点击为您推荐商品埋点
... ...
... ... @@ -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);
});
... ...
... ... @@ -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');
... ... @@ -63,24 +63,30 @@ $(function() {
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);
});
... ... @@ -99,24 +105,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);
});
... ...