|
@@ -53,24 +53,28 @@ export default class PhoneBind extends BasePage {
|
|
</View>
|
|
</View>
|
|
<View style={styles.phoneNumberBox}>
|
|
<View style={styles.phoneNumberBox}>
|
|
<Text style={styles.phoneNumber}>手机号</Text>
|
|
<Text style={styles.phoneNumber}>手机号</Text>
|
|
- <TextInput
|
|
|
|
- style={styles.phoneText}
|
|
|
|
- maxLength={11}
|
|
|
|
- onChangeText={(text) => this.setState({ phone_num: text })}
|
|
|
|
- value={this.state.phone_num}
|
|
|
|
- placeholder={'请输入手机号'}
|
|
|
|
- />
|
|
|
|
|
|
+ <View style={styles.phoneText}>
|
|
|
|
+ <TextInput
|
|
|
|
+ style={{ marginLeft: 20, width: '100%', height: '100%' }}
|
|
|
|
+ maxLength={11}
|
|
|
|
+ onChangeText={(text) => this.setState({ phone_num: text })}
|
|
|
|
+ value={this.state.phone_num}
|
|
|
|
+ placeholder={'请输入手机号'}
|
|
|
|
+ />
|
|
|
|
+ </View>
|
|
</View>
|
|
</View>
|
|
<View style={styles.signNumberBox}>
|
|
<View style={styles.signNumberBox}>
|
|
<Text style={styles.phoneNumber}>验证码</Text>
|
|
<Text style={styles.phoneNumber}>验证码</Text>
|
|
<View style={styles.signNumberLine2}>
|
|
<View style={styles.signNumberLine2}>
|
|
- <TextInput
|
|
|
|
- style={styles.signText}
|
|
|
|
- maxLength={4}
|
|
|
|
- onChangeText={(text) => this.setState({ verification_code: text })}
|
|
|
|
- value={this.state.verification_code}
|
|
|
|
- placeholder={'请输入验证码'}
|
|
|
|
- />
|
|
|
|
|
|
+ <View style={styles.signText}>
|
|
|
|
+ <TextInput
|
|
|
|
+ style={{ marginLeft: 20, width: '100%', height: '100%' }}
|
|
|
|
+ maxLength={4}
|
|
|
|
+ onChangeText={(text) => this.setState({ verification_code: text })}
|
|
|
|
+ value={this.state.verification_code}
|
|
|
|
+ placeholder={'请输入验证码'}
|
|
|
|
+ />
|
|
|
|
+ </View>
|
|
<TouchableOpacity>
|
|
<TouchableOpacity>
|
|
<Text style={styles.getSign} onPress={this.getVerification.bind(this)}>
|
|
<Text style={styles.getSign} onPress={this.getVerification.bind(this)}>
|
|
{this.state.verification_text}
|
|
{this.state.verification_text}
|
|
@@ -133,9 +137,6 @@ export default class PhoneBind extends BasePage {
|
|
ToastAndroid.show(result.message, ToastAndroid.SHORT);
|
|
ToastAndroid.show(result.message, ToastAndroid.SHORT);
|
|
return;
|
|
return;
|
|
} else {
|
|
} else {
|
|
- console.log('====================================');
|
|
|
|
- console.log(result.data);
|
|
|
|
- console.log('====================================');
|
|
|
|
this.setState({
|
|
this.setState({
|
|
http_verification_code: result.data
|
|
http_verification_code: result.data
|
|
});
|
|
});
|