Authored by 郁健超

砍价接口增加fromPage review by陈琳

... ... @@ -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',
}
... ... @@ -33,11 +35,13 @@ export default class haggleService {
//(我的砍价商品列表)
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,
... ...