...
|
...
|
@@ -8,7 +8,7 @@ import {Map} from 'immutable'; |
|
|
import * as allianceActions from '../reducers/alliance/allianceActions';
|
|
|
import WithdrawalRecord from "../components/WithdrawalRecord";
|
|
|
import LoadingIndicator from '../../common/components/LoadingIndicator';
|
|
|
import {StyleSheet, View} from "react-native";
|
|
|
import ReactNative, {StyleSheet, View} from "react-native";
|
|
|
|
|
|
const actions = [
|
|
|
allianceActions,
|
...
|
...
|
@@ -37,28 +37,37 @@ class WithdrawalRecordContainer extends Component { |
|
|
constructor(props) {
|
|
|
super(props);
|
|
|
this._onEndReached = this._onEndReached.bind(this);
|
|
|
this._jumpWithUrl = this._jumpWithUrl.bind(this);
|
|
|
}
|
|
|
|
|
|
componentDidMount() {
|
|
|
this.props.actions.getSettlementRecord();
|
|
|
this.props.actions.getIdentityCardInfo();
|
|
|
}
|
|
|
|
|
|
componentWillUnmount() {
|
|
|
|
|
|
}
|
|
|
|
|
|
_jumpWithUrl(title = '', type = '') {
|
|
|
let url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.minealliance","params":{"title":"${title}","type":"${type}"}}`;
|
|
|
ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(url);
|
|
|
}
|
|
|
|
|
|
_onEndReached() {
|
|
|
this.props.actions.getSettlementRecord();
|
|
|
}
|
|
|
|
|
|
render() {
|
|
|
let {settlementRecordList} = this.props.alliance;
|
|
|
let {settlementRecordList, identityCardInfo} = this.props.alliance;
|
|
|
let isFetching = settlementRecordList.isFetching;
|
|
|
return (
|
|
|
<View style={styles.container}>
|
|
|
<WithdrawalRecord
|
|
|
settlementRecordList={settlementRecordList}
|
|
|
onEndReached={this._onEndReached}/>
|
|
|
identityCardInfo={identityCardInfo}
|
|
|
onEndReached={this._onEndReached}
|
|
|
jumpWithUrl={this._jumpWithUrl}/>
|
|
|
<LoadingIndicator isVisible={isFetching}/>
|
|
|
</View>
|
|
|
)
|
...
|
...
|
|