罗广聪

导入数据

... ... @@ -88,7 +88,11 @@ const ProtectGod = StackNavigator(
},
CommonWebView: { screen: CommonWebView },
Details: { screen: Details }
},
},{
navigationOptions: {
headerTintColor: "black"
}
}
);
const styles = StyleSheet.create(
... ...
... ... @@ -71,7 +71,7 @@ export default class Home extends Component {
// url: "https://www.baidu.com/"
},
]
};
}
}
componentDidMount() {
console.log("thisprops", this.props);
... ... @@ -87,8 +87,8 @@ export default class Home extends Component {
>
<Image style={styles.itemImgWrapper} source={item.imgurl} />
<View style={styles.itemRightWrapper}>
<Text style={styles.itemTextTop}>{item.title}</Text>
<Text style={styles.itemTextBottom}>{item.context}</Text>
<Text style={styles.itemTextTop} numberOfLines={1}>{item.title}</Text>
<Text style={styles.itemTextBottom} numberOfLines={1}>{item.context}</Text>
</View>
</TouchableOpacity>
);
... ... @@ -105,7 +105,7 @@ export default class Home extends Component {
height={120}
dotStyle={{
width: 6,
height: 6
height: 6,
}}
activeDotStyle={{
width: 6,
... ...
... ... @@ -21,29 +21,35 @@ export default class InsuranceChurch extends Component {
this.state = {
ListData: [
{
title: "平安保险2017版平安保险平安保险平安保险",
title: "凶猛台风来袭!与伤亡相关的保险知识你需要了解!",
time: "刚刚",
url: "https://www.baidu.com",
imgurl: require("../../assets/circle/newspic.png")
url: "http://mp.weixin.qq.com/s/_lGAz9sSxuulbdPGZ020cQ",
imgurl: require("../../assets/church/1.png")
},
{
title: "平安保险2017版平安保险平安保险平安保险",
time: "刚刚",
url: "https://www.google.com",
imgurl: require("../../assets/circle/newspic.png")
title: "17世纪伦敦火灾频发,牛掰的保险公司有高招!",
time: "3小时前",
url: "http://mp.weixin.qq.com/s/cJ7oHQ__GBiBxBGZ1SCgDg",
imgurl: require("../../assets/church/2.png")
},
{
title: "平安保险2017版平安保险平安保险平安保险",
time: "刚刚",
url: "https://www.zhihu.com/",
imgurl: require("../../assets/circle/newspic.png")
title: "这两个国家为何会有这些天气保险呢?原来是这样.....",
time: "昨天",
url: "http://mp.weixin.qq.com/s/EimQbKC0ziqN0o8_S1ACFQ",
imgurl: require("../../assets/church/3.png")
},
{
title: "平安保险2017版平安保险平安保险平安保险",
time: "刚刚",
url: "https://www.baidu.com",
imgurl: require("../../assets/circle/newspic.png")
}
title: "车险小白必须知道的不计免赔险",
time: "9月10日",
url: "http://mp.weixin.qq.com/s/W9uR5G6ZlTb7HLLX-DZzSQ",
imgurl: require("../../assets/church/4.png")
},
{
title: "“五险一金”进了嘻哈歌词,有关社保和商业保险的知识你了解吗?",
time: "9月9日",
url: "http://mp.weixin.qq.com/s/0I7p2vaM23CsDiI41hHNOQ",
imgurl: require("../../assets/church/5.png")
},
]
};
}
... ...
... ... @@ -8,6 +8,7 @@ import {
TouchableOpacity,
Image,
TextInput,
Alert,
KeyboardAvoidingView,
AsyncStorage
} from "react-native";
... ... @@ -209,7 +210,7 @@ export default class Details extends Component {
}
sendMsg() {
if (this.state.IS_LOGIN != "yes") {
alert("请先登录账号");
Alert.alert("请先登录账号");
return false;
} else {
this.addComment();
... ...
... ... @@ -93,7 +93,7 @@ export default class Login extends Component {
<View style={styles.inputField}>
<Image
style={styles.icon}
source={require("../assets/login/ic_password2.png")}
source={require("../assets/login/ic_nickname.png")}
/>
<TextInput
style={styles.textInput}
... ... @@ -113,7 +113,7 @@ export default class Login extends Component {
<View style={styles.inputField}>
<Image
style={styles.icon}
source={require("../assets/login/ic_password2.png")}
source={require("../assets/login/ic_profession.png")}
/>
<TextInput
style={styles.textInput}
... ...
... ... @@ -6,6 +6,7 @@ import {
View,
TouchableOpacity,
Image,
Alert,
AlertIOS,
AsyncStorage,
Button
... ... @@ -168,7 +169,11 @@ export default class Mine extends Component {
<TouchableOpacity
style={styles.itemContainer}
onPress={() => {
if (this.state.IS_LOGIN == "yes") {
AlertIOS.prompt("更改昵称", null, this.saveResponse1);
} else {
Alert.alert("请先登录账号")
}
}}
>
<View style={styles.itemLeft}>
... ... @@ -194,7 +199,11 @@ export default class Mine extends Component {
<TouchableOpacity
style={styles.itemContainer}
onPress={() => {
if (this.state.IS_LOGIN == "yes") {
AlertIOS.prompt("更改职业", null, this.saveResponse2);
} else {
Alert.alert("请先登录账号")
}
}}
>
<View style={styles.itemLeft}>
... ...