...
|
...
|
@@ -94,12 +94,14 @@ var category = $('#category-point').val(); |
|
|
|
|
|
var noResult = '<p class="no-result">未找到相关搜索结果</p>';
|
|
|
|
|
|
require('../../common');
|
|
|
|
|
|
C_ID = window._ChannelVary[window.cookie('_Channel')];
|
|
|
|
|
|
// 首屏无数据
|
|
|
if ($fsgc.children().length === 0) {
|
|
|
$goodsContainer.html(noResult);
|
|
|
}
|
|
|
|
|
|
require('../../common');
|
|
|
}
|
|
|
|
|
|
ellipsis.init();
|
|
|
|
...
|
...
|
@@ -244,7 +246,51 @@ specialoffer = getQueryString('specialoffer'); |
|
|
specialsale_id = getQueryString('specialsale_id');
|
|
|
promotion = getQueryString('promotion');
|
|
|
|
|
|
C_ID = window._ChannelVary[window.cookie('_Channel')];
|
|
|
if ($fsgc.children().length > 0) {
|
|
|
console.log(1234)
|
|
|
var fsgcgoods = [],
|
|
|
firstop,
|
|
|
firstyasparm = {};
|
|
|
|
|
|
$fsgc.find('.good-info').each(function() {
|
|
|
var fsgcgood = $(this).data('good-id');
|
|
|
|
|
|
if (fsgcgood) {
|
|
|
fsgcgoods.push(fsgcgood);
|
|
|
}
|
|
|
});
|
|
|
|
|
|
if (category) {
|
|
|
firstop = 'YB_CATEGORY_GOODS_LIST_L';
|
|
|
firstyasparm = Object.assign(firstyasparm, {
|
|
|
CATEGORY_ID: window.queryString.msort || window.queryString.sort || ''
|
|
|
});
|
|
|
} else {
|
|
|
console.log(1234567)
|
|
|
firstop = 'YB_KEYWORD_GOODS_LIST_L';
|
|
|
firstyasparm = Object.assign(firstyasparm, {
|
|
|
KEYWORD: query || ''
|
|
|
});
|
|
|
}
|
|
|
|
|
|
firstyasparm = Object.assign(firstyasparm, {
|
|
|
C_ID: C_ID,
|
|
|
RES_QTY: $fsgc.children().length,
|
|
|
PRD_LIST: JSON.stringify(fsgcgoods).replace(/\[|\]/g, ''),
|
|
|
PAGE_NUM: 1,
|
|
|
FILTER_VALUE: '',
|
|
|
SORT_TYPE: 'default'
|
|
|
});
|
|
|
|
|
|
setTimeout(function() {
|
|
|
if (window._yas && window._yas.sendCustomInfo) {
|
|
|
window._yas.sendCustomInfo({
|
|
|
op: firstop,
|
|
|
param: JSON.stringify(firstyasparm)
|
|
|
}, true);
|
|
|
}
|
|
|
}, 200);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 筛选注册的回调,筛选子项点击后逻辑
|
...
|
...
|
@@ -252,6 +298,7 @@ C_ID = window._ChannelVary[window.cookie('_Channel')]; |
|
|
* @param opt {type, id}
|
|
|
*/
|
|
|
function search(opt, filtering) {
|
|
|
|
|
|
var setting = {},
|
|
|
ext,
|
|
|
att,
|
...
|
...
|
@@ -522,13 +569,8 @@ function search(opt, filtering) { |
|
|
yasparm = Object.assign(yasparm, {
|
|
|
CATEGORY_ID: window.queryString.msort || window.queryString.sort || ''
|
|
|
});
|
|
|
} else if ($brandHeader.length > 0) {
|
|
|
optype = 'YB_BRAND_GOODS_LIST_L';
|
|
|
yasparm = Object.assign(yasparm, {
|
|
|
BRAND_ID: $brandHeader.data('id')
|
|
|
});
|
|
|
} else {
|
|
|
optype = 'YB_KEYWORD_GOOS_LIST_L';
|
|
|
optype = 'YB_KEYWORD_GOODS_LIST_L';
|
|
|
yasparm = Object.assign(yasparm, {
|
|
|
KEYWORD: setting.query || ''
|
|
|
});
|
...
|
...
|
@@ -1130,11 +1172,6 @@ $('#goods-container').on('click', '.good-info', function() { |
|
|
yasparms = Object.assign(yasparms, {
|
|
|
CATEGORY_ID: window.queryString.msort || window.queryString.sort || ''
|
|
|
});
|
|
|
} else if ($brandHeader.length > 0) {
|
|
|
optype = 'YB_BRAND_GOODS_LIST_C';
|
|
|
yasparms = Object.assign(yasparms, {
|
|
|
BRAND_ID: $brandHeader.data('id')
|
|
|
});
|
|
|
} else {
|
|
|
optype = 'YB_KEYWORD_GOOS_LIST_C';
|
|
|
yasparms = Object.assign(yasparms, {
|
...
|
...
|
@@ -1148,4 +1185,6 @@ $('#goods-container').on('click', '.good-info', function() { |
|
|
param: JSON.stringify(yasparms)
|
|
|
}, true);
|
|
|
}
|
|
|
|
|
|
return false;
|
|
|
}); |
...
|
...
|
|