WaitAttestation.js 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. import React, { Component } from "react"
  2. import { StyleSheet, Text, View, Image } from "react-native"
  3. import { unitWidth, unitHeight } from "../utils/AdapterUtil";
  4. export default class WaitAttestation extends Component {
  5. state = {
  6. pageStatus: 4
  7. }
  8. componentDidMount() {
  9. this.setState({
  10. pageStatus: this.props.navigation.state.params.status
  11. })
  12. }
  13. render() {
  14. return (
  15. <View style={styles.container}>
  16. {
  17. this.state.pageStatus === 0 ? (<Image
  18. source={require("../../static/xueli.png")}
  19. style={styles.icon}
  20. />) : null
  21. }
  22. {
  23. this.state.pageStatus === 1 ? (<Image
  24. source={require("../../static/gongzuo.png")}
  25. style={styles.icon}
  26. />) : null
  27. }
  28. {
  29. this.state.pageStatus === 2 ? (<Image
  30. source={require("../../static/shenfen.png")}
  31. style={styles.icon}
  32. />) : null
  33. }
  34. {
  35. this.state.pageStatus === 3 ? (<Image
  36. source={require("../../static/pass.png")}
  37. style={styles.icon}
  38. />) : null
  39. }
  40. {
  41. this.state.pageStatus === 4 ? (<Image
  42. source={require("../../static/notPass.png")}
  43. style={styles.icon}
  44. />) : null
  45. }
  46. {
  47. this.state.pageStatus !== 3 && this.state.pageStatus !== 4 ? (<Text style={{ fontSize: unitWidth * 32, color: "#333333", marginBottom: unitHeight * 10 }}>提交成功,等待审核</Text>) : null
  48. }
  49. {
  50. this.state.pageStatus === 4 ? (<Text style={{ fontSize: unitWidth * 32, color: "#333333", marginBottom: unitHeight * 10 }}>非常抱歉,您没有通过身份验证</Text>) : null
  51. }
  52. {
  53. this.state.pageStatus === 3 ? (<Text style={{ fontSize: unitWidth * 32, color: "#FA788A", marginBottom: unitHeight * 10 }}>您已通过身份认证,信用值+10</Text>) : null
  54. }
  55. {
  56. this.state.pageStatus === 4 ? (<View style={{ flexDirection: "row" }}>
  57. <Text style={{ fontSize: unitWidth * 24, color: "#333333" }}>您可以进行</Text>
  58. <Text style={{ fontSize: unitWidth * 24, color: "#FA788A" }}>重新申请</Text>
  59. </View>) : null
  60. }
  61. {
  62. this.state.pageStatus === 0 ? (<Text style={{ fontSize: unitWidth * 24, color: "#999999" }}>学历认证将在3-5个工作日内完成审核,请您耐心等待</Text>) : null
  63. }
  64. {
  65. this.state.pageStatus === 1 ? (<Text style={{ fontSize: unitWidth * 24, color: "#999999" }}>工作认证将在3-5个工作日内完成审核,请您耐心等待</Text>) : null
  66. }
  67. {
  68. this.state.pageStatus === 2 ? (<Text style={{ fontSize: unitWidth * 24, color: "#999999" }}>身份认证将在3-5个工作日内完成审核,请您耐心等待</Text>) : null
  69. }
  70. {
  71. this.state.pageStatus === 3 ? (<View style={styles.userInfo}>
  72. <View style={styles.formItem}>
  73. <Text style={{ fontSize: unitWidth * 28, color: "#333333" }}>真实姓名:</Text>
  74. <View style={styles.inputArea}>
  75. <Text style={{ fontSize: unitWidth * 28, color: "#333333" }}>张明明</Text>
  76. </View>
  77. </View>
  78. <View style={styles.formItem}>
  79. <Text style={{ fontSize: unitWidth * 28, color: "#333333" }}>身份证号:</Text>
  80. <View style={styles.inputArea}>
  81. <Text style={{ fontSize: unitWidth * 28, color: "#333333" }}>370281000000000000</Text>
  82. </View>
  83. </View>
  84. </View>) : null
  85. }
  86. </View>
  87. )
  88. }
  89. }
  90. const styles = StyleSheet.create({
  91. container: {
  92. flex: 1,
  93. alignItems: "center",
  94. backgroundColor: "#fff"
  95. },
  96. icon: {
  97. width: unitWidth * 228,
  98. height: unitHeight * 204,
  99. marginTop: unitHeight * 87,
  100. marginBottom: unitHeight * 57
  101. },
  102. userInfo: {
  103. width: "100%",
  104. height: 100,
  105. paddingLeft: unitWidth * 27,
  106. marginTop: unitHeight * 188
  107. },
  108. formItem: {
  109. flexDirection: "row",
  110. height: unitHeight * 72,
  111. marginBottom: unitHeight * 20,
  112. alignItems: "center"
  113. },
  114. inputArea: {
  115. width: unitWidth * 566,
  116. height: "100%",
  117. backgroundColor: "#F9F9F9",
  118. justifyContent: "center",
  119. paddingLeft: unitWidth * 20
  120. }
  121. })