Authored by 孙凯

修改 多余请求 review by zhanglixia

... ... @@ -46,8 +46,12 @@ export default class OutletPageListView extends Component {
resource,
} = this.props;
this.props.getOutletHomeResource && this.props.getOutletHomeResource(resource.get('content_code'),ptr);
this.props.getOutletActivityList && this.props.getOutletActivityList(resource.get('content_code'));
if (resource.get('sort_name')=='即将开始' || resource.get('sort_name') == '即将结束') {
this.props.getOutletActivityList && this.props.getOutletActivityList(resource.get('content_code'));
}else {
this.props.getOutletHomeResource && this.props.getOutletHomeResource(resource.get('content_code'),ptr);
this.props.getOutletActivityList && this.props.getOutletActivityList(resource.get('content_code'));
}
}
_onPressFilter(value){
... ...
... ... @@ -78,6 +78,9 @@ function parseListFromCategory(json) {
json.map((item, i) => {
let url = item.sort_url;
let content_code = GetQueryString(url,'content_code');
if (!content_code) {
content_code = item.content_code;
}
item.content_code = content_code;
})
return json;
... ...