|
@@ -1,5 +1,5 @@
|
|
|
import React from "react"
|
|
|
-import { StyleSheet, Text, View, Image, ScrollView } from "react-native"
|
|
|
+import { StyleSheet, Text, View, Image, ScrollView, TouchableOpacity } from "react-native"
|
|
|
import { unitWidth, unitHeight } from "../utils/AdapterUtil";
|
|
|
import Foundation from "react-native-vector-icons/Foundation"
|
|
|
import FontAwesome5 from "react-native-vector-icons/FontAwesome5"
|
|
@@ -7,30 +7,76 @@ import AntDesign from "react-native-vector-icons/AntDesign"
|
|
|
import Tips from '../component/Tips'
|
|
|
export default class UserCard extends React.Component {
|
|
|
state = {
|
|
|
- pageStatus: 1
|
|
|
+ pageStatus: 0
|
|
|
};
|
|
|
+ toCheckName = () => {
|
|
|
+ const { navigation } = this.props;
|
|
|
+ navigation.navigate("Attestation", { status: 4 })
|
|
|
+ }
|
|
|
+ toCheckWork = () => {
|
|
|
+ const { navigation } = this.props;
|
|
|
+ navigation.navigate("Attestation", { status: 3 })
|
|
|
+ }
|
|
|
+ toCheckSchool = () => {
|
|
|
+ const { navigation } = this.props;
|
|
|
+ navigation.navigate("Attestation", { status: 1 })
|
|
|
+ }
|
|
|
+ toCheckHouse = () => {
|
|
|
+ const { navigation } = this.props;
|
|
|
+ navigation.navigate("Attestation", { status: 2 })
|
|
|
+ }
|
|
|
+ toCheckCar = () => {
|
|
|
+ const { navigation } = this.props;
|
|
|
+ navigation.navigate("Attestation", { status: 0 })
|
|
|
+ }
|
|
|
+ toAttInfo = () => {
|
|
|
+ const { navigation } = this.props;
|
|
|
+ navigation.navigate("AttestationInfo")
|
|
|
+ }
|
|
|
+ toMyInfo = () => {
|
|
|
+ const { navigation } = this.props;
|
|
|
+ navigation.navigate("MyInfo")
|
|
|
+ }
|
|
|
+ toGirlFirend = () => {
|
|
|
+ const { navigation } = this.props;
|
|
|
+ navigation.navigate("GirlFrienfTerm")
|
|
|
+ }
|
|
|
+ toSetting = () => {
|
|
|
+ const { navigation } = this.props;
|
|
|
+ navigation.navigate("Setting")
|
|
|
+ }
|
|
|
+ toGift = () => {
|
|
|
+ const { navigation } = this.props;
|
|
|
+ navigation.navigate("MyGift")
|
|
|
+ }
|
|
|
render() {
|
|
|
return (
|
|
|
<ScrollView>
|
|
|
<View style={styles.container}>
|
|
|
<View style={styles.topBgc}>
|
|
|
- <Image
|
|
|
- source={require("../../static/bannerBgc.png")}
|
|
|
- style={styles.bannerBgc}
|
|
|
- />
|
|
|
- <View style={styles.userPhoneArea}>
|
|
|
+ <TouchableOpacity onPress={this.toSetting}>
|
|
|
<Image
|
|
|
- source={require("../../static/userPhone.png")}
|
|
|
- style={styles.userPhone}
|
|
|
+ source={require("../../static/bannerBgc.png")}
|
|
|
+ style={styles.bannerBgc}
|
|
|
/>
|
|
|
- <View style={styles.maleIconArea}>
|
|
|
- <Foundation
|
|
|
- name={"male-symbol"}
|
|
|
- size={16}
|
|
|
- style={styles.maleIcon}
|
|
|
+ </TouchableOpacity>
|
|
|
+
|
|
|
+ <TouchableOpacity onPress={this.toMyInfo}>
|
|
|
+ <View style={styles.userPhoneArea}>
|
|
|
+ <Image
|
|
|
+ source={require("../../static/userPhone.png")}
|
|
|
+ style={styles.userPhone}
|
|
|
/>
|
|
|
+ <View style={styles.maleIconArea}>
|
|
|
+ <Foundation
|
|
|
+ name={"male-symbol"}
|
|
|
+ size={16}
|
|
|
+ style={styles.maleIcon}
|
|
|
+ />
|
|
|
+ </View>
|
|
|
</View>
|
|
|
- </View>
|
|
|
+ </TouchableOpacity>
|
|
|
+
|
|
|
</View>
|
|
|
<View style={styles.userTit}>
|
|
|
<View style={styles.titRow}>
|
|
@@ -43,48 +89,60 @@ export default class UserCard extends React.Component {
|
|
|
<Text style={{ fontSize: unitWidth * 28, color: "#FA788A" }}>87%</Text>
|
|
|
</View>
|
|
|
<View style={styles.attestation}>
|
|
|
- <Text style={{ fontSize: unitWidth * 28, color: "#333333" }}>实名认证</Text>
|
|
|
+ <TouchableOpacity onPress={this.toAttInfo}>
|
|
|
+ <Text style={{ fontSize: unitWidth * 28, color: "#333333" }}>实名认证</Text>
|
|
|
+ </TouchableOpacity>
|
|
|
<View style={styles.attestationList}>
|
|
|
- <View style={styles.attestationItem}>
|
|
|
- <FontAwesome5
|
|
|
- name={"house-damage"}
|
|
|
- size={36}
|
|
|
- style={{ marginBottom: unitHeight * 24, color: "#DEDEDE" }}
|
|
|
- />
|
|
|
- <Text style={{ fontSize: unitWidth * 24, color: "#666666" }}>实名认证</Text>
|
|
|
- </View>
|
|
|
- <View style={styles.attestationItem}>
|
|
|
- <FontAwesome5
|
|
|
- name={"house-damage"}
|
|
|
- size={36}
|
|
|
- style={{ marginBottom: unitHeight * 24, color: "#DEDEDE" }}
|
|
|
- />
|
|
|
- <Text style={{ fontSize: unitWidth * 24, color: "#666666" }}>实名认证</Text>
|
|
|
- </View>
|
|
|
- <View style={styles.attestationItem}>
|
|
|
- <FontAwesome5
|
|
|
- name={"house-damage"}
|
|
|
- size={36}
|
|
|
- style={{ marginBottom: unitHeight * 24, color: "#DEDEDE" }}
|
|
|
- />
|
|
|
- <Text style={{ fontSize: unitWidth * 24, color: "#666666" }}>实名认证</Text>
|
|
|
- </View>
|
|
|
- <View style={styles.attestationItem}>
|
|
|
- <FontAwesome5
|
|
|
- name={"house-damage"}
|
|
|
- size={36}
|
|
|
- style={{ marginBottom: unitHeight * 24, color: "#DEDEDE" }}
|
|
|
- />
|
|
|
- <Text style={{ fontSize: unitWidth * 24, color: "#666666" }}>实名认证</Text>
|
|
|
- </View>
|
|
|
- <View style={styles.attestationItem}>
|
|
|
- <FontAwesome5
|
|
|
- name={"house-damage"}
|
|
|
- size={36}
|
|
|
- style={{ marginBottom: unitHeight * 24, color: "#DEDEDE" }}
|
|
|
- />
|
|
|
- <Text style={{ fontSize: unitWidth * 24, color: "#666666" }}>实名认证</Text>
|
|
|
- </View>
|
|
|
+ <TouchableOpacity onPress={this.toCheckName}>
|
|
|
+ <View style={styles.attestationItem}>
|
|
|
+ <FontAwesome5
|
|
|
+ name={"house-damage"}
|
|
|
+ size={36}
|
|
|
+ style={{ marginBottom: unitHeight * 24, color: "#DEDEDE" }}
|
|
|
+ />
|
|
|
+ <Text style={{ fontSize: unitWidth * 24, color: "#666666" }}>实名认证</Text>
|
|
|
+ </View>
|
|
|
+ </TouchableOpacity>
|
|
|
+ <TouchableOpacity onPress={this.toCheckWork}>
|
|
|
+ <View style={styles.attestationItem}>
|
|
|
+ <FontAwesome5
|
|
|
+ name={"house-damage"}
|
|
|
+ size={36}
|
|
|
+ style={{ marginBottom: unitHeight * 24, color: "#DEDEDE" }}
|
|
|
+ />
|
|
|
+ <Text style={{ fontSize: unitWidth * 24, color: "#666666" }}>工作认证</Text>
|
|
|
+ </View>
|
|
|
+ </TouchableOpacity>
|
|
|
+ <TouchableOpacity onPress={this.toCheckSchool}>
|
|
|
+ <View style={styles.attestationItem}>
|
|
|
+ <FontAwesome5
|
|
|
+ name={"house-damage"}
|
|
|
+ size={36}
|
|
|
+ style={{ marginBottom: unitHeight * 24, color: "#DEDEDE" }}
|
|
|
+ />
|
|
|
+ <Text style={{ fontSize: unitWidth * 24, color: "#666666" }}>学历认证</Text>
|
|
|
+ </View>
|
|
|
+ </TouchableOpacity>
|
|
|
+ <TouchableOpacity onPress={this.toCheckHouse}>
|
|
|
+ <View style={styles.attestationItem}>
|
|
|
+ <FontAwesome5
|
|
|
+ name={"house-damage"}
|
|
|
+ size={36}
|
|
|
+ style={{ marginBottom: unitHeight * 24, color: "#DEDEDE" }}
|
|
|
+ />
|
|
|
+ <Text style={{ fontSize: unitWidth * 24, color: "#666666" }}>房产认证</Text>
|
|
|
+ </View>
|
|
|
+ </TouchableOpacity>
|
|
|
+ <TouchableOpacity onPress={this.toCheckCar}>
|
|
|
+ <View style={styles.attestationItem}>
|
|
|
+ <FontAwesome5
|
|
|
+ name={"house-damage"}
|
|
|
+ size={36}
|
|
|
+ style={{ marginBottom: unitHeight * 24, color: "#DEDEDE" }}
|
|
|
+ />
|
|
|
+ <Text style={{ fontSize: unitWidth * 24, color: "#666666" }}>车辆认证</Text>
|
|
|
+ </View>
|
|
|
+ </TouchableOpacity>
|
|
|
|
|
|
</View>
|
|
|
</View>
|
|
@@ -189,7 +247,9 @@ export default class UserCard extends React.Component {
|
|
|
</View>
|
|
|
</View>
|
|
|
<View style={styles.chooseGirlFirend}>
|
|
|
- <Text style={styles.itemTitle}>择偶条件</Text>
|
|
|
+ <TouchableOpacity onPress={this.toGirlFirend}>
|
|
|
+ <Text style={styles.itemTitle}>择偶条件</Text>
|
|
|
+ </TouchableOpacity>
|
|
|
<View style={styles.friendList}>
|
|
|
<Text style={styles.friendItem}>25-33岁</Text>
|
|
|
<Text style={styles.friendItem}>155-175cm</Text>
|
|
@@ -275,7 +335,9 @@ export default class UserCard extends React.Component {
|
|
|
/>
|
|
|
</View>
|
|
|
<View style={styles.gift}>
|
|
|
- <Text style={styles.itemTitle}>TA的礼物</Text>
|
|
|
+ <TouchableOpacity onPress={this.toGift}>
|
|
|
+ <Text style={styles.itemTitle}>TA的礼物</Text>
|
|
|
+ </TouchableOpacity>
|
|
|
<View style={styles.giftList}>
|
|
|
<View style={styles.giftOnce}>
|
|
|
<Image
|
|
@@ -294,7 +356,7 @@ export default class UserCard extends React.Component {
|
|
|
</View>
|
|
|
</View>
|
|
|
{
|
|
|
- this.state.pageStatus === 0 ? (<View style={styles.bottomtab}>
|
|
|
+ this.state.pageStatus === 1 ? (<View style={styles.bottomtab}>
|
|
|
<View style={styles.tabItem}>
|
|
|
<AntDesign
|
|
|
name={"message1"}
|