罗广聪

留言部分 +每个页面标题

@@ -598,6 +598,7 @@ @@ -598,6 +598,7 @@
598 TargetAttributes = { 598 TargetAttributes = {
599 00E356ED1AD99517003FC87E = { 599 00E356ED1AD99517003FC87E = {
600 CreatedOnToolsVersion = 6.2; 600 CreatedOnToolsVersion = 6.2;
  601 + DevelopmentTeam = EG4Q9YQ2UZ;
601 TestTargetID = 13B07F861A680F5B00A75B9A; 602 TestTargetID = 13B07F861A680F5B00A75B9A;
602 }; 603 };
603 13B07F861A680F5B00A75B9A = { 604 13B07F861A680F5B00A75B9A = {
@@ -1009,6 +1010,7 @@ @@ -1009,6 +1010,7 @@
1009 isa = XCBuildConfiguration; 1010 isa = XCBuildConfiguration;
1010 buildSettings = { 1011 buildSettings = {
1011 BUNDLE_LOADER = "$(TEST_HOST)"; 1012 BUNDLE_LOADER = "$(TEST_HOST)";
  1013 + DEVELOPMENT_TEAM = EG4Q9YQ2UZ;
1012 GCC_PREPROCESSOR_DEFINITIONS = ( 1014 GCC_PREPROCESSOR_DEFINITIONS = (
1013 "DEBUG=1", 1015 "DEBUG=1",
1014 "$(inherited)", 1016 "$(inherited)",
@@ -1030,6 +1032,7 @@ @@ -1030,6 +1032,7 @@
1030 buildSettings = { 1032 buildSettings = {
1031 BUNDLE_LOADER = "$(TEST_HOST)"; 1033 BUNDLE_LOADER = "$(TEST_HOST)";
1032 COPY_PHASE_STRIP = NO; 1034 COPY_PHASE_STRIP = NO;
  1035 + DEVELOPMENT_TEAM = EG4Q9YQ2UZ;
1033 INFOPLIST_FILE = ProtectGodTests/Info.plist; 1036 INFOPLIST_FILE = ProtectGodTests/Info.plist;
1034 IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1037 IPHONEOS_DEPLOYMENT_TARGET = 8.0;
1035 LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1038 LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
@@ -27,13 +27,13 @@ export default class Home extends Component { @@ -27,13 +27,13 @@ export default class Home extends Component {
27 { 27 {
28 title: "平安保险第二个", 28 title: "平安保险第二个",
29 context: "600万医疗报废,自费药,进口药,器材费", 29 context: "600万医疗报废,自费药,进口药,器材费",
30 - url: "http://mp.weixin.qq.com/s?src=11&timestamp=1504835681&ver=379&signature=fOt9QFjJYE6jPJF-Lp82mo7Z9qorXVqlXw7CIAhR*e7tOPzm8qcuFreVBK4Gybr*7HdhuHRi9zz-JMSa9FwZ7XDfU187dkJx*85Y3dnjO4Dj-ocM1FDT2yyZy4hg41pK&new=1", 30 + url: "http://m.people.cn/n4/2017/0907/c190-9825877.html?admincptm=1504789835057",
31 imgurl: require("../../assets/circle/newspic.png") 31 imgurl: require("../../assets/circle/newspic.png")
32 }, 32 },
33 { 33 {
34 title: "平安保险第三个", 34 title: "平安保险第三个",
35 context: "600万医疗报废,自费药,进口药,器材费", 35 context: "600万医疗报废,自费药,进口药,器材费",
36 - url: "http://mp.weixin.qq.com/s/T-EzAV0-dwGHpaM8nDrtUA", 36 + url: "http://m.people.cn/n4/2017/0907/c190-9825877.html?admincptm=1504789835057",
37 imgurl: require("../../assets/circle/newspic.png") 37 imgurl: require("../../assets/circle/newspic.png")
38 }, 38 },
39 { 39 {
@@ -7,7 +7,8 @@ import { @@ -7,7 +7,8 @@ import {
7 ScrollView, 7 ScrollView,
8 TouchableOpacity, 8 TouchableOpacity,
9 Image, 9 Image,
10 - TextInput 10 + TextInput,
  11 + KeyboardAvoidingView,
11 } from "react-native"; 12 } from "react-native";
12 13
13 export default class Details extends Component { 14 export default class Details extends Component {
@@ -26,6 +27,7 @@ export default class Details extends Component { @@ -26,6 +27,7 @@ export default class Details extends Component {
26 const { data } = this.state; 27 const { data } = this.state;
27 return ( 28 return (
28 <View style={styles.container}> 29 <View style={styles.container}>
  30 + <KeyboardAvoidingView behavior="padding" style={styles.KAVContainer}>
29 <ScrollView 31 <ScrollView
30 style={styles.scrollViewContainer} 32 style={styles.scrollViewContainer}
31 automaticallyAdjustContentInsets={false} 33 automaticallyAdjustContentInsets={false}
@@ -67,12 +69,12 @@ export default class Details extends Component { @@ -67,12 +69,12 @@ export default class Details extends Component {
67 <Text style={styles.itemBeenreplyer}> 69 <Text style={styles.itemBeenreplyer}>
68 {item.beenreplyer} 70 {item.beenreplyer}
69 </Text> 71 </Text>
70 - <Text style={styles.itemTime}>{item.time}</Text>  
71 </View> 72 </View>
72 - <Image 73 + <Text style={styles.itemTime}>{item.time}</Text>
  74 + {/* <Image
73 style={styles.itemRightTopRight} 75 style={styles.itemRightTopRight}
74 source={require("../../assets/tabbar/ic_circle_n.png")} 76 source={require("../../assets/tabbar/ic_circle_n.png")}
75 - /> 77 + /> */}
76 </View> 78 </View>
77 <Text style={styles.itemRightBottom}>{item.content}</Text> 79 <Text style={styles.itemRightBottom}>{item.content}</Text>
78 </View> 80 </View>
@@ -80,24 +82,28 @@ export default class Details extends Component { @@ -80,24 +82,28 @@ export default class Details extends Component {
80 ); 82 );
81 })} 83 })}
82 </View> 84 </View>
  85 + </ScrollView>
83 {/* 回复框 */} 86 {/* 回复框 */}
84 <View style={styles.sendMsgContaier}> 87 <View style={styles.sendMsgContaier}>
85 <TextInput 88 <TextInput
86 style={styles.msgInput} 89 style={styles.msgInput}
87 - placeholder="回复 汉克斯" 90 + placeholder="留言"
88 onChangeText={text => this.setState({ text })} 91 onChangeText={text => this.setState({ text })}
89 value={this.state.text} 92 value={this.state.text}
  93 + autoCapitalize="none"
90 selectionColor="#1B9341" 94 selectionColor="#1B9341"
91 clearTextOnFocus={true} 95 clearTextOnFocus={true}
92 numberOfLines={1} 96 numberOfLines={1}
93 clearButtonMode="always" 97 clearButtonMode="always"
94 keyboardType="default" 98 keyboardType="default"
  99 + enablesReturnKeyAutomatically={true}
  100 + returnKeyType="send"
95 /> 101 />
96 - <TouchableOpacity onPress={() => this.sendMsg()}> 102 + <TouchableOpacity style={styles.sendButtonContaier} onPress={() => this.sendMsg()}>
97 <Text style={styles.sendButton}>发送</Text> 103 <Text style={styles.sendButton}>发送</Text>
98 </TouchableOpacity> 104 </TouchableOpacity>
99 </View> 105 </View>
100 - </ScrollView> 106 + </KeyboardAvoidingView>
101 </View> 107 </View>
102 ); 108 );
103 } 109 }
@@ -106,15 +112,6 @@ export default class Details extends Component { @@ -106,15 +112,6 @@ export default class Details extends Component {
106 var that = this; 112 var that = this;
107 this.setState({ 113 this.setState({
108 text: "", 114 text: "",
109 - // data: that.state.data.comments.push(  
110 - // {  
111 - // replyer: "噢噢噢",  
112 - // replayicon: require("../../assets/Mine/iconpic1.png"),  
113 - // beenreplyer: "嘿嘿嘿",  
114 - // content: this.state.text,  
115 - // time: "刚刚",  
116 - // }  
117 - // )  
118 }); 115 });
119 } 116 }
120 } 117 }
@@ -129,9 +126,14 @@ const styles = StyleSheet.create({ @@ -129,9 +126,14 @@ const styles = StyleSheet.create({
129 backgroundColor: "white", 126 backgroundColor: "white",
130 paddingTop: 64 127 paddingTop: 64
131 }, 128 },
  129 + KAVContainer: {
  130 + flex: 1,
  131 + justifyContent: 'center',
  132 + // paddingHorizontal: 20,
  133 + // paddingTop: 20,
  134 + },
132 scrollViewContainer: { 135 scrollViewContainer: {
133 - // height: 300, 136 + flex: 1,
134 - marginBottom: 64,  
135 }, 137 },
136 titleText: { 138 titleText: {
137 marginTop: 21, 139 marginTop: 21,
@@ -266,26 +268,39 @@ const styles = StyleSheet.create({ @@ -266,26 +268,39 @@ const styles = StyleSheet.create({
266 }, 268 },
267 sendMsgContaier: { 269 sendMsgContaier: {
268 flexDirection: "row", 270 flexDirection: "row",
269 - // justifyContent: "center", 271 + justifyContent: "center",
270 alignItems: "center", 272 alignItems: "center",
  273 + height: 52,
271 paddingLeft: 15, 274 paddingLeft: 15,
272 paddingRight: 15, 275 paddingRight: 15,
273 - // height: 48 276 + borderStyle: "solid",
274 - // position: "absolute", 277 + borderColor: "#E8E8E8",
275 - // bottom: 60, 278 + borderTopWidth: 1,
276 - // right: 0, 279 + backgroundColor: "#E6E6E6",
277 - // backgroundColor: "white",  
278 }, 280 },
279 msgInput: { 281 msgInput: {
280 - flex: 7, 282 + flex: 1,
281 - fontSize: 15 283 + fontSize: 15,
282 - // color: "#999999", 284 + borderWidth: 1,
  285 + borderColor: "#DCDCDC",
  286 + borderRadius: 4,
  287 + paddingTop: 8,
  288 + paddingBottom: 7,
  289 + paddingLeft: 13,
  290 + backgroundColor: "white",
  291 + },
  292 + sendButtonContaier: {
  293 + // flex: 1,
  294 + alignItems: "center",
  295 + justifyContent: "center",
283 }, 296 },
284 sendButton: { 297 sendButton: {
285 - flex: 3, 298 +
286 fontSize: 15, 299 fontSize: 15,
  300 + marginLeft: 15 ,
287 color: "#1B9341", 301 color: "#1B9341",
288 borderColor: "#E6E6E6", 302 borderColor: "#E6E6E6",
289 - 303 + borderStyle: "solid",
  304 + borderLeftWidth: 0.5,
290 } 305 }
291 }); 306 });
@@ -15,108 +15,106 @@ import InsuranceChurch from "./InsuranceChurch/index"; @@ -15,108 +15,106 @@ import InsuranceChurch from "./InsuranceChurch/index";
15 import Mine from "./Mine/index"; 15 import Mine from "./Mine/index";
16 import Login from "./Login"; 16 import Login from "./Login";
17 17
18 -var scale = Dimensions.get('window').scale; 18 +var scale = Dimensions.get("window").scale;
19 19
20 export default class Main extends Component { 20 export default class Main extends Component {
21 constructor(props) { 21 constructor(props) {
22 super(props); 22 super(props);
23 this.state = { 23 this.state = {
24 selectedItem: "home", 24 selectedItem: "home",
25 - } 25 + selectedTab: "home"
  26 + };
26 } 27 }
27 - 28 +
28 componentWillMount() { 29 componentWillMount() {
29 - console.log("loginSuccess",this.props); 30 + console.log("loginSuccess", this.props);
30 - } 31 + }
31 32
32 render() { 33 render() {
33 const { loginSuccess } = this.props; 34 const { loginSuccess } = this.props;
34 - return ( 35 + return loginSuccess ? (
35 - loginSuccess 36 + <TabBarIOS tintColor="#08CC6A" barTintColor="white">
36 - ? ( 37 + <TabBarIOS.Item
37 - <TabBarIOS tintColor="#08CC6A" barTintColor="white"> 38 + title="首页"
38 - <TabBarIOS.Item 39 + icon={require("../assets/tabbar/ic_home_n.png")}
39 - title="首页" 40 + selected={this.state.selectedItem == "home"}
40 - icon={require("../assets/tabbar/ic_home_n.png")} 41 + onPress={() => {
41 - selected={this.state.selectedItem == "home"} 42 + this.setState({
42 - onPress={() => { 43 + selectedItem: "home"
43 - this.setState({ 44 + });
44 - selectedItem: "home" 45 + }}
45 - }); 46 + >
46 - }} 47 + <NavigatorIOS
47 - > 48 + style={{ flex: 1 }}
48 - <NavigatorIOS 49 + initialRoute={{
49 - style={{ flex: 1 }} 50 + component: Home,
50 - initialRoute={{ 51 + title: "首页",
51 - component: Home, 52 + }}
52 - title: "保护神" 53 + />
53 - }} 54 + </TabBarIOS.Item>
54 - 55 + <TabBarIOS.Item
55 - /> 56 + title="保圈"
56 - </TabBarIOS.Item> 57 + icon={require("../assets/tabbar/ic_circle_n.png")}
57 - <TabBarIOS.Item 58 + selected={this.state.selectedItem == "insuranceCircle"}
58 - title="保圈" 59 + onPress={() => {
59 - icon={require("../assets/tabbar/ic_circle_n.png")} 60 + this.setState({
60 - selected={this.state.selectedItem == "insuranceCircle"} 61 + selectedItem: "insuranceCircle"
61 - onPress={() => { 62 + });
62 - this.setState({ 63 + }}
63 - selectedItem: "insuranceCircle" 64 + >
64 - }); 65 + <NavigatorIOS
65 - }} 66 + style={{ flex: 1 }}
66 - > 67 + initialRoute={{
67 - <NavigatorIOS 68 + component: InsuranceCircle,
68 - style={{ flex: 1 }} 69 + title: "保圈",
69 - initialRoute={{ 70 + }}
70 - component: InsuranceCircle, 71 + />
71 - title: "保护神", 72 + </TabBarIOS.Item>
72 - }} 73 + <TabBarIOS.Item
73 - /> 74 + title="保堂"
74 - </TabBarIOS.Item> 75 + icon={require("../assets/tabbar/ic_umbrella_n.png")}
75 - <TabBarIOS.Item 76 + selected={this.state.selectedItem == "insuranceChurch"}
76 - title="保堂" 77 + onPress={() => {
77 - icon={require("../assets/tabbar/ic_umbrella_n.png")} 78 + this.setState({
78 - selected={this.state.selectedItem == "insuranceChurch"} 79 + selectedItem: "insuranceChurch"
79 - onPress={() => { 80 + });
80 - this.setState({ 81 + }}
81 - selectedItem: "insuranceChurch" 82 + >
82 - }); 83 + <NavigatorIOS
83 - }} 84 + style={{ flex: 1 }}
84 - > 85 + initialRoute={{
85 - <NavigatorIOS 86 + component: InsuranceChurch,
86 - style={{ flex: 1 }} 87 + title: "保堂"
87 - initialRoute={{ 88 + }}
88 - component: InsuranceChurch, 89 + />
89 - title: "保护神" 90 + </TabBarIOS.Item>
90 - }} 91 + <TabBarIOS.Item
91 - /> 92 + title="我的"
92 - </TabBarIOS.Item> 93 + icon={require("../assets/tabbar/ic_mine_n.png")}
93 - <TabBarIOS.Item 94 + selected={this.state.selectedItem == "mine"}
94 - title="我的" 95 + onPress={() => {
95 - icon={require("../assets/tabbar/ic_mine_n.png")} 96 + this.setState({
96 - selected={this.state.selectedItem == "mine"} 97 + selectedItem: "mine"
97 - onPress={() => { 98 + });
98 - this.setState({ 99 + }}
99 - selectedItem: "mine" 100 + >
100 - }); 101 + <NavigatorIOS
101 - }} 102 + style={{ flex: 1 }}
102 - > 103 + initialRoute={{
103 - <NavigatorIOS 104 + component: Mine,
104 - style={{ flex: 1 }} 105 + title: "我的",
105 - 106 + passProps: {
106 - initialRoute={{ 107 + onLogin: this.props.onLogin
107 - component: Mine, 108 + }
108 - title: "保护神", 109 + }}
109 - passProps: { 110 + />
110 - onLogin: this.props.onLogin 111 + </TabBarIOS.Item>
111 - } 112 + </TabBarIOS>
112 - }} 113 + ) : (
113 - /> 114 + <Login
114 - </TabBarIOS.Item> 115 + loginSuccess={this.props.loginSuccess}
115 - </TabBarIOS> 116 + onLogin={this.props.onLogin}
116 - ) 117 + />
117 - : (  
118 - <Login loginSuccess={this.props.loginSuccess} onLogin={this.props.onLogin} />  
119 - )  
120 ); 118 );
121 } 119 }
122 } 120 }