...
|
...
|
@@ -54,6 +54,8 @@ class HaggleListContainer extends Component { |
|
|
json && json.forEach(item => {
|
|
|
})
|
|
|
});
|
|
|
this.props.actions.getHaggleProductList();
|
|
|
|
|
|
}
|
|
|
|
|
|
componentWillUnmount() {
|
...
|
...
|
@@ -144,6 +146,7 @@ class HaggleListContainer extends Component { |
|
|
render() {
|
|
|
let {productList, myHaggleProductList, resourceInfo, isShowAlert, categoryType} = this.props.haggle;
|
|
|
let isFetching = productList.isFetching || myHaggleProductList.isFetching;
|
|
|
let isPullToRefresh = productList.isPullToRefresh || myHaggleProductList.isPullToRefresh;
|
|
|
|
|
|
return (
|
|
|
<View style={styles.container}>
|
...
|
...
|
@@ -178,6 +181,7 @@ class HaggleListContainer extends Component { |
|
|
resourceJumpWithUrl={this._resourceJumpWithUrl}
|
|
|
onRefresh={this._onRefresh}
|
|
|
/>
|
|
|
<LoadingIndicator isVisible={isFetching && !isPullToRefresh}/>
|
|
|
</View>
|
|
|
);
|
|
|
}
|
...
|
...
|
|