Authored by 孙凯

更新接口调用 review by zhanglixia

... ... @@ -173,8 +173,6 @@ export function getProductList(reload=false) {
let {app, redBrand} = getState();
let {shopId, productList, filterFactors} = redBrand;
let brandId = 349;
if (reload) {
} else {
... ... @@ -203,7 +201,7 @@ export function getProductList(reload=false) {
}
dispatch(productListRequest());
return new RedBrandService(app.host).productList(shopId=1258, channel, order, page, pageSize, allFilterFactors,brandId)
return new RedBrandService(app.host).productList(shopId, channel, order, page, pageSize, allFilterFactors)
.then(json => {
let payload = parseProductList(json);
payload.endReached = payload.currentPage == payload.pageCount || payload.list.length < pageSize;
... ...
... ... @@ -61,7 +61,7 @@ export default class RedBrandService {
});
}
async productList(shop_id, yh_channel=1, order='s_t_asc', page=1, limit=60, filterFactors={},brand='', v=7) {
async productList(shop_id, yh_channel=1, order='s_t_asc', page=1, limit=60, filterFactors={}, v=7) {
return await this.api.get({
url: '',
body: {
... ... @@ -77,7 +77,6 @@ export default class RedBrandService {
attribute_not: 2,
...filterFactors,
v,
brand,
}
})
.then((json) => {
... ...