Authored by 郭成尧

折扣专场channel

... ... @@ -2,7 +2,7 @@
* @Author: Targaryen
* @Date: 2016-05-25 18:03:34
* @Last Modified by: Targaryen
* @Last Modified time: 2016-06-06 14:49:32
* @Last Modified time: 2016-06-07 10:11:07
*/
'use strict';
... ... @@ -85,13 +85,15 @@ exports.getSalebreakingYardsSortList = (params) => {
* 获取折扣专区活动列表 promise 对象
* @return {[type]} [description]
*/
exports.getSaleActivityList = (params) => {
return api.get('', sign.apiSign(
Object.assign({
method: 'app.activity.get',
sort: '2',
plateform: '1'
}, params)));
exports.getSaleActivityList = (channel) => {
let tempChannel = _.isEmpty(channel) ? 'boys' : channel;
return api.get('', sign.apiSign({
method: 'app.activity.get',
sort: '2',
plateform: '1',
yh_channel: yhChannel[tempChannel].channel
}));
};
/**
... ...
... ... @@ -2,7 +2,7 @@
* @Author: Targaryen
* @Date: 2016-05-19 10:20:08
* @Last Modified by: Targaryen
* @Last Modified time: 2016-06-07 09:40:35
* @Last Modified time: 2016-06-07 10:10:38
*/
'use strict';
... ... @@ -128,7 +128,7 @@ exports.getSaleGoodsData = (params) => {
exports.getSaleIndexData = (channel) => {
return api.all([
saleApi.getSaleActivityList(),
saleApi.getSaleActivityList(channel),
saleApi.getSaleBannerList(contentCode[channel].sale),
saleApi.getSaleGoodsList({ channel: channel, saleType: '2' }), // 会员专享分类
saleApi.getSaleGoodsList({ channel: channel, saleType: '1' }), // 断码区分类
... ...