修改 多余请求 review by zhanglixia
Showing
2 changed files
with
9 additions
and
2 deletions
@@ -46,8 +46,12 @@ export default class OutletPageListView extends Component { | @@ -46,8 +46,12 @@ export default class OutletPageListView extends Component { | ||
46 | resource, | 46 | resource, |
47 | } = this.props; | 47 | } = this.props; |
48 | 48 | ||
49 | - this.props.getOutletHomeResource && this.props.getOutletHomeResource(resource.get('content_code'),ptr); | ||
50 | - this.props.getOutletActivityList && this.props.getOutletActivityList(resource.get('content_code')); | 49 | + if (resource.get('sort_name')=='即将开始' || resource.get('sort_name') == '即将结束') { |
50 | + this.props.getOutletActivityList && this.props.getOutletActivityList(resource.get('content_code')); | ||
51 | + }else { | ||
52 | + this.props.getOutletHomeResource && this.props.getOutletHomeResource(resource.get('content_code'),ptr); | ||
53 | + this.props.getOutletActivityList && this.props.getOutletActivityList(resource.get('content_code')); | ||
54 | + } | ||
51 | } | 55 | } |
52 | 56 | ||
53 | _onPressFilter(value){ | 57 | _onPressFilter(value){ |
@@ -78,6 +78,9 @@ function parseListFromCategory(json) { | @@ -78,6 +78,9 @@ function parseListFromCategory(json) { | ||
78 | json.map((item, i) => { | 78 | json.map((item, i) => { |
79 | let url = item.sort_url; | 79 | let url = item.sort_url; |
80 | let content_code = GetQueryString(url,'content_code'); | 80 | let content_code = GetQueryString(url,'content_code'); |
81 | + if (!content_code) { | ||
82 | + content_code = item.content_code; | ||
83 | + } | ||
81 | item.content_code = content_code; | 84 | item.content_code = content_code; |
82 | }) | 85 | }) |
83 | return json; | 86 | return json; |
-
Please register or login to post a comment