...
|
...
|
@@ -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,
|
...
|
...
|
|