Authored by 王海元
Committed by 王海元

UI修改 --review by 孙凯

@@ -172,15 +172,12 @@ export default class Product extends Component { @@ -172,15 +172,12 @@ export default class Product extends Component {
172 currentTab, 172 currentTab,
173 } = this.props.data; 173 } = this.props.data;
174 let {productList} = globalProduct; 174 let {productList} = globalProduct;
175 - if (productList.size == 0) {  
176 - return null;  
177 - }  
178 let {selectedProductList, categoryList, selectedCategoryIndex} = commonProduct; 175 let {selectedProductList, categoryList, selectedCategoryIndex} = commonProduct;
179 let isShow = currentTab === 'common' && selectedProductList.size > 0; 176 let isShow = currentTab === 'common' && selectedProductList.size > 0;
180 177
181 return ( 178 return (
182 <View> 179 <View>
183 - <TabHeader 180 + {productList.size > 0 ? <TabHeader
184 currentTab={currentTab} 181 currentTab={currentTab}
185 onPressTab={(tab)=>{ 182 onPressTab={(tab)=>{
186 if (tab == currentTab) { 183 if (tab == currentTab) {
@@ -190,7 +187,7 @@ export default class Product extends Component { @@ -190,7 +187,7 @@ export default class Product extends Component {
190 this.setState({currentlyOpenSwipeable: null}); 187 this.setState({currentlyOpenSwipeable: null});
191 this.props.onPressTab && this.props.onPressTab(tab); 188 this.props.onPressTab && this.props.onPressTab(tab);
192 }} 189 }}
193 - /> 190 + /> : null}
194 {isShow ? <CategorySelector 191 {isShow ? <CategorySelector
195 data={categoryList} 192 data={categoryList}
196 selectedCategoryIndex={selectedCategoryIndex} 193 selectedCategoryIndex={selectedCategoryIndex}