整理代码 review by zhanglixia
Showing
1 changed file
with
1 additions
and
6 deletions
@@ -119,16 +119,11 @@ export default class OutletPageListView extends Component { | @@ -119,16 +119,11 @@ export default class OutletPageListView extends Component { | ||
119 | let honeResource = resource.get('honeResource'); | 119 | let honeResource = resource.get('honeResource'); |
120 | let activityList = resource.get('activityList'); | 120 | let activityList = resource.get('activityList'); |
121 | let categoryNavigationList = resource.get('categoryNavigationList')?resource.get('categoryNavigationList').toArray():null; | 121 | let categoryNavigationList = resource.get('categoryNavigationList')?resource.get('categoryNavigationList').toArray():null; |
122 | - | ||
123 | let productObj = categoryNavigationList?categoryNavigationList[0].get('list'):null; | 122 | let productObj = categoryNavigationList?categoryNavigationList[0].get('list'):null; |
124 | let productList = productObj?productObj.get('product_list'):null; | 123 | let productList = productObj?productObj.get('product_list'):null; |
125 | let error = resource.get('error'); | 124 | let error = resource.get('error'); |
126 | let ptr = resource.get('ptr')==true ? true : false; | 125 | let ptr = resource.get('ptr')==true ? true : false; |
127 | - | ||
128 | - let list; | ||
129 | - if (honeResource) { | ||
130 | - list = honeResource.get('list'); | ||
131 | - } | 126 | + let list = list = honeResource?honeResource.get('list'):null; |
132 | 127 | ||
133 | let dataSource = { | 128 | let dataSource = { |
134 | outletHomeReource: list?list.toArray():[], | 129 | outletHomeReource: list?list.toArray():[], |
-
Please register or login to post a comment