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 { @@ -69,7 +69,9 @@ class YoLuckApi extends global.yoho.BaseModel {
69 */ 69 */
70 getList({page, type}) { 70 getList({page, type}) {
71 return yoLuckApi.get(MODULE + '/list', { 71 return yoLuckApi.get(MODULE + '/list', {
72 - page, type 72 + page,
  73 + type,
  74 + channel: 0
73 }).then(result => { 75 }).then(result => {
74 if (result.code === 200) { 76 if (result.code === 200) {
75 const products = result.data; 77 const products = result.data;
@@ -111,7 +113,10 @@ class YoLuckApi extends global.yoho.BaseModel { @@ -111,7 +113,10 @@ class YoLuckApi extends global.yoho.BaseModel {
111 * @returns {Promise} 113 * @returns {Promise}
112 */ 114 */
113 getRecommend({actPrizeId}) { 115 getRecommend({actPrizeId}) {
114 - return yoLuckApi.get(MODULE + '/list/recommend', {actPrizeId}).then(result => { 116 + return yoLuckApi.get(MODULE + '/list/recommend', {
  117 + actPrizeId,
  118 + channel: 0
  119 + }).then(result => {
115 if (result.code === 200) { 120 if (result.code === 200) {
116 const products = result.data; 121 const products = result.data;
117 const newProducts = products.map((p) => { 122 const newProducts = products.map((p) => {
@@ -145,7 +150,7 @@ class YoLuckApi extends global.yoho.BaseModel { @@ -145,7 +150,7 @@ class YoLuckApi extends global.yoho.BaseModel {
145 * @returns {Promise} 150 * @returns {Promise}
146 */ 151 */
147 getMyList({page, type, limit, uid}) { 152 getMyList({page, type, limit, uid}) {
148 - return yoLuckApi.get(MODULE + '/list/mine', {type, page, uid, limit}); 153 + return yoLuckApi.get(MODULE + '/list/mine', {type, page, uid, limit, channel: 0});
149 } 154 }
150 155
151 /** 156 /**