Commit 0acec087 by 修福龙

增加了输入手机号以及验证码弹窗的背景色

parent 6094674b
...@@ -67,6 +67,7 @@ class PhoneModal extends Component { ...@@ -67,6 +67,7 @@ class PhoneModal extends Component {
const {value} = this.state; const {value} = this.state;
return ( return (
<Modal styles={mStyles} {...props}> <Modal styles={mStyles} {...props}>
<View style={styles.modalBackgroundStyle}>
<View style={styles.modal}> <View style={styles.modal}>
<View style={styles.header}> <View style={styles.header}>
<View style={styles.title}> <View style={styles.title}>
...@@ -161,12 +162,17 @@ class PhoneModal extends Component { ...@@ -161,12 +162,17 @@ class PhoneModal extends Component {
</View> </View>
</View> </View>
</View> </View>
</View>
</Modal> </Modal>
); );
} }
} }
const styles = { const styles = {
modalBackgroundStyle: {
flex: 1,
backgroundColor: 'rgba(0, 0, 0, 0.5)',
},
modal: { modal: {
height: '86%', height: '86%',
width: '90%', width: '90%',
......
...@@ -67,6 +67,7 @@ class VerifyCodeModal extends Component { ...@@ -67,6 +67,7 @@ class VerifyCodeModal extends Component {
const {value} = this.state; const {value} = this.state;
return ( return (
<Modal styles={mStyles} {...props}> <Modal styles={mStyles} {...props}>
<View style={styles.modalBackgroundStyle}>
<View style={styles.modal}> <View style={styles.modal}>
<View style={styles.header}> <View style={styles.header}>
<View style={styles.title}> <View style={styles.title}>
...@@ -146,12 +147,17 @@ class VerifyCodeModal extends Component { ...@@ -146,12 +147,17 @@ class VerifyCodeModal extends Component {
</View> </View>
</View> </View>
</View> </View>
</View>
</Modal> </Modal>
); );
} }
} }
const styles = { const styles = {
modalBackgroundStyle: {
flex: 1,
backgroundColor: 'rgba(0, 0, 0, 0.5)',
},
modal: { modal: {
height: '90%', height: '90%',
width: '90%', width: '90%',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment