...
|
...
|
@@ -172,15 +172,12 @@ export default class Product extends Component { |
|
|
currentTab,
|
|
|
} = this.props.data;
|
|
|
let {productList} = globalProduct;
|
|
|
if (productList.size == 0) {
|
|
|
return null;
|
|
|
}
|
|
|
let {selectedProductList, categoryList, selectedCategoryIndex} = commonProduct;
|
|
|
let isShow = currentTab === 'common' && selectedProductList.size > 0;
|
|
|
|
|
|
return (
|
|
|
<View>
|
|
|
<TabHeader
|
|
|
{productList.size > 0 ? <TabHeader
|
|
|
currentTab={currentTab}
|
|
|
onPressTab={(tab)=>{
|
|
|
if (tab == currentTab) {
|
...
|
...
|
@@ -190,7 +187,7 @@ export default class Product extends Component { |
|
|
this.setState({currentlyOpenSwipeable: null});
|
|
|
this.props.onPressTab && this.props.onPressTab(tab);
|
|
|
}}
|
|
|
/>
|
|
|
/> : null}
|
|
|
{isShow ? <CategorySelector
|
|
|
data={categoryList}
|
|
|
selectedCategoryIndex={selectedCategoryIndex}
|
...
|
...
|
|