Authored by 王水玲

sale bug 修改

... ... @@ -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;
... ...
... ... @@ -103,6 +103,7 @@
min-height: 60px;
color: #444;
font-size: 22px;
line-height: 28px;
}
.price {
... ...