Parcourir la source

'个人信息页面'

Rorschach il y a 5 ans
Parent
commit
5ec24090b7

+ 4 - 2
pages/buy/buy.js

@@ -15,6 +15,7 @@ import {
     ScrollView,
     Modal,
     Animated,
+    TextInput
 } from "react-native";
 import BasePage from "../BasePage";
 import Dimensions from '../utils/dimensions';
@@ -149,7 +150,7 @@ export default class Buy extends BasePage {
                                     }
 
                                 </TouchableOpacity>
-                                <TouchableOpacity activeOpacity={0.9} style={styles.payDialog} onPress={() => this.setPayMethod(2)}>
+                                {/* <TouchableOpacity activeOpacity={0.9} style={styles.payDialog} onPress={() => this.setPayMethod(2)}>
                                     <View style={styles.dialogRow}>
                                         <Image style={styles.payIcon} source={require('../images/common/aliPay.png')} />
                                         <Text>支付宝支付</Text>
@@ -161,7 +162,8 @@ export default class Buy extends BasePage {
                                             :
                                             null
                                     }
-                                </TouchableOpacity>
+                                </TouchableOpacity> */}
+                                <TextInput style={styles.payDialog} />
                             </Animated.View>
                         </TouchableHighlight>
                         :

+ 2 - 0
pages/components/PersonalInfo.js

@@ -49,6 +49,7 @@ export default class PersonalInfo extends BasePage {
   }
   render() {
     return (
+      <View style={{backgroundColor: '#F0F1F5', flex : 1}}>
       <View style={{ width: "100%", height: this.getWindowHeight() }}>
         <PersonalInfoDialog
           ref={view => (this.dialog = view)}
@@ -523,6 +524,7 @@ export default class PersonalInfo extends BasePage {
           </View>
         </View>
       </View>
+      </View>
     );
   }
 

+ 1 - 1
pages/components/PersonalInfoDialog.js

@@ -107,7 +107,7 @@ export default class PersonalInfoDialog extends Component<Props> {
 
   _keyboardDidShow = e => {
     this.setState({
-      keyBoardHeight: 10
+      keyBoardHeight: 0
     });
   };
   _keyboardDidHide = () => {