...
|
...
|
@@ -110,13 +110,16 @@ const getFilterData = (params) => { |
|
|
* method=app.newproduct.recshop 推荐店铺
|
|
|
* http://git.yoho.cn/yoho-documents/api-interfaces/blob/master/BigData/新品到着.md
|
|
|
*/
|
|
|
const recommendShops = (uid, channel, limit, page) => {
|
|
|
const indexData = (uid, channel, limit, page) => {
|
|
|
let yh_channel = searchProcess.getChannelType(channel);
|
|
|
|
|
|
limit = limit || 20;
|
|
|
page = page || 1;
|
|
|
|
|
|
let params = {
|
|
|
method: 'app.newproduct.recshop',
|
|
|
channel,
|
|
|
yh_channel,
|
|
|
contentCode: contentCode.newV2[channel],
|
|
|
limit,
|
|
|
page,
|
|
|
uid
|
...
|
...
|
@@ -137,12 +140,14 @@ const recommendShops = (uid, channel, limit, page) => { |
|
|
* http://git.yoho.cn/yoho-documents/api-interfaces/blob/master/BigData/新品到着.md
|
|
|
*/
|
|
|
const recbrand = (uid, channel, limit, page) => {
|
|
|
let yh_channel = searchProcess.getChannelType(channel);
|
|
|
|
|
|
limit = limit || 20;
|
|
|
page = page || 1;
|
|
|
|
|
|
let params = {
|
|
|
method: 'app.newproduct.recbrand',
|
|
|
channel,
|
|
|
yh_channel,
|
|
|
limit,
|
|
|
page,
|
|
|
uid
|
...
|
...
|
@@ -175,8 +180,6 @@ const newGoodsAPI = (params) => { |
|
|
limit: '60'
|
|
|
}, params);
|
|
|
|
|
|
params.order = params.order === '0' ? 's_t_desc' : 's_t_asc';
|
|
|
|
|
|
return api.get('', _.assign({
|
|
|
method: method
|
|
|
}, params), {
|
...
|
...
|
@@ -199,6 +202,7 @@ const reclist = (uid, channel, searchOptions) => { |
|
|
|
|
|
if (parseInt(params.page, 10) === 1) {
|
|
|
newList.total = result.data.total;
|
|
|
newList.pageTotal = result.data.page_total;
|
|
|
}
|
|
|
|
|
|
return newList;
|
...
|
...
|
@@ -227,7 +231,7 @@ module.exports = { |
|
|
getSearchData, // TODO remove
|
|
|
getFilterData, // TODO remove
|
|
|
|
|
|
recommendShops,
|
|
|
indexData,
|
|
|
recbrand,
|
|
|
reclist,
|
|
|
reclistFilter
|
...
|
...
|
|