...
|
...
|
@@ -25,7 +25,6 @@ const actions = [ |
|
|
accountSettlementActions,
|
|
|
];
|
|
|
|
|
|
|
|
|
function mapStateToProps(state) {
|
|
|
return {
|
|
|
...state
|
...
|
...
|
@@ -53,24 +52,33 @@ export default class AccountSettlementContainer extends Component { |
|
|
}
|
|
|
|
|
|
componentDidMount() {
|
|
|
this.props.actions.nextPageOfDataRequest();
|
|
|
fetchNextPage();
|
|
|
}
|
|
|
|
|
|
fetchNextPage(){
|
|
|
this.props.actions.nextPageOfDataRequest();
|
|
|
let params = {
|
|
|
page: this.props.actStmt.currentPage+1,
|
|
|
size: 20,
|
|
|
brandId: this.props.home.get('brandId'),
|
|
|
}
|
|
|
this.props.actions.nextPageOfDataRequest(params);
|
|
|
}
|
|
|
render() {
|
|
|
let dataBlob = {
|
|
|
'SECTION_HEADER':[{title:'累计结算金额(元)',content:'12567.00'}],
|
|
|
'SECTION_HEADER':[{title:'累计结算金额(元)',content:`${this.props.actStmt.sum}`}],
|
|
|
'SECTION_SEPORATOR':[{}],
|
|
|
'SECTION_TITLE':[{}],
|
|
|
'SECTION_CONTENT':this.props.actStmt.jsonData,
|
|
|
};
|
|
|
let mapBlob = Immutable.fromJS(dataBlob);
|
|
|
let end = this.props.actStmt.currentPage>=this.props.actStmt.pageCount;
|
|
|
|
|
|
return (
|
|
|
<AccountSettlement
|
|
|
dataBlob={mapBlob}
|
|
|
fetchNextPage={this.fetchNextPage}
|
|
|
isFetching={this.props.actStmt.isFetching}
|
|
|
reachEnd={end}
|
|
|
/>
|
|
|
|
|
|
);
|
...
|
...
|
|