|
@@ -24,6 +24,8 @@ import {
|
|
|
import AndroidUtil from "../../util/AndroidUtil";
|
|
|
import BasePage from "../BasePage";
|
|
|
import CourseTitle from "./CourseTitle";
|
|
|
+import ChosePhoto from "./ChosePhoto";
|
|
|
+import RegionModal from "./RegionModal";
|
|
|
import Header from "./Header";
|
|
|
import PersonalInfoDialog from "./PersonalInfoDialog";
|
|
|
|
|
@@ -31,7 +33,8 @@ type Props = {};
|
|
|
export default class PersonalInfo extends BasePage {
|
|
|
state = {
|
|
|
nickName: "初始昵称",
|
|
|
- schoolName: "未设置"
|
|
|
+ schoolName: "未设置",
|
|
|
+ cisys: "北京市"
|
|
|
};
|
|
|
updateState(data) {
|
|
|
this.setState(data);
|
|
@@ -43,12 +46,12 @@ export default class PersonalInfo extends BasePage {
|
|
|
ref={view => (this.dialog = view)}
|
|
|
updateParentState={this.updateState.bind(this)}
|
|
|
/>
|
|
|
- <StatusBar
|
|
|
- backgroundColor={"transparent"}
|
|
|
- barStyle={"dark-content"}
|
|
|
- backgroundColor={"white"}
|
|
|
- translucent={false}
|
|
|
+ <ChosePhoto ref={view => (this.chosephoto = view)} />
|
|
|
+ <RegionModal
|
|
|
+ ref={view => (this.regionmodal = view)}
|
|
|
+ cityscommit={this.cityscommit.bind(this)}
|
|
|
/>
|
|
|
+ <StatusBar backgroundColor={"transparent"} translucent={true} />
|
|
|
|
|
|
<View
|
|
|
style={{
|
|
@@ -59,12 +62,12 @@ export default class PersonalInfo extends BasePage {
|
|
|
<ImageBackground
|
|
|
source={require("../images/userInfo/top.png")}
|
|
|
style={{
|
|
|
- flex: 5,
|
|
|
+ flex: 2.8,
|
|
|
width: "100%",
|
|
|
backgroundColor: "#F0F1F5",
|
|
|
- height: "73%"
|
|
|
+ height: "75%"
|
|
|
}}
|
|
|
- imageStyle={{ resizeMode: "contain" }}
|
|
|
+ imageStyle={{ resizeMode: "cover" }}
|
|
|
>
|
|
|
<View
|
|
|
style={{
|
|
@@ -75,81 +78,371 @@ export default class PersonalInfo extends BasePage {
|
|
|
}}
|
|
|
>
|
|
|
<CourseTitle
|
|
|
- style={{ flex: 1 }}
|
|
|
+ style={{ flex: 4 }}
|
|
|
width={this.getWindowWidth()}
|
|
|
title="个人信息"
|
|
|
backPress={() => this.goBack()}
|
|
|
lefttype={2}
|
|
|
+ righttype={0}
|
|
|
textcolor={"white"}
|
|
|
backPress={() => this.goBack()}
|
|
|
/>
|
|
|
- <View
|
|
|
+
|
|
|
+ <TouchableOpacity
|
|
|
style={{
|
|
|
- flex: 1.5,
|
|
|
+ flex: 1,
|
|
|
backgroundColor: "white",
|
|
|
width: "90%",
|
|
|
+ bottom: 0,
|
|
|
alignItems: "center",
|
|
|
justifyContent: "center",
|
|
|
borderRadius: 20,
|
|
|
overflow: "hidden"
|
|
|
}}
|
|
|
+ activeOpacity={1}
|
|
|
+ onPress={() => this.arrowpress(0)}
|
|
|
>
|
|
|
- <Header
|
|
|
- uri="https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=1295208965,3056573814&fm=26&gp=0.jpg"
|
|
|
- username="卡通笨笨熊"
|
|
|
- flowerNumber="123234"
|
|
|
- onPress={() => this.toNextPage("MainActivity")}
|
|
|
- />
|
|
|
- </View>
|
|
|
+ <View
|
|
|
+ style={{
|
|
|
+ flex: 1,
|
|
|
+ borderRadius: 20,
|
|
|
+ overflow: "hidden",
|
|
|
+ alignItems: "center",
|
|
|
+ justifyContent: "center",
|
|
|
+ flexDirection: "row"
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ <View style={{ flex: 0.5 }} />
|
|
|
+
|
|
|
+ <View
|
|
|
+ style={{
|
|
|
+ flex: 3,
|
|
|
+ height: "100%",
|
|
|
+ alignItems: "center",
|
|
|
+ justifyContent: "center"
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ <Image
|
|
|
+ style={{
|
|
|
+ borderRadius: 50,
|
|
|
+ width: "80%",
|
|
|
+ height: "70%"
|
|
|
+ // borderWidth: 3
|
|
|
+ // borderColor: "red"
|
|
|
+ }}
|
|
|
+ source={{
|
|
|
+ uri:
|
|
|
+ "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1556277324856&di=dc1548a0c5ba10481af922e174912937&imgtype=0&src=http%3A%2F%2Fwww.51pptmoban.com%2Fd%2Ffile%2F2012%2F05%2F12%2F82c4568a90055adcf8fbb896f0841c69.jpg"
|
|
|
+ }}
|
|
|
+ />
|
|
|
+ </View>
|
|
|
+ <View
|
|
|
+ style={{
|
|
|
+ flex: 9,
|
|
|
+ backgroundColor: "white",
|
|
|
+ height: "100%",
|
|
|
+ justifyContent: "center"
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ <Text style={{ left: 10, color: "black", fontSize: 20 }}>
|
|
|
+ 修改头像
|
|
|
+ </Text>
|
|
|
+ </View>
|
|
|
+ <View
|
|
|
+ style={{
|
|
|
+ flex: 1.5,
|
|
|
+ height: "65%",
|
|
|
+ alignItems: "center",
|
|
|
+ justifyContent: "center"
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ {this.getArraowImg(0)}
|
|
|
+ </View>
|
|
|
+ </View>
|
|
|
+ </TouchableOpacity>
|
|
|
</View>
|
|
|
</ImageBackground>
|
|
|
-
|
|
|
- <View style={{ flex: 0.1, backgroundColor: "#F0F1F5" }} />
|
|
|
+ <View style={{ flex: 0.5, backgroundColor: "#F0F1F5" }} />
|
|
|
<View
|
|
|
style={{
|
|
|
width: "100%",
|
|
|
- flex: 4.1,
|
|
|
+ flex: 4.3,
|
|
|
alignItems: "center",
|
|
|
- justifyContent: "center",
|
|
|
backgroundColor: "#F0F1F5"
|
|
|
}}
|
|
|
>
|
|
|
<View
|
|
|
style={{
|
|
|
- backgroundColor: "#F3F3F3",
|
|
|
+ backgroundColor: "rgb(242, 242, 242)",
|
|
|
width: "90%",
|
|
|
alignItems: "center",
|
|
|
justifyContent: "center",
|
|
|
- height: "90%",
|
|
|
+ height: "100%",
|
|
|
overflow: "hidden",
|
|
|
- borderRadius: 20
|
|
|
+ borderRadius: 10
|
|
|
}}
|
|
|
>
|
|
|
- {this.userInfo123()}
|
|
|
- </View>
|
|
|
- </View>
|
|
|
- <View style={{ flex: 0.1, backgroundColor: "#F0F1F5" }} />
|
|
|
- <View
|
|
|
- style={{
|
|
|
- width: "100%",
|
|
|
- alignItems: "center",
|
|
|
- justifyContent: "center",
|
|
|
- flex: 4.1,
|
|
|
- backgroundColor: "#F0F1F5"
|
|
|
- }}
|
|
|
- >
|
|
|
- <View
|
|
|
- style={{
|
|
|
- backgroundColor: "#F3F3F3",
|
|
|
- width: "90%",
|
|
|
- height: "90%",
|
|
|
- overflow: "hidden",
|
|
|
- borderRadius: 20
|
|
|
- }}
|
|
|
- >
|
|
|
- {this.userInfo456()}
|
|
|
+ <View
|
|
|
+ style={{
|
|
|
+ width: "100%",
|
|
|
+ alignItems: "center",
|
|
|
+ justifyContent: "center",
|
|
|
+ height: "100%"
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ <TouchableOpacity
|
|
|
+ style={{
|
|
|
+ flex: 1,
|
|
|
+ marginVertical: 1,
|
|
|
+ width: "100%",
|
|
|
+ flexDirection: "row",
|
|
|
+ backgroundColor: "white"
|
|
|
+ }}
|
|
|
+ activeOpacity={1}
|
|
|
+ onPress={() => this.arrowpress(1)}
|
|
|
+ >
|
|
|
+ <View
|
|
|
+ style={{
|
|
|
+ flex: 2,
|
|
|
+ alignItems: "center",
|
|
|
+ justifyContent: "center"
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ {this.choseheadericon(1)}
|
|
|
+ </View>
|
|
|
+ <Text style={styles.item_text}>昵称</Text>
|
|
|
+ <View
|
|
|
+ style={{
|
|
|
+ flex: 5,
|
|
|
+ alignItems: "flex-end"
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ <Text
|
|
|
+ style={{
|
|
|
+ flex: 1,
|
|
|
+ fontSize: 15,
|
|
|
+ textAlignVertical: "center"
|
|
|
+ }}
|
|
|
+ numberOfLines={1}
|
|
|
+ ellipsizeMode={"tail"}
|
|
|
+ >
|
|
|
+ {this.state.nickName}
|
|
|
+ </Text>
|
|
|
+ </View>
|
|
|
+ <View
|
|
|
+ style={{
|
|
|
+ flex: 1.1,
|
|
|
+ alignItems: "center",
|
|
|
+ justifyContent: "center"
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ {this.getArraowImg(1)}
|
|
|
+ </View>
|
|
|
+ </TouchableOpacity>
|
|
|
+ <TouchableOpacity
|
|
|
+ style={{
|
|
|
+ flex: 1,
|
|
|
+ width: "100%",
|
|
|
+ flexDirection: "row",
|
|
|
+ backgroundColor: "white",
|
|
|
+ marginVertical: 1
|
|
|
+ }}
|
|
|
+ activeOpacity={1}
|
|
|
+ onPress={() => this.arrowpress(2)}
|
|
|
+ >
|
|
|
+ <View
|
|
|
+ style={{
|
|
|
+ flex: 2,
|
|
|
+ alignItems: "center",
|
|
|
+ justifyContent: "center"
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ {this.choseheadericon(2)}
|
|
|
+ </View>
|
|
|
+ <Text style={styles.item_text}>生日</Text>
|
|
|
+ <View
|
|
|
+ style={{
|
|
|
+ flex: 5,
|
|
|
+ alignItems: "flex-end"
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ <Text
|
|
|
+ style={{
|
|
|
+ flex: 1,
|
|
|
+ fontSize: 15,
|
|
|
+ textAlignVertical: "center"
|
|
|
+ }}
|
|
|
+ numberOfLines={1}
|
|
|
+ ellipsizeMode={"tail"}
|
|
|
+ >
|
|
|
+ 生日。。。。
|
|
|
+ </Text>
|
|
|
+ </View>
|
|
|
+ <View
|
|
|
+ style={{
|
|
|
+ flex: 1.1,
|
|
|
+ alignItems: "center",
|
|
|
+ justifyContent: "center"
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ {this.getArraowImg(2)}
|
|
|
+ </View>
|
|
|
+ </TouchableOpacity>
|
|
|
+ <TouchableOpacity
|
|
|
+ style={{
|
|
|
+ flex: 1,
|
|
|
+ width: "100%",
|
|
|
+ flexDirection: "row",
|
|
|
+ backgroundColor: "white",
|
|
|
+ marginVertical: 1
|
|
|
+ }}
|
|
|
+ activeOpacity={1}
|
|
|
+ onPress={() => this.arrowpress(3)}
|
|
|
+ >
|
|
|
+ <View
|
|
|
+ style={{
|
|
|
+ flex: 2,
|
|
|
+ alignItems: "center",
|
|
|
+ justifyContent: "center"
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ {this.choseheadericon(3)}
|
|
|
+ </View>
|
|
|
+
|
|
|
+ <Text style={styles.item_text}>所在地区</Text>
|
|
|
+ <View
|
|
|
+ style={{
|
|
|
+ flex: 5,
|
|
|
+ alignItems: "flex-end"
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ <Text
|
|
|
+ style={{
|
|
|
+ flex: 1,
|
|
|
+ fontSize: 15,
|
|
|
+ textAlignVertical: "center"
|
|
|
+ }}
|
|
|
+ numberOfLines={1}
|
|
|
+ ellipsizeMode={"tail"}
|
|
|
+ >
|
|
|
+ {this.state.cisys}
|
|
|
+ </Text>
|
|
|
+ </View>
|
|
|
+ <View
|
|
|
+ style={{
|
|
|
+ flex: 1.1,
|
|
|
+ alignItems: "center",
|
|
|
+ justifyContent: "center"
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ {this.getArraowImg(3)}
|
|
|
+ </View>
|
|
|
+ </TouchableOpacity>
|
|
|
+ <TouchableOpacity
|
|
|
+ style={{
|
|
|
+ flex: 1,
|
|
|
+ width: "100%",
|
|
|
+ flexDirection: "row",
|
|
|
+ backgroundColor: "white",
|
|
|
+ marginVertical: 1
|
|
|
+ }}
|
|
|
+ activeOpacity={1}
|
|
|
+ onPress={() => this.arrowpress(4)}
|
|
|
+ >
|
|
|
+ <View
|
|
|
+ style={{
|
|
|
+ flex: 2,
|
|
|
+ alignItems: "center",
|
|
|
+ justifyContent: "center"
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ {this.choseheadericon(4)}
|
|
|
+ </View>
|
|
|
+
|
|
|
+ <Text style={styles.item_text}>我的学校</Text>
|
|
|
+ <View
|
|
|
+ style={{
|
|
|
+ flex: 5,
|
|
|
+ alignItems: "flex-end"
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ <Text
|
|
|
+ style={{
|
|
|
+ flex: 1,
|
|
|
+ fontSize: 15,
|
|
|
+ textAlignVertical: "center"
|
|
|
+ }}
|
|
|
+ numberOfLines={1}
|
|
|
+ ellipsizeMode={"tail"}
|
|
|
+ >
|
|
|
+ {this.state.schoolName}
|
|
|
+ </Text>
|
|
|
+ </View>
|
|
|
+ <View
|
|
|
+ style={{
|
|
|
+ flex: 1.1,
|
|
|
+ alignItems: "center",
|
|
|
+ justifyContent: "center"
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ {this.getArraowImg(4)}
|
|
|
+ </View>
|
|
|
+ </TouchableOpacity>
|
|
|
+ <TouchableOpacity
|
|
|
+ style={{
|
|
|
+ flex: 1,
|
|
|
+ marginTop: 1,
|
|
|
+ width: "100%",
|
|
|
+ flexDirection: "row",
|
|
|
+ backgroundColor: "white",
|
|
|
+ marginVertical: 1
|
|
|
+ }}
|
|
|
+ activeOpacity={1}
|
|
|
+ onPress={() => this.arrowpress(5)}
|
|
|
+ >
|
|
|
+ <View
|
|
|
+ style={{
|
|
|
+ flex: 2,
|
|
|
+ alignItems: "center",
|
|
|
+ justifyContent: "center"
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ {this.choseheadericon(5)}
|
|
|
+ </View>
|
|
|
+
|
|
|
+ <Text style={styles.item_text}>我的年级</Text>
|
|
|
+ <View
|
|
|
+ style={{
|
|
|
+ flex: 5,
|
|
|
+ alignItems: "flex-end"
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ <Text
|
|
|
+ style={{
|
|
|
+ flex: 1.1,
|
|
|
+ fontSize: 15,
|
|
|
+ textAlignVertical: "center"
|
|
|
+ }}
|
|
|
+ numberOfLines={1}
|
|
|
+ ellipsizeMode={"tail"}
|
|
|
+ >
|
|
|
+ 年级。。。
|
|
|
+ </Text>
|
|
|
+ </View>
|
|
|
+ <View
|
|
|
+ style={{
|
|
|
+ flex: 1.1,
|
|
|
+ alignItems: "center",
|
|
|
+ justifyContent: "center"
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ {this.getArraowImg(5)}
|
|
|
+ </View>
|
|
|
+ </TouchableOpacity>
|
|
|
+ </View>
|
|
|
</View>
|
|
|
</View>
|
|
|
+
|
|
|
<View
|
|
|
style={{
|
|
|
width: "100%",
|
|
@@ -158,8 +451,8 @@ export default class PersonalInfo extends BasePage {
|
|
|
flexDirection: "column"
|
|
|
}}
|
|
|
>
|
|
|
- <View style={{ flex: 0.5 }} />
|
|
|
- <View style={{ flex: 1, flexDirection: "row" }}>
|
|
|
+ <View style={{ flex: 2.5 }} />
|
|
|
+ <View style={{ flex: 2, flexDirection: "row" }}>
|
|
|
<View style={{ flex: 1 }} />
|
|
|
<View
|
|
|
style={{
|
|
@@ -171,7 +464,7 @@ export default class PersonalInfo extends BasePage {
|
|
|
<TouchableOpacity
|
|
|
activeOpacity={1}
|
|
|
style={{
|
|
|
- flex: 1,
|
|
|
+ flex: 2,
|
|
|
width: "100%",
|
|
|
alignItems: "center",
|
|
|
justifyContent: "center",
|
|
@@ -184,7 +477,6 @@ export default class PersonalInfo extends BasePage {
|
|
|
style={{
|
|
|
flex: 1,
|
|
|
width: "100%",
|
|
|
- resizeMode: "repeat",
|
|
|
alignItems: "center",
|
|
|
justifyContent: "center",
|
|
|
height: "100%"
|
|
@@ -207,176 +499,19 @@ export default class PersonalInfo extends BasePage {
|
|
|
</View>
|
|
|
<View style={{ flex: 1 }} />
|
|
|
</View>
|
|
|
+ <View style={{ flex: 0.5 }} />
|
|
|
</View>
|
|
|
</View>
|
|
|
</View>
|
|
|
);
|
|
|
}
|
|
|
|
|
|
- userInfo123() {
|
|
|
- return (
|
|
|
- <View
|
|
|
- style={{
|
|
|
- width: "100%",
|
|
|
- alignItems: "center",
|
|
|
- justifyContent: "center",
|
|
|
- height: "100%"
|
|
|
- }}
|
|
|
- >
|
|
|
- <View style={styles.item}>
|
|
|
- <View
|
|
|
- style={{
|
|
|
- flex: 2,
|
|
|
- alignItems: "center",
|
|
|
- justifyContent: "center"
|
|
|
- }}
|
|
|
- >
|
|
|
- {this.choseheadericon(0)}
|
|
|
- </View>
|
|
|
-
|
|
|
- <Text style={styles.item_text}>头像</Text>
|
|
|
- <View
|
|
|
- style={{
|
|
|
- flex: 2,
|
|
|
- alignItems: "center",
|
|
|
- justifyContent: "center"
|
|
|
- }}
|
|
|
- >
|
|
|
- {this.getArraowImg(0)}
|
|
|
- </View>
|
|
|
- </View>
|
|
|
- <View style={{ flex: 0.05 }} />
|
|
|
- <View style={styles.item}>
|
|
|
- <View
|
|
|
- style={{
|
|
|
- flex: 2,
|
|
|
- alignItems: "center",
|
|
|
- justifyContent: "center"
|
|
|
- }}
|
|
|
- >
|
|
|
- {this.choseheadericon(1)}
|
|
|
- </View>
|
|
|
-
|
|
|
- <Text style={styles.item_text}>{this.state.nickName}</Text>
|
|
|
- <View
|
|
|
- style={{
|
|
|
- flex: 2,
|
|
|
- alignItems: "center",
|
|
|
- justifyContent: "center"
|
|
|
- }}
|
|
|
- >
|
|
|
- {this.getArraowImg(1)}
|
|
|
- </View>
|
|
|
- </View>
|
|
|
- <View style={{ flex: 0.05 }} />
|
|
|
-
|
|
|
- <View style={styles.item}>
|
|
|
- <View
|
|
|
- style={{
|
|
|
- flex: 2,
|
|
|
- alignItems: "center",
|
|
|
- justifyContent: "center"
|
|
|
- }}
|
|
|
- >
|
|
|
- {this.choseheadericon(2)}
|
|
|
- </View>
|
|
|
-
|
|
|
- <Text style={styles.item_text}>生日</Text>
|
|
|
- <View
|
|
|
- style={{
|
|
|
- flex: 2,
|
|
|
- alignItems: "center",
|
|
|
- justifyContent: "center"
|
|
|
- }}
|
|
|
- >
|
|
|
- {this.getArraowImg(2)}
|
|
|
- </View>
|
|
|
- </View>
|
|
|
- </View>
|
|
|
- );
|
|
|
- }
|
|
|
-
|
|
|
- userInfo456() {
|
|
|
- return (
|
|
|
- <View
|
|
|
- style={{
|
|
|
- width: "100%",
|
|
|
- alignItems: "center",
|
|
|
- justifyContent: "center",
|
|
|
- height: "100%"
|
|
|
- }}
|
|
|
- >
|
|
|
- <View style={styles.item}>
|
|
|
- <View
|
|
|
- style={{
|
|
|
- flex: 2,
|
|
|
- alignItems: "center",
|
|
|
- justifyContent: "center"
|
|
|
- }}
|
|
|
- >
|
|
|
- {this.choseheadericon(3)}
|
|
|
- </View>
|
|
|
-
|
|
|
- <Text style={styles.item_text}>所在地区</Text>
|
|
|
- <View
|
|
|
- style={{
|
|
|
- flex: 2,
|
|
|
- alignItems: "center",
|
|
|
- justifyContent: "center"
|
|
|
- }}
|
|
|
- >
|
|
|
- {this.getArraowImg(3)}
|
|
|
- </View>
|
|
|
- </View>
|
|
|
- <View style={{ flex: 0.05 }} />
|
|
|
- <View style={styles.item}>
|
|
|
- <View
|
|
|
- style={{
|
|
|
- flex: 2,
|
|
|
- alignItems: "center",
|
|
|
- justifyContent: "center"
|
|
|
- }}
|
|
|
- >
|
|
|
- {this.choseheadericon(4)}
|
|
|
- </View>
|
|
|
+ // userInfo123() {
|
|
|
+ // return (
|
|
|
|
|
|
- <Text style={styles.item_text}>{this.state.schoolName}</Text>
|
|
|
- <View
|
|
|
- style={{
|
|
|
- flex: 2,
|
|
|
- alignItems: "center",
|
|
|
- justifyContent: "center"
|
|
|
- }}
|
|
|
- >
|
|
|
- {this.getArraowImg(4)}
|
|
|
- </View>
|
|
|
- </View>
|
|
|
- <View style={{ flex: 0.05 }} />
|
|
|
- <View style={styles.item}>
|
|
|
- <View
|
|
|
- style={{
|
|
|
- flex: 2,
|
|
|
- alignItems: "center",
|
|
|
- justifyContent: "center"
|
|
|
- }}
|
|
|
- >
|
|
|
- {this.choseheadericon(5)}
|
|
|
- </View>
|
|
|
+ // );
|
|
|
+ // }
|
|
|
|
|
|
- <Text style={styles.item_text}>我的年级</Text>
|
|
|
- <View
|
|
|
- style={{
|
|
|
- flex: 2,
|
|
|
- alignItems: "center",
|
|
|
- justifyContent: "center"
|
|
|
- }}
|
|
|
- >
|
|
|
- {this.getArraowImg(5)}
|
|
|
- </View>
|
|
|
- </View>
|
|
|
- </View>
|
|
|
- );
|
|
|
- }
|
|
|
getArraowImg(type) {
|
|
|
return (
|
|
|
<TouchableOpacity
|
|
@@ -384,6 +519,8 @@ export default class PersonalInfo extends BasePage {
|
|
|
width: "100%",
|
|
|
height: "100%",
|
|
|
alignItems: "center",
|
|
|
+
|
|
|
+ resizeMode: "contain",
|
|
|
justifyContent: "center"
|
|
|
}}
|
|
|
onPress={() => this.arrowpress(type)}
|
|
@@ -438,7 +575,7 @@ export default class PersonalInfo extends BasePage {
|
|
|
arrowpress(type) {
|
|
|
switch (type) {
|
|
|
case 0:
|
|
|
- alert("点击头像");
|
|
|
+ this.chosephoto.setModalVisible(true);
|
|
|
break;
|
|
|
case 1:
|
|
|
this.dialog.setInfo("修改昵称", "昵称");
|
|
@@ -448,7 +585,7 @@ export default class PersonalInfo extends BasePage {
|
|
|
alert("生日");
|
|
|
break;
|
|
|
case 3:
|
|
|
- alert("所在地区");
|
|
|
+ this.regionmodal.setModalVisible(true);
|
|
|
break;
|
|
|
case 4:
|
|
|
this.dialog.setInfo("我的学校", "学校名称");
|
|
@@ -463,6 +600,12 @@ export default class PersonalInfo extends BasePage {
|
|
|
logout() {
|
|
|
alert("点击退出了");
|
|
|
}
|
|
|
+
|
|
|
+ cityscommit(provinces_name, citys_name) {
|
|
|
+ this.setState({
|
|
|
+ cisys: provinces_name + citys_name
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
const styles = StyleSheet.create({
|
|
@@ -470,11 +613,11 @@ const styles = StyleSheet.create({
|
|
|
flex: 1,
|
|
|
width: "100%",
|
|
|
flexDirection: "row",
|
|
|
- backgroundColor: "white"
|
|
|
+ backgroundColor: "white",
|
|
|
+ marginTop: 1
|
|
|
},
|
|
|
item_text: {
|
|
|
- flex: 10,
|
|
|
- marginLeft: 10,
|
|
|
+ flex: 2,
|
|
|
textAlignVertical: "center",
|
|
|
color: "black",
|
|
|
fontSize: 20
|