|
@@ -123,6 +123,29 @@ const getProductList = (params, from) => { |
|
@@ -123,6 +123,29 @@ const getProductList = (params, from) => { |
123
|
}
|
123
|
}
|
124
|
};
|
124
|
};
|
125
|
|
125
|
|
|
|
126
|
+/**
|
|
|
127
|
+ * 获取seo商品列表
|
|
|
128
|
+ * @return
|
|
|
129
|
+ */
|
|
|
130
|
+const getSeoProductList = (params, from) => {
|
|
|
131
|
+ let finalParams = {
|
|
|
132
|
+ method: 'web.search.forseo',
|
|
|
133
|
+ sales: 'Y',
|
|
|
134
|
+ outlets: 2,
|
|
|
135
|
+ stocknumber: 1,
|
|
|
136
|
+ need_filter: 'no',
|
|
|
137
|
+ limit: 60
|
|
|
138
|
+ };
|
|
|
139
|
+
|
|
|
140
|
+ Object.assign(finalParams, params);
|
|
|
141
|
+
|
|
|
142
|
+ if (from) {
|
|
|
143
|
+ finalParams.from = from;
|
|
|
144
|
+ }
|
|
|
145
|
+
|
|
|
146
|
+ return getProductListOrig(finalParams);
|
|
|
147
|
+};
|
|
|
148
|
+
|
126
|
const getSortListOrig = (finalParams) => api.get('', finalParams, config.apiCache);
|
149
|
const getSortListOrig = (finalParams) => api.get('', finalParams, config.apiCache);
|
127
|
|
150
|
|
128
|
/**
|
151
|
/**
|
|
@@ -485,6 +508,7 @@ module.exports = { |
|
@@ -485,6 +508,7 @@ module.exports = { |
485
|
getSortByConditionAsync,
|
508
|
getSortByConditionAsync,
|
486
|
getKeyActivityAsync,
|
509
|
getKeyActivityAsync,
|
487
|
getProductList,
|
510
|
getProductList,
|
|
|
511
|
+ getSeoProductList,
|
488
|
getSortList,
|
512
|
getSortList,
|
489
|
getSortIntro,
|
513
|
getSortIntro,
|
490
|
getSortAds,
|
514
|
getSortAds,
|