罗广聪

增加客服管理tab

@@ -12,13 +12,14 @@ import Home from "./src/pages/Home/index"; @@ -12,13 +12,14 @@ import Home from "./src/pages/Home/index";
12 import InsuranceCircle from "./src/pages/InsuranceCircle/index"; 12 import InsuranceCircle from "./src/pages/InsuranceCircle/index";
13 import InsuranceChurch from "./src/pages/InsuranceChurch/index"; 13 import InsuranceChurch from "./src/pages/InsuranceChurch/index";
14 import Mine from "./src/pages/Mine/index"; 14 import Mine from "./src/pages/Mine/index";
  15 +import Customer from "./src/pages/Customer/index";
15 import Login from "./src/pages/Login"; 16 import Login from "./src/pages/Login";
16 import AllProduct from "./src/pages/Home/allProduct"; 17 import AllProduct from "./src/pages/Home/allProduct";
17 import ProductTemplate from "./src/Components/ProductTemplate"; 18 import ProductTemplate from "./src/Components/ProductTemplate";
18 import ArticleTemplate from "./src/Components/articleTemplate"; 19 import ArticleTemplate from "./src/Components/articleTemplate";
19 import Details from "./src/pages/InsuranceCircle/details"; 20 import Details from "./src/pages/InsuranceCircle/details";
20 import Release from "./src/pages/InsuranceCircle/release"; 21 import Release from "./src/pages/InsuranceCircle/release";
21 -import Discover from "./src/pages/Discover/index"; 22 +import Discover from "./src/pages/Discover/discover";
22 import AIBegin from "./src/pages/Home/AISolution/Begin"; 23 import AIBegin from "./src/pages/Home/AISolution/Begin";
23 import AIQuestion from "./src/pages/Home/AISolution/Question"; 24 import AIQuestion from "./src/pages/Home/AISolution/Question";
24 import AISolution from "./src/pages/Home/AISolution/Solution"; 25 import AISolution from "./src/pages/Home/AISolution/Solution";
@@ -52,10 +53,10 @@ const MainTabBar = TabNavigator( @@ -52,10 +53,10 @@ const MainTabBar = TabNavigator(
52 ) 53 )
53 } 54 }
54 }, 55 },
55 - Discover: { 56 + Customer: {
56 - screen: Discover, 57 + screen: Customer,
57 navigationOptions: { 58 navigationOptions: {
58 - title: "发现", 59 + title: "客户管理",
59 // header: null, 60 // header: null,
60 // tabBarVisible: false, 61 // tabBarVisible: false,
61 tabBarIcon: ({ focused }) => 62 tabBarIcon: ({ focused }) =>
@@ -107,6 +108,7 @@ const ProtectGod = StackNavigator( @@ -107,6 +108,7 @@ const ProtectGod = StackNavigator(
107 InsuranceChurch: { screen: InsuranceChurch }, 108 InsuranceChurch: { screen: InsuranceChurch },
108 Mine: { screen: Mine }, 109 Mine: { screen: Mine },
109 Login: { screen: Login }, 110 Login: { screen: Login },
  111 + Customer: { screen: Customer },
110 AllProduct: { 112 AllProduct: {
111 screen: AllProduct, 113 screen: AllProduct,
112 navigationOptions: { headerTitle: "全部产品" } 114 navigationOptions: { headerTitle: "全部产品" }
  1 +import React, { Component } from "react";
  2 +import {
  3 + AppRegistry,
  4 + StyleSheet,
  5 + Text,
  6 + View,
  7 + Image,
  8 + TouchableOpacity,
  9 + ScrollView,
  10 + ListView,
  11 + Dimensions,
  12 +} from "react-native";
  13 +import { StackNavigator, TabNavigator } from "react-navigation";
  14 +import post from "../../utils/fetch";
  15 +
  16 +export default class Home extends Component {
  17 + constructor(props) {
  18 + super(props);
  19 + this.state = {};
  20 + }
  21 + componentWillMount() {}
  22 +
  23 + componentDidMount() {}
  24 +
  25 + getListData() {
  26 + post("/test/insurance/article", {}, res => {}, err => {});
  27 + }
  28 +
  29 + render() {
  30 + const { navigate } = this.props.navigation;
  31 + return (
  32 + <View style={styles.container}>
  33 + <Text>客户管理页面</Text>
  34 + </View>
  35 + );
  36 + }
  37 +}
  38 +
  39 +const styles = StyleSheet.create({
  40 + container: {
  41 + flex: 1,
  42 + justifyContent: "flex-start",
  43 + alignItems: "stretch",
  44 + backgroundColor: "#EFEFEF"
  45 + }
  46 +});