...
|
...
|
@@ -99,14 +99,14 @@ class Sale { |
|
|
* @param {[object]} params
|
|
|
* @return {[array]}
|
|
|
*/
|
|
|
static discount(params) {
|
|
|
params = params || {};
|
|
|
|
|
|
return api.get('', sign.apiSign(Object.assign({
|
|
|
static discount(yhChannel) {
|
|
|
yhChannel = yhChannel || 'boys';
|
|
|
return api.get('', sign.apiSign({
|
|
|
method: 'app.activity.get',
|
|
|
sort: 2,
|
|
|
plateform: 3
|
|
|
}, params)));
|
|
|
plateform: 3,
|
|
|
yh_channel: channelType[yhChannel] || '1'
|
|
|
}));
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -312,7 +312,7 @@ class Sale { |
|
|
static getDiscountData(params) {
|
|
|
const discountData = {};
|
|
|
|
|
|
return Sale.discount().then((result) => {
|
|
|
return Sale.discount(params).then((result) => {
|
|
|
if (result && result.code === 200) {
|
|
|
discountData.data = Sale.processDiscount(result.data, params);
|
|
|
return discountData;
|
...
|
...
|
|