Authored by biao

update for activity detail

@@ -132,13 +132,15 @@ const convertActicityData = (data) => { @@ -132,13 +132,15 @@ const convertActicityData = (data) => {
132 const getActivityDetail = (id) => { 132 const getActivityDetail = (id) => {
133 var params = { 133 var params = {
134 method: 'app.outlets.activityGet', 134 method: 'app.outlets.activityGet',
135 - sort: 2, 135 + sort: 1,
136 platform: 3, 136 platform: 3,
137 - yh_channel: 1, 137 + // yh_channel: 1,
138 id: id, 138 id: id,
139 - type: 0 139 + // type: 0
140 }; 140 };
141 141
  142 + console.log(id);
  143 +
142 return api.get('', sign.apiSign(params)).then(res => { 144 return api.get('', sign.apiSign(params)).then(res => {
143 if (res.code === 200) { 145 if (res.code === 200) {
144 return convertActicityData(res.data); 146 return convertActicityData(res.data);
@@ -181,6 +183,7 @@ exports.getContent = (categoryId, channel, code) => { @@ -181,6 +183,7 @@ exports.getContent = (categoryId, channel, code) => {
181 183
182 exports.getActivity = (id) => { 184 exports.getActivity = (id) => {
183 return getActivityDetail(id).then(res => { 185 return getActivityDetail(id).then(res => {
  186 + console.log(res);
184 return { 187 return {
185 activity: res, 188 activity: res,
186 productPool: res[0] && res[0].productPoolId || '', 189 productPool: res[0] && res[0].productPoolId || '',