...
|
...
|
@@ -39,6 +39,7 @@ export default class NameAuthen extends Component { |
|
|
|
|
|
renderHeader(title) {
|
|
|
return <View style={styles.headerDetailContainer}>
|
|
|
<View style={{width: width, height: 0.5, backgroundColor: '#e0e0e0'}}/>
|
|
|
<Text style={styles.headerTitle} numberOfLines={1}>{title}</Text>
|
|
|
</View>
|
|
|
}
|
...
|
...
|
@@ -77,9 +78,9 @@ export default class NameAuthen extends Component { |
|
|
}
|
|
|
}}>
|
|
|
{hasImage ?
|
|
|
<YH_Image resizeMode="contain" url={imageUrl} style={[styles.viewImage, {backgroundColor: 'transparent', borderWidth: 0,}]}/>
|
|
|
<YH_Image resizeMode="contain" url={imageUrl} style={styles.leftViewImage}/>
|
|
|
:
|
|
|
<Image style={styles.viewImage} resizeMode={'contain'} source={addImage}/>
|
|
|
<Image resizeMode={'contain'} source={addImage} style={isBack ? styles.rightViewImage : styles.leftViewImage}/>
|
|
|
}
|
|
|
</TouchableOpacity>
|
|
|
<TouchableOpacity hitSlop={{top: 3, left: 3, bottom: 3, right: 3}} activeOpacity={1.0} style={styles.addImageClose}
|
...
|
...
|
@@ -199,18 +200,19 @@ export default class NameAuthen extends Component { |
|
|
{this.renderMeritCell('身份证信息需与提现银行卡信息匹配,否则无法正常提现成功。')}
|
|
|
|
|
|
{this.renderIDCardAddDetailCell()}
|
|
|
</ScrollView>
|
|
|
|
|
|
<TouchableOpacity style={[styles.submitButton, buttonDisabled ? styles.disabledButton : {}]}
|
|
|
disabled={buttonDisabled}
|
|
|
onPress={()=> {
|
|
|
if (this.state.backIDCardImageUri.length > 0 && this.state.frontIDCardImageUri.length > 0) {
|
|
|
this.props.bindIdentityCard && this.props.bindIdentityCard(this.state.frontIDCardImageUri, this.state.backIDCardImageUri);
|
|
|
<TouchableOpacity style={[styles.submitButton, buttonDisabled ? styles.disabledButton : {}]}
|
|
|
disabled={buttonDisabled}
|
|
|
onPress={()=> {
|
|
|
if (this.state.backIDCardImageUri.length > 0 && this.state.frontIDCardImageUri.length > 0) {
|
|
|
this.props.bindIdentityCard && this.props.bindIdentityCard(this.state.frontIDCardImageUri, this.state.backIDCardImageUri);
|
|
|
|
|
|
}
|
|
|
}}>
|
|
|
<Text style={styles.buttonText}>{'提交'}</Text>
|
|
|
</TouchableOpacity>
|
|
|
}
|
|
|
}}>
|
|
|
<Text style={styles.buttonText}>{'提交'}</Text>
|
|
|
</TouchableOpacity>
|
|
|
|
|
|
</ScrollView>
|
|
|
|
|
|
{isShowToast ? <Prompt
|
|
|
text={toastMessage}
|
...
|
...
|
@@ -247,6 +249,7 @@ let styles = StyleSheet.create({ |
|
|
fontSize: 17,
|
|
|
color: '#444444',
|
|
|
letterSpacing: 0,
|
|
|
fontWeight: 'bold',
|
|
|
},
|
|
|
meritCell: {
|
|
|
marginTop: 10,
|
...
|
...
|
@@ -300,8 +303,9 @@ let styles = StyleSheet.create({ |
|
|
submitButton: {
|
|
|
marginLeft: 15,
|
|
|
marginRight: 15,
|
|
|
marginBottom: 33,
|
|
|
marginTop: 44,
|
|
|
height: 44,
|
|
|
borderRadius: 4,
|
|
|
backgroundColor: '#002B47',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center',
|
...
|
...
|
@@ -321,12 +325,20 @@ let styles = StyleSheet.create({ |
|
|
},
|
|
|
renderIDCardAddCellImage: {
|
|
|
width: (width-30)/2,
|
|
|
alignItems: 'center'
|
|
|
},
|
|
|
viewImage: {
|
|
|
leftViewImage: {
|
|
|
width: (width-50)/2,
|
|
|
height: 101,
|
|
|
marginTop: 5,
|
|
|
marginLeft: 0,
|
|
|
backgroundColor: 'transparent',
|
|
|
},
|
|
|
rightViewImage: {
|
|
|
width: (width-50)/2,
|
|
|
height: 101,
|
|
|
marginTop: 5,
|
|
|
marginLeft: 10,
|
|
|
backgroundColor: 'transparent'
|
|
|
},
|
|
|
addImage: {
|
|
|
height: 30,
|
...
|
...
|
@@ -340,8 +352,9 @@ let styles = StyleSheet.create({ |
|
|
left: (width-50)/2-6,
|
|
|
},
|
|
|
renderIDCardSampleCellImage: {
|
|
|
width: 80,
|
|
|
width: (width-30)/2,
|
|
|
marginTop: 30,
|
|
|
alignItems: 'center'
|
|
|
},
|
|
|
cardImage: {
|
|
|
width: 80,
|
...
|
...
|
|