|
@@ -2,20 +2,16 @@ import React, { Component } from "react"
|
|
import { StyleSheet, Text, View, TextInput } from "react-native"
|
|
import { StyleSheet, Text, View, TextInput } from "react-native"
|
|
import { unitWidth, unitHeight, getStatusBarHeight } from "../utils/AdapterUtil";
|
|
import { unitWidth, unitHeight, getStatusBarHeight } from "../utils/AdapterUtil";
|
|
import MyButtom from '../component/MyButton'
|
|
import MyButtom from '../component/MyButton'
|
|
|
|
+import NavigationUtil from "../navigator/NavigationUtil"
|
|
|
|
|
|
export default class ForgetPassWord extends Component {
|
|
export default class ForgetPassWord extends Component {
|
|
state = {
|
|
state = {
|
|
pageTitle: "忘记密码",
|
|
pageTitle: "忘记密码",
|
|
btnText: "保存"
|
|
btnText: "保存"
|
|
};
|
|
};
|
|
- componentDidMount() {
|
|
|
|
- this.timer = setTimeout(() => {
|
|
|
|
- // NavigationUtil.resetToHomePage(this.props)
|
|
|
|
- }, 5000)
|
|
|
|
- }
|
|
|
|
- componentWillMount() {
|
|
|
|
- this.timer && clearTimeout(this.timer)
|
|
|
|
- }
|
|
|
|
|
|
+ toLogin=()=>{
|
|
|
|
+ NavigationUtil.resetToLoginPage(this.props)
|
|
|
|
+ }
|
|
render() {
|
|
render() {
|
|
return (
|
|
return (
|
|
<View style={styles.container}>
|
|
<View style={styles.container}>
|
|
@@ -63,6 +59,7 @@ export default class ForgetPassWord extends Component {
|
|
</View>
|
|
</View>
|
|
<View style={styles.bottomBtn}>
|
|
<View style={styles.bottomBtn}>
|
|
<MyButtom
|
|
<MyButtom
|
|
|
|
+ onPress={this.toLogin}
|
|
text={this.state.btnText}
|
|
text={this.state.btnText}
|
|
width={unitWidth * 502}
|
|
width={unitWidth * 502}
|
|
height={unitHeight * 84}
|
|
height={unitHeight * 84}
|
|
@@ -108,7 +105,7 @@ const styles = StyleSheet.create({
|
|
borderWidth: unitWidth * 1,
|
|
borderWidth: unitWidth * 1,
|
|
borderColor: "#ccc",
|
|
borderColor: "#ccc",
|
|
flexDirection: "row",
|
|
flexDirection: "row",
|
|
- marginTop:unitHeight * 40,
|
|
|
|
|
|
+ marginTop: unitHeight * 40,
|
|
},
|
|
},
|
|
inputLeft: {
|
|
inputLeft: {
|
|
marginTop: unitHeight * 9,
|
|
marginTop: unitHeight * 9,
|