...
|
...
|
@@ -15,16 +15,29 @@ export default class groupPurchaseService { |
|
|
|
|
|
async fetchGroupProductList(activityId, page=1, limit=20, fromPage, listParams) {
|
|
|
|
|
|
let bodyParam;
|
|
|
if (activityId == null) {
|
|
|
bodyParam = {
|
|
|
method: 'app.collage.productList.page',
|
|
|
...listParams,
|
|
|
page,
|
|
|
limit,
|
|
|
fromPage,
|
|
|
};
|
|
|
} else {
|
|
|
bodyParam = {
|
|
|
method: 'app.collage.productList.page',
|
|
|
...listParams,
|
|
|
page,
|
|
|
limit,
|
|
|
activityId,
|
|
|
fromPage,
|
|
|
};
|
|
|
}
|
|
|
|
|
|
return await this.api.get({
|
|
|
url: '',
|
|
|
body: {
|
|
|
method: 'app.collage.productList.page',
|
|
|
...listParams,
|
|
|
page,
|
|
|
limit,
|
|
|
activityId,
|
|
|
fromPage,
|
|
|
}
|
|
|
body: bodyParam
|
|
|
})
|
|
|
.then((json) => {
|
|
|
return json;
|
...
|
...
|
@@ -34,7 +47,7 @@ export default class groupPurchaseService { |
|
|
});
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
async fetchGroupDetailProductList(activityId,page=1, limit=20,fromPage) {
|
|
|
return await this.api.get({
|
|
|
url: '',
|
...
|
...
|
|