WaitAttestation.js 5.0 KB

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