...
|
...
|
@@ -78,10 +78,14 @@ function parseListFromCategory(json) { |
|
|
json.map((item, i) => {
|
|
|
let url = item.sort_url;
|
|
|
let content_code = GetQueryString(url,'content_code');
|
|
|
let type = GetQueryString(url,'type');
|
|
|
let yh_channel = GetQueryString(url,'yh_channel');
|
|
|
if (!content_code) {
|
|
|
content_code = item.content_code;
|
|
|
}
|
|
|
item.content_code = content_code;
|
|
|
item.type = type?type:0;
|
|
|
item.yh_channel=yh_channel?yh_channel:0;
|
|
|
})
|
|
|
return json;
|
|
|
}
|
...
|
...
|
@@ -228,12 +232,12 @@ export function getOutletActivityListFailure(content_code,error) { |
|
|
}
|
|
|
}
|
|
|
|
|
|
export function getOutletActivityList(content_code) {
|
|
|
export function getOutletActivityList(content_code,yh_channel,type) {
|
|
|
return (dispatch, getState) => {
|
|
|
let {app, outlet} = getState();
|
|
|
let {categoryList} = outlet;
|
|
|
dispatch(getOutletActivityListRequest(content_code));
|
|
|
return new OutletService(app.host).getOutletActivityList(app.yh_channel)
|
|
|
return new OutletService(app.host).getOutletActivityList(yh_channel,type)
|
|
|
.then(json => {
|
|
|
dispatch(getOutletActivityListSuccess({'json':json,'content_code':content_code}));
|
|
|
})
|
...
|
...
|
|