Authored by 周少峰

Merge branch 'feature/seo4' into gray

... ... @@ -123,6 +123,29 @@ const getProductList = (params, from) => {
}
};
/**
* 获取seo商品列表
* @return
*/
const getSeoProductList = (params, from) => {
let finalParams = {
method: 'web.search.forseo',
sales: 'Y',
outlets: 2,
stocknumber: 1,
need_filter: 'no',
limit: 60
};
Object.assign(finalParams, params);
if (from) {
finalParams.from = from;
}
return getProductListOrig(finalParams);
};
const getSortListOrig = (finalParams) => api.get('', finalParams, config.apiCache);
/**
... ... @@ -485,6 +508,7 @@ module.exports = {
getSortByConditionAsync,
getKeyActivityAsync,
getProductList,
getSeoProductList,
getSortList,
getSortIntro,
getSortAds,
... ...
... ... @@ -394,7 +394,7 @@ exports.getSearchKeywordData = (params, channel) => {
let apiMethod = [
headerModel.requestHeaderData(channel),
searchApi.getSuggest({keyword: searchParams.query.substring(0, 2)}),
searchApi.getProductList(searchParams, 'fuzzySearch')
searchApi.getSeoProductList(searchParams, 'fuzzySearch')
];
return api.all(apiMethod).then(result => {
... ...