Showing
2 changed files
with
10 additions
and
8 deletions
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | * @Author: Targaryen | 2 | * @Author: Targaryen |
3 | * @Date: 2016-05-25 18:03:34 | 3 | * @Date: 2016-05-25 18:03:34 |
4 | * @Last Modified by: Targaryen | 4 | * @Last Modified by: Targaryen |
5 | - * @Last Modified time: 2016-06-06 14:49:32 | 5 | + * @Last Modified time: 2016-06-07 10:11:07 |
6 | */ | 6 | */ |
7 | 7 | ||
8 | 'use strict'; | 8 | 'use strict'; |
@@ -85,13 +85,15 @@ exports.getSalebreakingYardsSortList = (params) => { | @@ -85,13 +85,15 @@ exports.getSalebreakingYardsSortList = (params) => { | ||
85 | * 获取折扣专区活动列表 promise 对象 | 85 | * 获取折扣专区活动列表 promise 对象 |
86 | * @return {[type]} [description] | 86 | * @return {[type]} [description] |
87 | */ | 87 | */ |
88 | -exports.getSaleActivityList = (params) => { | ||
89 | - return api.get('', sign.apiSign( | ||
90 | - Object.assign({ | 88 | +exports.getSaleActivityList = (channel) => { |
89 | + let tempChannel = _.isEmpty(channel) ? 'boys' : channel; | ||
90 | + | ||
91 | + return api.get('', sign.apiSign({ | ||
91 | method: 'app.activity.get', | 92 | method: 'app.activity.get', |
92 | sort: '2', | 93 | sort: '2', |
93 | - plateform: '1' | ||
94 | - }, params))); | 94 | + plateform: '1', |
95 | + yh_channel: yhChannel[tempChannel].channel | ||
96 | + })); | ||
95 | }; | 97 | }; |
96 | 98 | ||
97 | /** | 99 | /** |
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | * @Author: Targaryen | 2 | * @Author: Targaryen |
3 | * @Date: 2016-05-19 10:20:08 | 3 | * @Date: 2016-05-19 10:20:08 |
4 | * @Last Modified by: Targaryen | 4 | * @Last Modified by: Targaryen |
5 | - * @Last Modified time: 2016-06-07 09:40:35 | 5 | + * @Last Modified time: 2016-06-07 10:10:38 |
6 | */ | 6 | */ |
7 | 7 | ||
8 | 'use strict'; | 8 | 'use strict'; |
@@ -128,7 +128,7 @@ exports.getSaleGoodsData = (params) => { | @@ -128,7 +128,7 @@ exports.getSaleGoodsData = (params) => { | ||
128 | exports.getSaleIndexData = (channel) => { | 128 | exports.getSaleIndexData = (channel) => { |
129 | 129 | ||
130 | return api.all([ | 130 | return api.all([ |
131 | - saleApi.getSaleActivityList(), | 131 | + saleApi.getSaleActivityList(channel), |
132 | saleApi.getSaleBannerList(contentCode[channel].sale), | 132 | saleApi.getSaleBannerList(contentCode[channel].sale), |
133 | saleApi.getSaleGoodsList({ channel: channel, saleType: '2' }), // 会员专享分类 | 133 | saleApi.getSaleGoodsList({ channel: channel, saleType: '2' }), // 会员专享分类 |
134 | saleApi.getSaleGoodsList({ channel: channel, saleType: '1' }), // 断码区分类 | 134 | saleApi.getSaleGoodsList({ channel: channel, saleType: '1' }), // 断码区分类 |
-
Please register or login to post a comment