123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182 |
- import React, { Component } from "react"
- import { StyleSheet, Text, View, TextInput } from "react-native"
- import { unitWidth, unitHeight, getStatusBarHeight } from "../utils/AdapterUtil";
- import MyButtom from '../component/MyButton'
- import NavigationUtil from "../navigator/NavigationUtil"
- export default class ForgetPassWord extends Component {
- state = {
- pageTitle: "忘记密码",
- btnText: "保存"
- };
- toLogin=()=>{
- NavigationUtil.resetToLoginPage(this.props)
- }
- render() {
- return (
- <View style={styles.container}>
- <Text style={styles.loginTitle}>{this.state.pageTitle}</Text>
- <View style={styles.inputArea}>
- <View style={styles.inputPhone}>
- <View style={styles.inputLeft}>
- <Text style={styles.inputLeftText}>+86</Text>
- </View>
- <View style={styles.inputRight}>
- <TextInput
- placeholder="请输入手机号"
- placeholderTextColor={"#999999"}
- style={styles.TextInput}
- />
- </View>
- </View>
- <View style={styles.inputPass}>
- <View style={styles.inputLeft}>
- <Text style={styles.inputLeftText}>验证码</Text>
- </View>
- <View style={styles.TextInputRightArea2}>
- <TextInput
- placeholder="请输入验证码"
- placeholderTextColor={"#999999"}
- style={styles.TextInput2}
- />
- </View>
- <View style={styles.verifyCodeArea}>
- <Text>获取验证码</Text>
- </View>
- </View>
- </View>
- <View style={styles.inputNewPass}>
- <View style={styles.inputLeft}>
- <Text style={styles.inputLeftText}>输入新密码</Text>
- </View>
- <View style={styles.inputRight}>
- <TextInput
- placeholder="请输入新密码"
- placeholderTextColor={"#999999"}
- style={styles.TextInput}
- />
- </View>
- </View>
- <View style={styles.bottomBtn}>
- <MyButtom
- onPress={this.toLogin}
- text={this.state.btnText}
- width={unitWidth * 502}
- height={unitHeight * 84}
- borderRadius={unitHeight * 84}
- bgColor="#FA788A"
- shadowBgc="rgba(250,120,138,1)"
- style={{ fontSize: unitWidth * 32 }}
- />
- </View>
- </View>
- )
- }
- }
- const styles = StyleSheet.create({
- container: {
- flex: 1,
- paddingTop: getStatusBarHeight() + unitHeight * 138,
- paddingLeft: unitWidth * 60,
- paddingRight: unitWidth * 60,
- },
- loginTitle: {
- fontSize: unitWidth * 38,
- fontWeight: "bold",
- color: "rgba(250,120,138,1)",
- marginBottom: unitWidth * 70
- },
- inputArea: {
- width: unitWidth * 628,
- justifyContent: "space-between"
- },
- inputPhone: {
- width: "100%",
- height: unitHeight * 98,
- borderRadius: unitWidth * 98,
- borderWidth: unitWidth * 1,
- borderColor: "#ccc",
- flexDirection: "row"
- },
- inputNewPass: {
- width: "100%",
- height: unitHeight * 98,
- borderRadius: unitWidth * 98,
- borderWidth: unitWidth * 1,
- borderColor: "#ccc",
- flexDirection: "row",
- marginTop: unitHeight * 40,
- },
- inputLeft: {
- marginTop: unitHeight * 9,
- width: unitWidth * 147,
- height: unitHeight * 80,
- borderRightWidth: unitWidth * 1,
- borderRightColor: "#ccc",
- justifyContent: "center",
- alignItems: "center"
- },
- inputRight: {
- width: unitWidth * 480,
- height: "100%"
- },
- TextInput: {
- width: "100%",
- height: "100%",
- paddingLeft: unitWidth * 26,
- fontSize: unitWidth * 28
- },
- TextInput2: {
- fontSize: unitWidth * 28
- },
- TextInputRightArea2: {
- flex: 3,
- height: "100%",
- paddingLeft: unitWidth * 26,
- fontSize: unitWidth * 28,
- justifyContent: "center"
- },
- verifyCodeArea: {
- flex: 2,
- height: "100%",
- justifyContent: "center",
- alignItems: "center"
- },
- verifyCode: {
- fontSize: unitWidth * 28,
- color: "#333333"
- },
- inputPass: {
- width: "100%",
- marginTop: unitHeight * 40,
- height: unitHeight * 98,
- borderRadius: unitWidth * 98,
- borderWidth: unitWidth * 1,
- borderColor: "#ccc",
- flexDirection: "row"
- },
- forgetPassArea: {
- flexDirection: "row",
- justifyContent: "space-between",
- width: "100%",
- fontSize: unitWidth * 28,
- color: "#333333",
- marginTop: unitHeight * 28
- },
- bottomBtn: {
- width: "100%",
- marginTop: unitHeight * 98,
- height: unitHeight * 84,
- justifyContent: 'center',
- alignItems: 'center'
- },
- agree: {
- width: "100%",
- height: unitHeight * 26,
- flexDirection: "row",
- justifyContent: "center",
- alignItems: "center",
- marginTop: unitHeight * 30
- }
- })
|