...
|
...
|
@@ -241,19 +241,29 @@ class UserContainer extends React.Component { |
|
|
let isRefreshing = ptr;
|
|
|
let userInfo = Immutable.fromJS([profile]);
|
|
|
let isLoadingMore, endReached;
|
|
|
let endReachedText = '暂无更多';
|
|
|
|
|
|
if (activeTab === 0) {
|
|
|
isLoadingMore = !ptr && postsData.isFetching;
|
|
|
isFetching = postsData.isFetching;
|
|
|
endReached = postsData.endReached;
|
|
|
if (postsData.list.size == 0) {
|
|
|
endReachedText = '你还没有发布的帖子';
|
|
|
}
|
|
|
} else if (activeTab === 1) {
|
|
|
isLoadingMore = !ptr && likeData.isFetching;
|
|
|
isFetching = likeData.isFetching;
|
|
|
endReached = likeData.endReached;
|
|
|
if (likeData.list.size == 0) {
|
|
|
endReachedText = '你还没有赞过的帖子';
|
|
|
}
|
|
|
} else if (activeTab === 2) {
|
|
|
isLoadingMore = !ptr && replyData.isFetching;
|
|
|
isFetching = replyData.isFetching;
|
|
|
endReached = replyData.endReached;
|
|
|
if (replyData.list.size == 0) {
|
|
|
endReachedText = '你还没有回复过的帖子';
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return (
|
...
|
...
|
@@ -278,7 +288,10 @@ class UserContainer extends React.Component { |
|
|
isRefreshing={isRefreshing}
|
|
|
isLoadingMore={isLoadingMore}
|
|
|
onEndReached={this._onEndReached}
|
|
|
onChangeTab={this._onChangeTab}
|
|
|
rightButtonClick={this._rightButtonClick}
|
|
|
endReachedText={endReachedText}
|
|
|
activeTab={activeTab}
|
|
|
/>
|
|
|
</View>
|
|
|
);
|
...
|
...
|
|