...
|
...
|
@@ -132,13 +132,15 @@ const convertActicityData = (data) => { |
|
|
const getActivityDetail = (id) => {
|
|
|
var params = {
|
|
|
method: 'app.outlets.activityGet',
|
|
|
sort: 2,
|
|
|
sort: 1,
|
|
|
platform: 3,
|
|
|
yh_channel: 1,
|
|
|
// yh_channel: 1,
|
|
|
id: id,
|
|
|
type: 0
|
|
|
// type: 0
|
|
|
};
|
|
|
|
|
|
console.log(id);
|
|
|
|
|
|
return api.get('', sign.apiSign(params)).then(res => {
|
|
|
if (res.code === 200) {
|
|
|
return convertActicityData(res.data);
|
...
|
...
|
@@ -181,6 +183,7 @@ 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 || '',
|
...
|
...
|
|