...
|
...
|
@@ -30,7 +30,7 @@ export default class NameAuthen extends Component { |
|
|
backIDCardImageUri: '',
|
|
|
frontIDCardImageUri: '',
|
|
|
}
|
|
|
// this.renderCell = this.renderCell.bind(this)
|
|
|
|
|
|
this.renderHeader = this.renderHeader.bind(this)
|
|
|
this.renderMeritCell = this.renderMeritCell.bind(this)
|
|
|
this.renderIDCardAddDetailCell = this.renderIDCardAddDetailCell.bind(this)
|
...
|
...
|
@@ -67,8 +67,7 @@ export default class NameAuthen extends Component { |
|
|
let hasImage = imageUrl.length > 0 ? true : false;
|
|
|
return (
|
|
|
<View style={styles.renderIDCardAddCellImage}>
|
|
|
<TouchableOpacity
|
|
|
activeOpacity={1.0}
|
|
|
<TouchableOpacity activeOpacity={1.0}
|
|
|
onPress={() => {
|
|
|
if(!hasImage){
|
|
|
this.setState({
|
...
|
...
|
@@ -83,9 +82,7 @@ export default class NameAuthen extends Component { |
|
|
<Image style={styles.viewImage} resizeMode={'contain'} source={addImage}/>
|
|
|
}
|
|
|
</TouchableOpacity>
|
|
|
<TouchableOpacity
|
|
|
activeOpacity={1.0}
|
|
|
style={styles.addImageClose}
|
|
|
<TouchableOpacity hitSlop={{top: 3, left: 3, bottom: 3, right: 3}} activeOpacity={1.0} style={styles.addImageClose}
|
|
|
onPress={() => {
|
|
|
if(isBack){
|
|
|
this.setState({
|
...
|
...
|
@@ -319,16 +316,17 @@ let styles = StyleSheet.create({ |
|
|
marginTop: 15,
|
|
|
marginLeft: 15,
|
|
|
marginRight: 15,
|
|
|
justifyContent: 'space-between',
|
|
|
justifyContent: 'center',
|
|
|
alignItems: 'center',
|
|
|
},
|
|
|
renderIDCardAddCellImage: {
|
|
|
width: (width - 30)/2,
|
|
|
width: (width-30)/2,
|
|
|
alignItems: 'center'
|
|
|
},
|
|
|
viewImage: {
|
|
|
width: (width-50)/2,
|
|
|
height: 101,
|
|
|
marginTop: 5,
|
|
|
width: (width - 50)/2,
|
|
|
},
|
|
|
addImage: {
|
|
|
height: 30,
|
...
|
...
|
@@ -339,12 +337,11 @@ let styles = StyleSheet.create({ |
|
|
height: 16,
|
|
|
width: 16,
|
|
|
top: 0,
|
|
|
left: (width - 50)/2 - 8,
|
|
|
left: (width-50)/2-6,
|
|
|
},
|
|
|
renderIDCardSampleCellImage: {
|
|
|
width: 80,
|
|
|
marginTop: 30,
|
|
|
marginLeft: ((width-50)/2-80)/2,
|
|
|
},
|
|
|
cardImage: {
|
|
|
width: 80,
|
...
|
...
|
|