...
|
...
|
@@ -21,10 +21,13 @@ export default class ModifyPassword extends Component { |
|
|
}
|
|
|
|
|
|
static propTypes = {
|
|
|
account: React.PropTypes.string,
|
|
|
pwd: React.PropTypes.string,
|
|
|
onPress:React.PropTypes.func,
|
|
|
onModifyPress:React.PropTypes.func,
|
|
|
oldPwd: React.PropTypes.string,
|
|
|
newPwd: React.PropTypes.string,
|
|
|
repeatPwd: React.PropTypes.string,
|
|
|
onModifyOldPwd:React.PropTypes.func,
|
|
|
onModifyNewPwd:React.PropTypes.func,
|
|
|
onModifyRepeatPwd:React.PropTypes.func,
|
|
|
onModifySubmitPress:React.PropTypes.func,
|
|
|
};
|
|
|
|
|
|
render() {
|
...
|
...
|
@@ -39,6 +42,8 @@ export default class ModifyPassword extends Component { |
|
|
style={styles.pwd}
|
|
|
secureTextEntry={true}
|
|
|
underlineColorAndroid='transparent'
|
|
|
onChangeText={this.props.onModifyOldPwd}
|
|
|
value={this.props.oldPwd}
|
|
|
/>
|
|
|
</View>
|
|
|
<View style={styles.line}/>
|
...
|
...
|
@@ -50,6 +55,8 @@ export default class ModifyPassword extends Component { |
|
|
style={styles.pwd}
|
|
|
secureTextEntry={true}
|
|
|
underlineColorAndroid='transparent'
|
|
|
onChangeText={this.props.onModifyNewPwd}
|
|
|
value={this.props.newPwd}
|
|
|
/>
|
|
|
</View>
|
|
|
<View style={styles.line}/>
|
...
|
...
|
@@ -61,11 +68,13 @@ export default class ModifyPassword extends Component { |
|
|
style={styles.pwd}
|
|
|
secureTextEntry={true}
|
|
|
underlineColorAndroid='transparent'
|
|
|
onChangeText={this.props.onModifyRepeatPwd}
|
|
|
value={this.props.repeatPwd}
|
|
|
/>
|
|
|
</View>
|
|
|
<Button style={styles.button}
|
|
|
textStyle={styles.buttonText}
|
|
|
onPress={this.props.onLogoutPress}
|
|
|
onPress={this.props.onModifySubmitPress}
|
|
|
>
|
|
|
确定
|
|
|
</Button>
|
...
|
...
|
@@ -85,34 +94,26 @@ var styles = StyleSheet.create({ |
|
|
width: width,
|
|
|
height: height,
|
|
|
top:64,
|
|
|
backgroundColor: 'gray'
|
|
|
backgroundColor: '#F5FCFF'
|
|
|
},
|
|
|
accountContainer:{
|
|
|
flexDirection: 'row',
|
|
|
width: width,
|
|
|
height: 40,
|
|
|
justifyContent: 'center',
|
|
|
backgroundColor: 'white'
|
|
|
},
|
|
|
pwdContainer:{
|
|
|
width: width,
|
|
|
height: 40,
|
|
|
flexDirection: 'column',
|
|
|
justifyContent: 'center',
|
|
|
alignItems: 'center',
|
|
|
backgroundColor: 'white'
|
|
|
},
|
|
|
text:{
|
|
|
width: 80,
|
|
|
height: 40,
|
|
|
flex:1,
|
|
|
marginLeft: buttonMargin,
|
|
|
marginRight: buttonMargin,
|
|
|
color:'black',
|
|
|
},
|
|
|
pwd: {
|
|
|
flex: 1,
|
|
|
paddingLeft:10,
|
|
|
flex: 4,
|
|
|
borderColor: 'gray',
|
|
|
borderWidth: 1
|
|
|
textAlignVertical:'center',
|
|
|
},
|
|
|
button: {
|
|
|
marginLeft: buttonMargin,
|
...
|
...
|
@@ -128,6 +129,6 @@ var styles = StyleSheet.create({ |
|
|
line:{
|
|
|
width: width,
|
|
|
height: 1,
|
|
|
backgroundColor: 'gray',
|
|
|
|
|
|
}
|
|
|
}); |
...
|
...
|
|