Showing
3 changed files
with
11 additions
and
5 deletions
| @@ -15,7 +15,7 @@ import Mine from "./src/pages/Mine/index"; | @@ -15,7 +15,7 @@ import Mine from "./src/pages/Mine/index"; | ||
| 15 | import Login from "./src/pages/Login"; | 15 | import Login from "./src/pages/Login"; |
| 16 | import AllProduct from "./src/pages/Home/allProduct"; | 16 | import AllProduct from "./src/pages/Home/allProduct"; |
| 17 | import CommonWebView from "./src/Components/CommonWebView"; | 17 | import CommonWebView from "./src/Components/CommonWebView"; |
| 18 | -import CommonImageView from "./src/Components/CommonImageView"; | 18 | +import ProductTemplate from "./src/Components/ProductTemplate"; |
| 19 | import ArticleTemplate from "./src/Components/articleTemplate"; | 19 | import ArticleTemplate from "./src/Components/articleTemplate"; |
| 20 | import Details from "./src/pages/InsuranceCircle/details"; | 20 | import Details from "./src/pages/InsuranceCircle/details"; |
| 21 | 21 | ||
| @@ -89,7 +89,7 @@ const ProtectGod = StackNavigator( | @@ -89,7 +89,7 @@ const ProtectGod = StackNavigator( | ||
| 89 | navigationOptions: { headerTitle: "全部产品" } | 89 | navigationOptions: { headerTitle: "全部产品" } |
| 90 | }, | 90 | }, |
| 91 | CommonWebView: { screen: CommonWebView }, | 91 | CommonWebView: { screen: CommonWebView }, |
| 92 | - CommonImageView: { screen: CommonImageView }, | 92 | + ProductTemplate: { screen: ProductTemplate }, |
| 93 | ArticleTemplate: { screen: ArticleTemplate }, | 93 | ArticleTemplate: { screen: ArticleTemplate }, |
| 94 | Details: { screen: Details } | 94 | Details: { screen: Details } |
| 95 | },{ | 95 | },{ |
| @@ -11,7 +11,7 @@ import { | @@ -11,7 +11,7 @@ import { | ||
| 11 | } from "react-native"; | 11 | } from "react-native"; |
| 12 | import { StackNavigator, TabNavigator } from "react-navigation"; | 12 | import { StackNavigator, TabNavigator } from "react-navigation"; |
| 13 | 13 | ||
| 14 | -export default class CommonImageView extends Component { | 14 | +export default class ProductTemplate extends Component { |
| 15 | constructor(props) { | 15 | constructor(props) { |
| 16 | super(props); | 16 | super(props); |
| 17 | this.state = { | 17 | this.state = { |
| @@ -123,6 +123,7 @@ const styles = StyleSheet.create({ | @@ -123,6 +123,7 @@ const styles = StyleSheet.create({ | ||
| 123 | flexDirection: "row", | 123 | flexDirection: "row", |
| 124 | paddingLeft: 13, | 124 | paddingLeft: 13, |
| 125 | alignItems: "center", | 125 | alignItems: "center", |
| 126 | + marginBottom: 1, | ||
| 126 | }, | 127 | }, |
| 127 | midText: { | 128 | midText: { |
| 128 | marginLeft: 10, | 129 | marginLeft: 10, |
| @@ -145,6 +146,9 @@ const styles = StyleSheet.create({ | @@ -145,6 +146,9 @@ const styles = StyleSheet.create({ | ||
| 145 | width: Dimensions.get("window").width, | 146 | width: Dimensions.get("window").width, |
| 146 | flexDirection: "row", | 147 | flexDirection: "row", |
| 147 | flex: 1, | 148 | flex: 1, |
| 149 | + borderColor: "#E4E4E4", | ||
| 150 | + borderStyle: "solid", | ||
| 151 | + borderTopWidth: 1, | ||
| 148 | }, | 152 | }, |
| 149 | footerLeft: { | 153 | footerLeft: { |
| 150 | flex: 1, | 154 | flex: 1, |
| @@ -10,7 +10,7 @@ import { | @@ -10,7 +10,7 @@ import { | ||
| 10 | } from "react-native"; | 10 | } from "react-native"; |
| 11 | import { StackNavigator, TabNavigator } from 'react-navigation'; | 11 | import { StackNavigator, TabNavigator } from 'react-navigation'; |
| 12 | import CommonWebView from "../../Components/CommonWebView"; | 12 | import CommonWebView from "../../Components/CommonWebView"; |
| 13 | -import CommonImageView from "../../Components/CommonImageView"; | 13 | +// import CommonImageView from "../../Components/CommonImageView"; |
| 14 | 14 | ||
| 15 | export default class AllProduct extends Component { | 15 | export default class AllProduct extends Component { |
| 16 | 16 | ||
| @@ -19,11 +19,13 @@ export default class AllProduct extends Component { | @@ -19,11 +19,13 @@ export default class AllProduct extends Component { | ||
| 19 | this.state = { | 19 | this.state = { |
| 20 | ListData: [ | 20 | ListData: [ |
| 21 | { | 21 | { |
| 22 | + id: 0, | ||
| 22 | title: "平安e生保2017版-100万(有社保含新农合)", | 23 | title: "平安e生保2017版-100万(有社保含新农合)", |
| 23 | Subtitle: "200万医疗险,续保至99岁免审核", | 24 | Subtitle: "200万医疗险,续保至99岁免审核", |
| 24 | imgurl: require("../../assets/home/product_1.png") | 25 | imgurl: require("../../assets/home/product_1.png") |
| 25 | }, | 26 | }, |
| 26 | { | 27 | { |
| 28 | + id: 1, | ||
| 27 | title: "泰康在线“住院宝”必备版(0-49周岁)", | 29 | title: "泰康在线“住院宝”必备版(0-49周岁)", |
| 28 | Subtitle: "疾病意外全面保障,补充社保不足,公共交通意外双倍赔付", | 30 | Subtitle: "疾病意外全面保障,补充社保不足,公共交通意外双倍赔付", |
| 29 | imgurl: require("../../assets/home/product_2.png") | 31 | imgurl: require("../../assets/home/product_2.png") |
| @@ -45,7 +47,7 @@ export default class AllProduct extends Component { | @@ -45,7 +47,7 @@ export default class AllProduct extends Component { | ||
| 45 | <TouchableOpacity | 47 | <TouchableOpacity |
| 46 | style={styles.itemContainer} | 48 | style={styles.itemContainer} |
| 47 | key={index} | 49 | key={index} |
| 48 | - onPress={() => navigate("CommonImageView", { index: index })} | 50 | + onPress={() => navigate("ProductTemplate", { index: index })} |
| 49 | > | 51 | > |
| 50 | <Image style={styles.itemImgWrapper} source={item.imgurl} /> | 52 | <Image style={styles.itemImgWrapper} source={item.imgurl} /> |
| 51 | <View style={styles.itemRightWrapper}> | 53 | <View style={styles.itemRightWrapper}> |
-
Please register or login to post a comment