...
|
...
|
@@ -6,6 +6,7 @@ import {Immutable} from "immutable"; |
|
|
import SingleImage from './floor/SingleImage';
|
|
|
import MineCell from './cell/MineCell';
|
|
|
import YH_Image from '../../common/components/YH_Image';
|
|
|
import Prompt from "../../common/components/Prompt";
|
|
|
|
|
|
|
|
|
export default class Mine extends Component {
|
...
|
...
|
@@ -77,7 +78,11 @@ export default class Mine extends Component { |
|
|
<View style={{height: 1, backgroundColor: '#f0f0f0'}}/>
|
|
|
|
|
|
<TouchableOpacity activeOpacity={1} style={styles.withdrawView} onPress={() => {
|
|
|
if (uploadStatus) {
|
|
|
this.props.showToastMessage && this.props.showToastMessage('身份证已上传,如需修改请联系有货客服');
|
|
|
} else {
|
|
|
this.props.jumpWithUrl && this.props.jumpWithUrl('我的身份证', 'nameAuthen');
|
|
|
}
|
|
|
}}>
|
|
|
<Text style={styles.hasWithDrawText}>我的身份证</Text>
|
|
|
<View style={[styles.textView, {flexDirection: 'row', paddingRight: 15}]}>
|
...
|
...
|
@@ -108,7 +113,7 @@ export default class Mine extends Component { |
|
|
<Image style={styles.arrowImage} source={require('../images/arrow.png')}/>
|
|
|
</View>
|
|
|
</TouchableOpacity>
|
|
|
|
|
|
|
|
|
<View style={{height: 10, backgroundColor: '#f0f0f0'}}/>
|
|
|
</View>
|
|
|
);
|
...
|
...
|
@@ -141,7 +146,7 @@ export default class Mine extends Component { |
|
|
}
|
|
|
|
|
|
render() {
|
|
|
let {mineResourceInfo} = this.props;
|
|
|
let {mineResourceInfo, isShowToast, toastMessage} = this.props;
|
|
|
let resourceList = mineResourceInfo.resourceList ? mineResourceInfo.resourceList.toArray() : [];
|
|
|
return (
|
|
|
<View style={styles.container}>
|
...
|
...
|
@@ -155,6 +160,12 @@ export default class Mine extends Component { |
|
|
renderHeader={this._renderHeader}
|
|
|
renderRow={this._renderRow}
|
|
|
/>
|
|
|
|
|
|
{isShowToast ? <Prompt
|
|
|
text={toastMessage}
|
|
|
duration={1500}
|
|
|
onPromptHidden={this.props.hideToastMessage}
|
|
|
/> : null}
|
|
|
</View>
|
|
|
);
|
|
|
}
|
...
|
...
|
|