罗广聪

customer Main

@@ -54,7 +54,8 @@ export default class Home extends Component { @@ -54,7 +54,8 @@ export default class Home extends Component {
54 const { navigate } = this.props.navigation; 54 const { navigate } = this.props.navigation;
55 return ( 55 return (
56 <View style={styles.container}> 56 <View style={styles.container}>
57 - <Begin /> 57 + {/* <Begin /> */}
  58 + <Main />
58 </View> 59 </View>
59 ); 60 );
60 } 61 }
@@ -77,7 +78,30 @@ class Begin extends Component { @@ -77,7 +78,30 @@ class Begin extends Component {
77 <Text style={styles.beginBtnLeftText}>手动选择</Text> 78 <Text style={styles.beginBtnLeftText}>手动选择</Text>
78 </TouchableOpacity> 79 </TouchableOpacity>
79 <TouchableOpacity style={styles.beginBtnRight}> 80 <TouchableOpacity style={styles.beginBtnRight}>
80 - <Text style={styles.beginBtnRightText}>通信录导入</Text> 81 + <Text style={styles.beginBtnRightText}>通信录导入</Text>
  82 + </TouchableOpacity>
  83 + </View>
  84 + </View>
  85 + );
  86 + }
  87 +}
  88 +
  89 +class Main extends Component {
  90 + constructor(props) {
  91 + super(props);
  92 + this.state = {};
  93 + }
  94 + render() {
  95 + return (
  96 + <View style={styles.mainContaier}>
  97 + <View style={styles.mainBtnContaier}>
  98 + <TouchableOpacity style={styles.mainBtnContaierLeft}>
  99 + <Image style={styles.mainBtnLeftImg} source={require("../../assets/customer/ic_add.png")} />
  100 + <Text style={styles.mainBtnLeftText}>手动添加</Text>
  101 + </TouchableOpacity>
  102 + <TouchableOpacity style={styles.mainBtnContaierRight}>
  103 + <Image style={styles.mainBtnRightImg} source={require("../../assets/customer/ic_message.png")} />
  104 + <Text style={styles.mainBtnRightText}>通信录导入</Text>
81 </TouchableOpacity> 105 </TouchableOpacity>
82 </View> 106 </View>
83 </View> 107 </View>
@@ -97,16 +121,16 @@ const styles = StyleSheet.create({ @@ -97,16 +121,16 @@ const styles = StyleSheet.create({
97 justifyContent: "center", 121 justifyContent: "center",
98 alignItems: "center", 122 alignItems: "center",
99 backgroundColor: "#fff", 123 backgroundColor: "#fff",
100 - paddingBottom: 50, 124 + paddingBottom: 50
101 }, 125 },
102 beginPic: { 126 beginPic: {
103 width: 189, 127 width: 189,
104 - height: 193, 128 + height: 193
105 }, 129 },
106 beginBtnContaier: { 130 beginBtnContaier: {
107 flexDirection: "row", 131 flexDirection: "row",
108 marginHorizontal: 30, 132 marginHorizontal: 30,
109 - marginTop: 40, 133 + marginTop: 40
110 }, 134 },
111 beginBtnLeft: { 135 beginBtnLeft: {
112 flex: 1, 136 flex: 1,
@@ -114,13 +138,13 @@ const styles = StyleSheet.create({ @@ -114,13 +138,13 @@ const styles = StyleSheet.create({
114 alignItems: "center", 138 alignItems: "center",
115 paddingVertical: 12, 139 paddingVertical: 12,
116 borderStyle: "solid", 140 borderStyle: "solid",
117 - borderColor: "#999", 141 + borderColor: "#A9A9A9",
118 borderWidth: 1, 142 borderWidth: 1,
119 - borderRadius: 5, 143 + borderRadius: 5
120 }, 144 },
121 beginBtnLeftText: { 145 beginBtnLeftText: {
122 fontSize: 16, 146 fontSize: 16,
123 - color: "#242424", 147 + color: "#242424"
124 }, 148 },
125 beginBtnRight: { 149 beginBtnRight: {
126 flex: 1, 150 flex: 1,
@@ -129,10 +153,46 @@ const styles = StyleSheet.create({ @@ -129,10 +153,46 @@ const styles = StyleSheet.create({
129 paddingVertical: 12, 153 paddingVertical: 12,
130 marginLeft: 20, 154 marginLeft: 20,
131 borderRadius: 5, 155 borderRadius: 5,
132 - backgroundColor: "#1B9341", 156 + backgroundColor: "#1B9341"
133 }, 157 },
134 beginBtnRightText: { 158 beginBtnRightText: {
135 fontSize: 16, 159 fontSize: 16,
136 - color: "white", 160 + color: "white"
  161 + },
  162 + mainContaier: {},
  163 + mainBtnContaier: {
  164 + marginVertical: 10,
  165 + backgroundColor: "white",
  166 + flexDirection: "row",
  167 + justifyContent: "space-around",
  168 + paddingVertical: 13,
  169 + },
  170 + mainBtnContaierLeft: {
  171 + flexDirection: "row",
  172 + justifyContent: "center",
  173 + alignItems: "center",
  174 + },
  175 + mainBtnLeftImg: {
  176 + width: 24,
  177 + height: 24,
  178 + },
  179 + mainBtnLeftText: {
  180 + marginLeft: 8,
  181 + fontSize: 15,
  182 + color: "#242424",
  183 + },
  184 + mainBtnContaierRight: {
  185 + flexDirection: "row",
  186 + justifyContent: "center",
  187 + alignItems: "center",
  188 + },
  189 + mainBtnRightImg: {
  190 + width: 24,
  191 + height: 24,
  192 + },
  193 + mainBtnRightText: {
  194 + marginLeft: 8,
  195 + fontSize: 15,
  196 + color: "#242424",
137 }, 197 },
138 }); 198 });