...
|
...
|
@@ -114,6 +114,7 @@ const convertActicityData = (data) => { |
|
|
discountText = transDiscountToArr(discountArr[1])[1];
|
|
|
}
|
|
|
|
|
|
|
|
|
formatData.push({
|
|
|
activityUrl: '/product/outlet/activity?id=' + item.id,
|
|
|
coverUrl: item.coverUrl,
|
...
|
...
|
@@ -121,6 +122,7 @@ const convertActicityData = (data) => { |
|
|
title: item.title,
|
|
|
discountNum: discountNum,
|
|
|
discountText: discountText,
|
|
|
productPoolId: item.productPoolId || '',
|
|
|
leftTime: item.startLeftTime > 0 ? dateFormate(item.startTime) : item.endLeftTime,
|
|
|
hide: false
|
|
|
});
|
...
|
...
|
@@ -134,12 +136,10 @@ const getActivityDetail = (id) => { |
|
|
method: 'app.outlets.activityGet',
|
|
|
sort: 1,
|
|
|
platform: 3,
|
|
|
// yh_channel: 1,
|
|
|
id: id,
|
|
|
// type: 0
|
|
|
type: 0
|
|
|
};
|
|
|
|
|
|
console.log(id);
|
|
|
|
|
|
return api.get('', sign.apiSign(params)).then(res => {
|
|
|
if (res.code === 200) {
|
...
|
...
|
@@ -183,7 +183,6 @@ exports.getContent = (categoryId, channel, code) => { |
|
|
|
|
|
exports.getActivity = (id) => {
|
|
|
return getActivityDetail(id).then(res => {
|
|
|
console.log(res);
|
|
|
return {
|
|
|
activity: res,
|
|
|
productPool: res[0] && res[0].productPoolId || '',
|
...
|
...
|
|