Authored by 杨延青

Merge branch 'feature/yoluckShare' into 'release/0110'

add channel



See merge request !1659
... ... @@ -69,7 +69,9 @@ class YoLuckApi extends global.yoho.BaseModel {
*/
getList({page, type}) {
return yoLuckApi.get(MODULE + '/list', {
page, type
page,
type,
channel: 0
}).then(result => {
if (result.code === 200) {
const products = result.data;
... ... @@ -111,7 +113,10 @@ class YoLuckApi extends global.yoho.BaseModel {
* @returns {Promise}
*/
getRecommend({actPrizeId}) {
return yoLuckApi.get(MODULE + '/list/recommend', {actPrizeId}).then(result => {
return yoLuckApi.get(MODULE + '/list/recommend', {
actPrizeId,
channel: 0
}).then(result => {
if (result.code === 200) {
const products = result.data;
const newProducts = products.map((p) => {
... ... @@ -145,7 +150,7 @@ class YoLuckApi extends global.yoho.BaseModel {
* @returns {Promise}
*/
getMyList({page, type, limit, uid}) {
return yoLuckApi.get(MODULE + '/list/mine', {type, page, uid, limit});
return yoLuckApi.get(MODULE + '/list/mine', {type, page, uid, limit, channel: 0});
}
/**
... ...