...
|
...
|
@@ -74,11 +74,12 @@ export default class Login extends Component { |
|
|
</TouchableWithoutFeedback>
|
|
|
</View>
|
|
|
);
|
|
|
}
|
|
|
}
|
|
|
render() {
|
|
|
|
|
|
return (
|
|
|
<View style={styles.container}>
|
|
|
|
|
|
<Image style={styles.container} source={require('../images/login@2x.png')} resizeMode={'cover'} >
|
|
|
<Image
|
|
|
style={styles.logo}
|
|
|
source={require('../images/logo@2x.png')}
|
...
|
...
|
@@ -90,7 +91,7 @@ export default class Login extends Component { |
|
|
onPress={this.props.onLoginPress}>
|
|
|
登录
|
|
|
</Button>
|
|
|
</View>
|
|
|
</Image>
|
|
|
);
|
|
|
}
|
|
|
}
|
...
|
...
|
@@ -98,6 +99,7 @@ export default class Login extends Component { |
|
|
let {height, width} = Dimensions.get('window');
|
|
|
let textPaddingTop = height * 7 / 10;
|
|
|
let buttonMargin = (width - 320) / 2;
|
|
|
let inputWidth = width-40;
|
|
|
var styles = StyleSheet.create({
|
|
|
container:{
|
|
|
flex: 1,
|
...
|
...
|
@@ -106,45 +108,44 @@ var styles = StyleSheet.create({ |
|
|
justifyContent: 'center',
|
|
|
width: width,
|
|
|
height: height,
|
|
|
backgroundColor: 'gray'
|
|
|
},
|
|
|
textContainer:{
|
|
|
flexDirection: 'row',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center',
|
|
|
marginTop:13,
|
|
|
backgroundColor: '#7fffffff',
|
|
|
width:330,
|
|
|
width:inputWidth,
|
|
|
height:40,
|
|
|
justifyContent: 'center',
|
|
|
borderRadius:5,
|
|
|
backgroundColor: 'gray',
|
|
|
marginBottom: 10,
|
|
|
},
|
|
|
logo: {
|
|
|
width:256,
|
|
|
height:40,
|
|
|
marginBottom: 10,
|
|
|
marginBottom: 40,
|
|
|
},
|
|
|
username: {
|
|
|
flex: 1,
|
|
|
height:40,
|
|
|
paddingLeft:10,
|
|
|
borderColor: 'gray',
|
|
|
borderWidth: 1
|
|
|
|
|
|
|
|
|
},
|
|
|
pwd: {
|
|
|
flex: 1,
|
|
|
paddingLeft:10,
|
|
|
borderColor: 'gray',
|
|
|
borderWidth: 1
|
|
|
|
|
|
},
|
|
|
button: {
|
|
|
marginLeft: buttonMargin,
|
|
|
marginRight: buttonMargin,
|
|
|
marginTop: 40,
|
|
|
backgroundColor: '#7fffffff',
|
|
|
marginLeft: 20,
|
|
|
marginRight: 20,
|
|
|
backgroundColor: '#ffffff',
|
|
|
opacity:0.5,
|
|
|
borderWidth:0,
|
|
|
borderRadius:5,
|
|
|
},
|
|
|
buttonText: {
|
|
|
color: '#ffffff',
|
|
|
color: 'black',
|
|
|
fontSize: 18,
|
|
|
},
|
|
|
buttonDelete: {
|
...
|
...
|
|