...
|
...
|
@@ -15,10 +15,12 @@ export default class haggleService { |
|
|
|
|
|
//(砍价商品列表)
|
|
|
async fetchHaggleProductList(page, size) {
|
|
|
let fromPage = Platform.OS === 'android' ? 'aFP_HaggleProductList' : 'iFP_HaggleProductList';
|
|
|
return await this.api.get({
|
|
|
url: '',
|
|
|
body: {
|
|
|
page,
|
|
|
fromPage,
|
|
|
limit:size,
|
|
|
method: 'app.search.cutprice.productList',
|
|
|
}
|
...
|
...
|
@@ -30,14 +32,16 @@ export default class haggleService { |
|
|
throw(error);
|
|
|
});
|
|
|
}
|
|
|
|
|
|
|
|
|
//(我的砍价商品列表)
|
|
|
async fetchMyHaggleProductList(uid, page, size) {
|
|
|
let fromPage = Platform.OS === 'android' ? 'aFP_HaggleProductList' : 'iFP_HaggleProductList';
|
|
|
return await this.api.get({
|
|
|
url: '',
|
|
|
body: {
|
|
|
uid,
|
|
|
page,
|
|
|
fromPage,
|
|
|
limit:size,
|
|
|
method: 'app.cutdownprice.myCutPriceList',
|
|
|
}
|
...
|
...
|
@@ -51,10 +55,12 @@ export default class haggleService { |
|
|
}
|
|
|
|
|
|
async fetcheProductHaggleStatus(uid, activityId, productSkn) {
|
|
|
let fromPage = Platform.OS === 'android' ? 'aFP_HaggleProductList' : 'iFP_HaggleProductList';
|
|
|
return await this.api.get({
|
|
|
url: '',
|
|
|
body: {
|
|
|
uid,
|
|
|
fromPage,
|
|
|
productSkn,
|
|
|
activityId,
|
|
|
method: 'app.cutdownprice.checkdoing',
|
...
|
...
|
@@ -69,7 +75,9 @@ export default class haggleService { |
|
|
}
|
|
|
|
|
|
async fetchResourceInfo(content_code) {
|
|
|
let fromPage = Platform.OS === 'android' ? 'aFP_HaggleProductList' : 'iFP_HaggleProductList';
|
|
|
return await this.api.get({
|
|
|
fromPage,
|
|
|
url: '/operations/api/v5/resource/get',
|
|
|
body: {
|
|
|
content_code,
|
...
|
...
|
|