罗广聪

智能方案 未判断用户

... ... @@ -10,7 +10,7 @@ import {
ListView,
Dimensions
} from "react-native";
import { StackNavigator, TabNavigator } from "react-navigation";
import { StackNavigator, TabNavigator, NavigationActions } from "react-navigation";
import { Col, Row, Grid } from "react-native-easy-grid";
export default class Home extends Component {
... ... @@ -42,7 +42,7 @@ export default class Home extends Component {
eachyear: "150元"
}
],
count: "1200",
count: "1200"
}
};
}
... ... @@ -78,8 +78,19 @@ export default class Home extends Component {
});
}
submit() {
this.props.navigation.dispatch(NavigationActions.reset({
index: 0,
actions: [
NavigationActions.navigate({
routeName: "MainTabBar"
})
]
}))
}
render() {
console.log("solution", this.props.navigation.state.params.answerList);
console.log("solution", this.props.navigation);
const { navigate } = this.props.navigation;
const { gridData } = this.state;
return (
... ... @@ -190,12 +201,22 @@ export default class Home extends Component {
</Grid>
</ScrollView>
<View style={styles.tipsContainer}>
<Image style={{width: 16, height: 16}} source={require("../../../assets/home/ic_notice.png")} />
<Image
style={{ width: 16, height: 16 }}
source={require("../../../assets/home/ic_notice.png")}
/>
<Text style={styles.tipsText}>保险配置预算仅供参考,实际缴费金额与投保时内容有关。</Text>
</View>
</View>
<TouchableOpacity
onPress={() => {
this.submit();
}}
style={styles.confirmBtn}
>
<Text style={styles.confirmBtnText}>完成</Text>
</TouchableOpacity>
</View>
);
}
... ... @@ -328,12 +349,25 @@ const styles = StyleSheet.create({
flexDirection: "row",
alignItems: "center",
marginHorizontal: 24,
marginBottom: 10,
marginBottom: 10
},
tipsText: {
fontSize: 12,
color: "#7A7A7A",
lineHeight: 17,
marginLeft: 5,
marginLeft: 5
},
confirmBtn: {
marginVertical: 20,
marginHorizontal: 40,
justifyContent: "center",
alignItems: "center",
backgroundColor: "#1B9341",
height: 45,
borderRadius: 5
},
confirmBtnText: {
fontSize: 16,
color: "white"
},
});
... ...