Showing
3 changed files
with
124 additions
and
12 deletions
@@ -6,6 +6,7 @@ import HelpTipsModal from "./HelpTipsModal"; | @@ -6,6 +6,7 @@ import HelpTipsModal from "./HelpTipsModal"; | ||
6 | import SureModal from "./SureModal"; | 6 | import SureModal from "./SureModal"; |
7 | import WithdrawModal from "./WithdrawModal"; | 7 | import WithdrawModal from "./WithdrawModal"; |
8 | import CheckSettleModal from "./CheckSettleModal"; | 8 | import CheckSettleModal from "./CheckSettleModal"; |
9 | +import UploadCardModal from "./UploadCardModal"; | ||
9 | import ScrollableTabView from 'react-native-scrollable-tab-view'; | 10 | import ScrollableTabView from 'react-native-scrollable-tab-view'; |
10 | import TabStatistics from '../components/TabStatistics'; | 11 | import TabStatistics from '../components/TabStatistics'; |
11 | import Statistics from "./Statistics"; | 12 | import Statistics from "./Statistics"; |
@@ -79,13 +80,6 @@ export default class Data extends Component { | @@ -79,13 +80,6 @@ export default class Data extends Component { | ||
79 | <TipsAlertItem showStatus='sure' handleAction={this._jumpBindCardUrl}>去绑定</TipsAlertItem> | 80 | <TipsAlertItem showStatus='sure' handleAction={this._jumpBindCardUrl}>去绑定</TipsAlertItem> |
80 | <TipsAlertItem showStatus='cancel' handleAction={this.props.hiddenTipsAlertDialog}>取消</TipsAlertItem> | 81 | <TipsAlertItem showStatus='cancel' handleAction={this.props.hiddenTipsAlertDialog}>取消</TipsAlertItem> |
81 | </TipsAlert> | 82 | </TipsAlert> |
82 | - <TipsAlert | ||
83 | - tips={this.props.tips} | ||
84 | - isShow={this.props.isShowBindAlert} | ||
85 | - > | ||
86 | - <TipsAlertItem showStatus='cancel' handleAction={this.props.hiddenBindAlertDialog}>取消</TipsAlertItem> | ||
87 | - <TipsAlertItem showStatus='sure' handleAction={this._jumpBindIdentityCardUrl}>去上传</TipsAlertItem> | ||
88 | - </TipsAlert> | ||
89 | <HelpTipsModal | 83 | <HelpTipsModal |
90 | tips={this.props.tips} | 84 | tips={this.props.tips} |
91 | isShowHelp={isShowHelp} | 85 | isShowHelp={isShowHelp} |
@@ -102,6 +96,10 @@ export default class Data extends Component { | @@ -102,6 +96,10 @@ export default class Data extends Component { | ||
102 | isShowWithCheck={isShowCheckSettleDialog} | 96 | isShowWithCheck={isShowCheckSettleDialog} |
103 | showWithdrawalDialog={this.props.showWithdrawalDialog} | 97 | showWithdrawalDialog={this.props.showWithdrawalDialog} |
104 | hiddenCheckSettleDialog={this.props.hiddenCheckSettleDialog}/> | 98 | hiddenCheckSettleDialog={this.props.hiddenCheckSettleDialog}/> |
99 | + <UploadCardModal | ||
100 | + isShow={this.props.isShowBindAlert} | ||
101 | + jumpBindIdentityCardUrl={this._jumpBindIdentityCardUrl} | ||
102 | + hiddenBindAlertDialog={this.props.hiddenBindAlertDialog}/> | ||
105 | <View style={styles.headerBackground}> | 103 | <View style={styles.headerBackground}> |
106 | <Text style={styles.canWithDrawText}>可提现金额</Text> | 104 | <Text style={styles.canWithDrawText}>可提现金额</Text> |
107 | <View style={styles.amountView}> | 105 | <View style={styles.amountView}> |
@@ -128,7 +126,7 @@ export default class Data extends Component { | @@ -128,7 +126,7 @@ export default class Data extends Component { | ||
128 | 126 | ||
129 | } else { | 127 | } else { |
130 | if (!isIDBind) { | 128 | if (!isIDBind) { |
131 | - this.props.showBindAlertDialog && this.props.showBindAlertDialog('结算收益时需按照国家规定预扣个税,因此需先上传身份证信息 。若未提供正确有效的身份信息将导致扣税失败而影响提现。'); | 129 | + this.props.showBindAlertDialog && this.props.showBindAlertDialog(); |
132 | return | 130 | return |
133 | } else { | 131 | } else { |
134 | this.props.showCheckSettleDialog && this.props.showCheckSettleDialog(); | 132 | this.props.showCheckSettleDialog && this.props.showCheckSettleDialog(); |
js/alliance/components/UploadCardModal.js
0 → 100644
1 | +'use strict'; | ||
2 | + | ||
3 | +import React from 'react'; | ||
4 | +import ReactNative from 'react-native'; | ||
5 | + | ||
6 | +const { | ||
7 | + AppRegistry, | ||
8 | + StyleSheet, | ||
9 | + Text, | ||
10 | + View, | ||
11 | + Dimensions, | ||
12 | + TouchableOpacity, | ||
13 | + Modal, | ||
14 | +} = ReactNative; | ||
15 | + | ||
16 | + | ||
17 | +export default class UploadCardModal extends React.Component { | ||
18 | + constructor(props) { | ||
19 | + super(props); | ||
20 | + } | ||
21 | + | ||
22 | + render() { | ||
23 | + return ( | ||
24 | + <Modal | ||
25 | + visible={this.props.isShow} | ||
26 | + animationType={'none'} | ||
27 | + transparent={true} | ||
28 | + onRequestClose={() => { | ||
29 | + }}> | ||
30 | + <View style={styles.modalContainer}> | ||
31 | + <View style={styles.modalView}> | ||
32 | + <View style={styles.confirmTitleContainer}> | ||
33 | + <Text style={[styles.sure, {marginTop: 20}]}>提示</Text> | ||
34 | + <Text style={[styles.confirmContent, {marginTop: 8}]}>结算收益时需按照国家规定预扣个税,因此需先上传身份证信息 。若未提供正确有效的身份信息将导致扣税失败而影响提现。</Text> | ||
35 | + </View> | ||
36 | + <View style={{width: '100%', height: 0.5, marginTop: 20, backgroundColor: '#e0e0e0'}}/> | ||
37 | + <View style={styles.confirmBtnContainer}> | ||
38 | + <TouchableOpacity | ||
39 | + style={{width: '49%', alignItems: 'center', justifyContent: 'center', height: 45.5}} | ||
40 | + onPress={() => { | ||
41 | + this.props.hiddenBindAlertDialog && this.props.hiddenBindAlertDialog(); | ||
42 | + }}> | ||
43 | + <Text style={styles.cancel}>取消</Text> | ||
44 | + </TouchableOpacity> | ||
45 | + <View style={{width: 0.5, height: 45, backgroundColor: '#e0e0e0'}}/> | ||
46 | + <TouchableOpacity | ||
47 | + style={{width: '49%', alignItems: 'center', justifyContent: 'center', height: 45.5}} | ||
48 | + onPress={() => { | ||
49 | + this.props.hiddenBindAlertDialog && this.props.hiddenBindAlertDialog(); | ||
50 | + this.props.jumpBindIdentityCardUrl && this.props.jumpBindIdentityCardUrl(); | ||
51 | + }}> | ||
52 | + <Text style={styles.sure}>去上传</Text> | ||
53 | + </TouchableOpacity> | ||
54 | + </View> | ||
55 | + </View> | ||
56 | + </View> | ||
57 | + </Modal> | ||
58 | + ); | ||
59 | + } | ||
60 | +}; | ||
61 | + | ||
62 | +let {width, height} = Dimensions.get('window'); | ||
63 | + | ||
64 | +let styles = StyleSheet.create({ | ||
65 | + modalContainer: { | ||
66 | + flex: 1, | ||
67 | + width: width, | ||
68 | + height: height, | ||
69 | + alignItems: 'center', | ||
70 | + justifyContent: 'center', | ||
71 | + backgroundColor: 'rgba(0, 0, 0, 0.4)', | ||
72 | + }, | ||
73 | + modalView: { | ||
74 | + width: 270, | ||
75 | + borderRadius: 5, | ||
76 | + backgroundColor: '#ffffff', | ||
77 | + }, | ||
78 | + confirmBtnContainer: { | ||
79 | + width: '100%', | ||
80 | + height: 44.5, | ||
81 | + flexDirection: 'row', | ||
82 | + }, | ||
83 | + confirmTitleContainer: { | ||
84 | + alignItems: 'center' | ||
85 | + }, | ||
86 | + confirmInfo: { | ||
87 | + color: '#B0B0B0', | ||
88 | + fontSize: 12, | ||
89 | + paddingLeft: 44, | ||
90 | + letterSpacing: -0.07, | ||
91 | + fontFamily: 'PingFang-SC-Regular', | ||
92 | + }, | ||
93 | + confirmContent: { | ||
94 | + marginLeft: 30, | ||
95 | + marginRight: 30, | ||
96 | + color: '#444444', | ||
97 | + fontSize: 14, | ||
98 | + lineHeight: 23, | ||
99 | + textAlign: 'center', | ||
100 | + letterSpacing: -0.09, | ||
101 | + fontFamily: 'PingFang-SC-Regular', | ||
102 | + includeFontPadding: false, | ||
103 | + }, | ||
104 | + cancel: { | ||
105 | + fontSize: 17, | ||
106 | + color: '#444444', | ||
107 | + letterSpacing: -0.41, | ||
108 | + fontFamily: 'PingFang-SC-Regular', | ||
109 | + }, | ||
110 | + sure: { | ||
111 | + fontSize: 17, | ||
112 | + color: '#D0021B', | ||
113 | + letterSpacing: -0.41, | ||
114 | + fontWeight: 'bold', | ||
115 | + fontFamily: 'PingFang-SC-Regular', | ||
116 | + }, | ||
117 | +}); |
@@ -131,10 +131,7 @@ class DataContainer extends Component { | @@ -131,10 +131,7 @@ class DataContainer extends Component { | ||
131 | this.props.actions.hiddenTipMessage(); | 131 | this.props.actions.hiddenTipMessage(); |
132 | } | 132 | } |
133 | 133 | ||
134 | - _showBindAlertDialog(tips) { | ||
135 | - this.setState({ | ||
136 | - tips, | ||
137 | - }); | 134 | + _showBindAlertDialog() { |
138 | this.props.actions.showBindAlertDialog(); | 135 | this.props.actions.showBindAlertDialog(); |
139 | } | 136 | } |
140 | 137 |
-
Please register or login to post a comment