|
@@ -114,6 +114,7 @@ const convertActicityData = (data) => { |
|
@@ -114,6 +114,7 @@ const convertActicityData = (data) => { |
114
|
discountText = transDiscountToArr(discountArr[1])[1];
|
114
|
discountText = transDiscountToArr(discountArr[1])[1];
|
115
|
}
|
115
|
}
|
116
|
|
116
|
|
|
|
117
|
+
|
117
|
formatData.push({
|
118
|
formatData.push({
|
118
|
activityUrl: '/product/outlet/activity?id=' + item.id,
|
119
|
activityUrl: '/product/outlet/activity?id=' + item.id,
|
119
|
coverUrl: item.coverUrl,
|
120
|
coverUrl: item.coverUrl,
|
|
@@ -121,6 +122,7 @@ const convertActicityData = (data) => { |
|
@@ -121,6 +122,7 @@ const convertActicityData = (data) => { |
121
|
title: item.title,
|
122
|
title: item.title,
|
122
|
discountNum: discountNum,
|
123
|
discountNum: discountNum,
|
123
|
discountText: discountText,
|
124
|
discountText: discountText,
|
|
|
125
|
+ productPoolId: item.productPoolId || '',
|
124
|
leftTime: item.startLeftTime > 0 ? dateFormate(item.startTime) : item.endLeftTime,
|
126
|
leftTime: item.startLeftTime > 0 ? dateFormate(item.startTime) : item.endLeftTime,
|
125
|
hide: false
|
127
|
hide: false
|
126
|
});
|
128
|
});
|
|
@@ -134,12 +136,10 @@ const getActivityDetail = (id) => { |
|
@@ -134,12 +136,10 @@ const getActivityDetail = (id) => { |
134
|
method: 'app.outlets.activityGet',
|
136
|
method: 'app.outlets.activityGet',
|
135
|
sort: 1,
|
137
|
sort: 1,
|
136
|
platform: 3,
|
138
|
platform: 3,
|
137
|
- // yh_channel: 1,
|
|
|
138
|
id: id,
|
139
|
id: id,
|
139
|
- // type: 0
|
140
|
+ type: 0
|
140
|
};
|
141
|
};
|
141
|
|
142
|
|
142
|
- console.log(id);
|
|
|
143
|
|
143
|
|
144
|
return api.get('', sign.apiSign(params)).then(res => {
|
144
|
return api.get('', sign.apiSign(params)).then(res => {
|
145
|
if (res.code === 200) {
|
145
|
if (res.code === 200) {
|
|
@@ -183,7 +183,6 @@ exports.getContent = (categoryId, channel, code) => { |
|
@@ -183,7 +183,6 @@ exports.getContent = (categoryId, channel, code) => { |
183
|
|
183
|
|
184
|
exports.getActivity = (id) => {
|
184
|
exports.getActivity = (id) => {
|
185
|
return getActivityDetail(id).then(res => {
|
185
|
return getActivityDetail(id).then(res => {
|
186
|
- console.log(res);
|
|
|
187
|
return {
|
186
|
return {
|
188
|
activity: res,
|
187
|
activity: res,
|
189
|
productPool: res[0] && res[0].productPoolId || '',
|
188
|
productPool: res[0] && res[0].productPoolId || '',
|